This Question is Answered

2 "helpful" answers available (1 pts)
4 Replies Last post: Nov 25, 2009 5:56 PM by joegen  
Click to view nate187's profile   27 posts since
Sep 29, 2009

Oct 1, 2009 10:25 PM

first register gets a 404

When the phone first registers, the sbc replies with a 404 not found. The phone will send another register and then it passes thru the upper registration and then registers to my switch.

Is this expected behavior, and is there any way to prevent the sbc from sending the 404 on the initial invite?
I would think when it encounters a "UNREGISTER FOR A **NON-EXISTING** SESSION" it should go ahead and create a new session instead of sending the 404.

2009/09/30 07:57:58.519 INF: [CID=0xcb140f65] <<< REGISTER sip:sbc.mydomain.com:5060 SIP/2.0 Method(REGISTER) SRC: 64.82.228.20:5060:UDP enc=0 bytes=563
2009/09/30 07:57:58.525 INF: [CID=0xcb140f65] *** UPPER REG *** sip:sip1112221234 at sbc dot mydomain dot com:5060
2009/09/30 07:57:58.525 WRN: [CID=0x4e67c6a7] ! GOT UNREGISTER FOR A **NON-EXISTING** SESSION !
2009/09/30 07:57:58.525 DTL: [CID=0xcb140f65] NIST(1254315478520) Event(SIPMessage) - SIP/2.0 404 Not Found
2009/09/30 07:57:58.526 INF: [CID=0xcb140f65] >>> SIP/2.0 404 Not Found Method(REGISTER) DST: 10.100.0.20:5060:UDP SRC: 10.0.0.100:5060 enc=0 bytes=355

2009/09/30 07:58:01.551 INF: [CID=0xcb140f65] <<< REGISTER sip:sbc.mydomain.com:5060 SIP/2.0 Method(REGISTER) SRC: 10.100.0.20:5060:UDP enc=0 bytes=554
2009/09/30 07:58:01.552 INF: [CID=0xcb140f65] *** UPPER REG *** sip:sip1112221234 at sbc dot mydomain dot com:5060
2009/09/30 07:58:01.552 DTL: [CID=0x4e67c6a7] *** REG *** Session CREATED. AOR=sip:sip1112221234 at sbc dot mydomain dot com:5060
2009/09/30 07:58:01.552 DTL: [CID=0xcb140f65] UPPER REG: New request being processed
2009/09/30 07:58:01.552 DTL: [CID=0xcb140f65] UPPER REG: Received Registration Request
2009/09/30 07:58:01.553 DTL: [CID=0xcb140f65] *** REG *** Record CREATED. AOR=sip:sip1112221234 at sbc dot mydomain dot com:5060 Binding=sip:sip1112221234@192.168.69.238:5060
2009/09/30 07:58:01.556 INF: [CID=0xcb140f65] >>> REGISTER sip:sip1112221234 at switch dot mydomain dot com:5060 SIP/2.0 Method(REGISTER) DST: 10.0.0.200:5060:UDP SRC: 10.0.0.100:5060 enc=0 bytes=788
Click to view joegen's profile   519 posts since
Apr 28, 2007
1. Oct 6, 2009 9:23 PM in response to: nate187
Re: first register gets a 404
The logs indicates that the first REGISTER request is an deregistration. If you will check the message closely, it will have a contact with expiration set to 0 (expires=0). OpenSBC will complain about this message if there is no registration which is active for the UA that sends the deregister message. Thus, GOT UNREGISTER FOR A **NON-EXISTING** SESSION. What do you think would happen if OpenSBC didnt send a 404 in this case? Eg it responds with a 200 OK? The phone will think it's registred while its actually not. This is not a bug.
Click to view louca.mente's profile   1 posts since
Nov 25, 2009
3. Nov 25, 2009 9:24 AM in response to: joegen
Re: first register gets a 404

Hi,

This scenario is possible under RFC 3261!

Phones can force clearing any previous contacts on the registar, setting Contact header to '*'.


If OSBC is configured as UPPERreg then it should forward the request according with the rules. If not, it MUST clear any existing bindings for that extension.

jk

Click to view joegen's profile   519 posts since
Apr 28, 2007
4. Nov 25, 2009 5:56 PM in response to: louca.mente
Re: first register gets a 404
I have fixed this in CVS about a week ago.