[OpenSIPS-Users] Obtain GRUU for multiple instances with same local SIP URI

Richard Phernambucq r.phernambucq at cuperus.nl
Wed Sep 6 07:51:34 EDT 2017


Hi,

My application represents multiple SIP instances that have the same SIP 
URI so I can support simultaneous incoming calls to this URI.
I would also like these instances to be uniquely addressable so I can 
support SIP event notification (SUBSCRIBE/NOTIFY).

Therefore I would like to obtain GRUUs from the OpenSips registrar for 
these SIP instances.
If all instances have different local SIP URIs the REGISTER response 
contains a contact value for each instance. But if the instances have 
the same local SIP URI only one contact value is returned in the 
REGISTER response.

Could anyone please tell me if this is correct behaviour or should the 
response contain a contact value for each instance?

The REGISTER request:

REGISTER sip:192.168.1.178 SIP/2.0
Via: SIP/2.0/UDP 
192.168.1.237:5060;branch=z9hG4bKde764961a60b4e2f8e809470a5c20f78
Max-Forwards: 70
From: sip:1010 at 192.168.1.178;tag=d455cae0a95f4229bcd2153dac7b3c5b
To: sip:1010 at 192.168.1.178
Call-ID: f8e77f1a8a604cc98a505bb7017045e4
CSeq: 22 REGISTER
Contact: 
<sip:1010 at 192.168.1.237>;+sip.instance="<urn:uuid:2f33883736cc4a3d91570e8c06df9b06-002>" 

Contact: 
<sip:1010 at 192.168.1.237>;+sip.instance="<urn:uuid:55372b9295824de19c98a9db63386160-001>" 

Supported: gruu
Expires: 600
Content-Length: 0

The REGISTER response:

SIP/2.0 200 OK
Via: SIP/2.0/UDP 
192.168.1.237:5060;branch=z9hG4bKde764961a60b4e2f8e809470a5c20f78
From: sip:1010 at 192.168.1.178;tag=d455cae0a95f4229bcd2153dac7b3c5b
To: sip:1010 at 192.168.1.178;tag=672eb56ff27ea055e14e7cc9d1cbeb13.6345
Call-ID: f8e77f1a8a604cc98a505bb7017045e4
CSeq: 22 REGISTER
<allOneLine>
Contact: <sip:1010 at 192.168.1.237>;expires=600
;pub-gruu="sip:1010 at 192.168.1.178:5060;gr=urn:uuid:55372b9295824de19c98a9db63386160-001" 

;temp-gruu=
"sip:tgruu.AUUDWmUJQ2QCSRNfYwBAc0UCXVQmRBk3CkUGXWQDEmoCSQZWYQUUNgFJUFdrUEk3UkYAXWsHQWUAXQNeYhEWa1VHBAhiUEgyBkAHDTAISDIFQAYMMQZAYgdAB1s2BQ==@192.168.1.178:5060;gr";+sip.instance="urn:uuid:55372b9295824de19c98a9db63386160-001" 

</allOneLine>
Server: OpenSIPS (2.3.1 (x86_64/linux))
Content-Length: 0

Thank you in advance.

Kind regards,
Richard


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170906/1c50858a/attachment.html>


More information about the Users mailing list