FS-2875 SIP REGISTER Fetch (without Contact header)
Hi all, Can someone please take a look at http://jira.freeswitch.org/browse/FS-2875 ? Especially the last few comments and last patch which is here: http://jira.freeswitch.org/secure/attachment/14120/sofia_reg_enable_register... With this it is possible to fetch bindings by sending a sip register without contact headers. A regular register also responds with all bindings that are in the db now (see traces below). Thanks, Leon --- Traces (I left out headers that are not important for this): * UAC does REGISTER fetch (without contact) when there are no bindings in the db yet: REGISTER sip:172.16.44.8 SIP/2.0 Via: SIP/2.0/UDP 172.16.42.150:5060;rport;branch=z9hG4bKD33480AB9580F76B From: <sip:1000@172.16.44.8>;tag=4041070207 To: <sip:1000@172.16.44.8> Call-ID: 967655ECA0FEA994@192.168.178.1 CSeq: 2 REGISTER SIP/2.0 200 OK Via: SIP/2.0/UDP 172.16.42.150:5060;rport=5060;branch=z9hG4bKD33480AB9580F76B From: <sip:1000@172.16.44.8>;tag=4041070207 To: <sip:1000@172.16.44.8>;tag=48QmcmccUc50B Call-ID: 967655ECA0FEA994@192.168.178.1 CSeq: 2 REGISTER Date: Fri, 15 Jul 2011 10:39:07 GMT * UAC does REGISTER (with contact) when there are no bindings in the db yet: REGISTER sip:172.16.44.8 SIP/2.0 Via: SIP/2.0/UDP 172.16.42.150:5060;rport;branch=z9hG4bKB8AA233F4F985F7C From: <sip:1000@172.16.44.8>;tag=4041070207 To: <sip:1000@172.16.44.8> Call-ID: 967655ECA0FEA994@192.168.178.1 CSeq: 3 REGISTER Contact: <sip:1000@172.16.42.150;uniq=87E52E228E505C8B8957ADA870829> Expires: 1800 SIP/2.0 200 OK Via: SIP/2.0/UDP 172.16.42.150:5060;rport=5060;branch=z9hG4bKB8AA233F4F985F7C From: <sip:1000@172.16.44.8>;tag=4041070207 To: <sip:1000@172.16.44.8>;tag=5HHDeFXFrNUKQ Call-ID: 967655ECA0FEA994@192.168.178.1 CSeq: 3 REGISTER Contact: <sip:1000@172.16.42.150;uniq=87E52E228E505C8B8957ADA870829>;expires=1800 Date: Fri, 15 Jul 2011 10:39:07 GMT * UAC does REGISTER (with contact) when there is already one binding in the db: REGISTER sip:172.16.44.8 SIP/2.0 Via: SIP/2.0/UDP 172.16.42.126:10818;branch=z9hG4bK-d8754z-a7869a477c0f317c-1---d8754z-;rport Contact: <sip:1000@172.16.42.126:10818;rinstance=f2aff35495d275bc> To: "1000"<sip:1000@172.16.44.8> From: "1000"<sip:1000@172.16.44.8>;tag=cf168522 Call-ID: MTAyZDJkMTUyN2ViYTE1NmFkNjFiNDc1ZDkwNWQwYTc. CSeq: 2 REGISTER Expires: 3600 SIP/2.0 200 OK Via: SIP/2.0/UDP 172.16.42.126:10818;branch=z9hG4bK-d8754z-a7869a477c0f317c-1---d8754z-;rport=10818 From: "1000"<sip:1000@172.16.44.8>;tag=cf168522 To: "1000" <sip:1000@172.16.44.8>;tag=ZrQtFUm2rpjtB Call-ID: MTAyZDJkMTUyN2ViYTE1NmFkNjFiNDc1ZDkwNWQwYTc. CSeq: 2 REGISTER Contact: <sip:1000@172.16.42.150;uniq=87E52E228E505C8B8957ADA870829>;expires=1787 Contact: <sip:1000@172.16.42.126:10818;rinstance=f2aff35495d275bc>;expires=3600 Date: Fri, 15 Jul 2011 11:08:10 GMT
participants (1)
-
Leon de Rooij