[SR-Users] About the subscribe/200-ok contact address on kamailio 3.3

Min Wang ser.basis at gmail.com
Thu Jun 14 17:14:13 CEST 2012


HI

I have tried the kamailio 3.3,


user 101(10.15.20.131) send subscribe to (10.15.20.137),

kamailio return 200 OK, but with contact header as:

      Contact: <sip:10.15.20.137:5060;transport=udp>.

      is it correct?

Since before subscription expired, the client will send the re-subscribe 
using that contact address, is it right?

Should kamailio return the contact as sip:101 at 10.15.20.137 in this case?


Thanks.

min



///////////////////////////// pkt captured ////

U 10.15.20.131:54740 -> 10.15.20.137:5060
SUBSCRIBE sip:101 at 10.15.20.137 SIP/2.0.
Via: SIP/2.0/UDP 
192.168.122.224:54740;branch=z9hG4bK-d8754z-87f9c58f1c70cbe2-1---d8754z-;rport.
Max-Forwards: 70.
Contact: <sip:101 at 10.15.20.131:54740>.
To: <sip:101 at 10.15.20.137>.
From: "101"<sip:101 at 10.15.20.137>;tag=4f7671df.
Call-ID: MWRjNjU2NGNmMWE0Nzk3ODU2ZTZjZWViYmViYmQ1NmY.
CSeq: 2 SUBSCRIBE.
Expires: 60.
Accept: application/watcherinfo+xml.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, 
SUBSCRIBE, INFO.
Proxy-Authorization: Digest 
username="101",realm="10.15.20.137",nonce="T9n8u0/Z+4/OOU2Qeo4acn7OE+7pb5A1",uri="sip:101 at 10.15.20.137",response="93caab1f09daa88a1619bb0613b9a5ff",algorithm=MD5.
Supported: eventlist.
User-Agent: Bria 3 release 3.4.1 stamp 66953.
Event: presence.winfo.
Content-Length: 0.
.

#
U 10.15.20.137:5060 -> 10.15.20.131:54740
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 
192.168.122.224:54740;branch=z9hG4bK-d8754z-87f9c58f1c70cbe2-1---d8754z-;rport=54740;received=10.15.20.131.
To: <sip:101 at 10.15.20.137>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-21e3.
From: "101"<sip:101 at 10.15.20.137>;tag=4f7671df.
Call-ID: MWRjNjU2NGNmMWE0Nzk3ODU2ZTZjZWViYmViYmQ1NmY.
CSeq: 2 SUBSCRIBE.
Expires: 60.
Contact: <sip:10.15.20.137:5060;transport=udp>.
Server: kamailio (3.3.0-rc0 (x86_64/linux)).
Content-Length: 0.
.

....

U 10.15.20.131:54740 -> 10.15.20.137:5060
SUBSCRIBE sip:10.15.20.137:5060;transport=udp SIP/2.0.
Via: SIP/2.0/UDP 
192.168.122.224:54740;branch=z9hG4bK-d8754z-59fd0765744f37a3-1---d8754z-;rport.
Max-Forwards: 70.
Contact: <sip:101 at 10.15.20.131:54740>.
To: <sip:101 at 10.15.20.137>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-21e3.
From: "101"<sip:101 at 10.15.20.137>;tag=4f7671df.
Call-ID: MWRjNjU2NGNmMWE0Nzk3ODU2ZTZjZWViYmViYmQ1NmY.
CSeq: 8 SUBSCRIBE.
Expires: 60.
Accept: application/watcherinfo+xml.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, 
SUBSCRIBE, INFO.
Proxy-Authorization: Digest 
username="101",realm="10.15.20.137",nonce="T9n8u0/Z+4/OOU2Qeo4acn7OE+7pb5A1",uri="sip:10.15.20.137:5060;transport=udp",response="f9ef9d95891bbe5722bb47fbe93b20e9",algorithm=MD5.
Supported: eventlist.
User-Agent: Bria 3 release 3.4.1 stamp 66953.
Event: presence.winfo.
Content-Length: 0.






More information about the sr-users mailing list