Re-registration problem when provider stops sending expires

Discussion in '3CX Phone System - General' started by Lukas, Oct 18, 2011.

Thread Status:
Not open for further replies.
  1. Lukas

    Joined:
    Jan 23, 2011
    Messages:
    45
    Likes Received:
    0
    Hello all!

    I am having a hard-time making 3CX work with one of our providers. 3CX registers correctly, sends a few re-registration packets when 90% of the provider's expire time has elapsed, but then stops sending the re-registration packets when the provider sends back an "ok" that does not contain the "expires" header. 3CX keeps showing the external port as "registered" even though for the provider it is not (the provider does not receive the registers and hence considers 3CX no longer registered).

    Example of a provider response that makes 3CX re-register after 270 seconds (IP adresses/user names/domains masked for security):

    Session Initiation Protocol
    Status-Line: SIP/2.0 200 OK
    Message Header
    Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bK-d8754z-5f08cc40e12f535c-1---d8754z-;rport=5060
    Contact: <sip:username@xxx.xxx.xxx.xxx:5060;rinstance=df885ae8ecf74d06>;expires=300
    Contact-URI: sip:username@xxx.xxx.xxx.xxx:5060;rinstance=df885ae8ecf74d06
    Contactt-URI User Part: username
    Contact-URI Host Part: xxx.xxx.xxx.xxx
    Contact-URI Host Port: 5060
    Contact parameter: rinstance=df885ae8ecf74d06>
    Contact parameter: expires=300
    To: <sip:username@sip.provider.com:5060>;tag=0f252131
    SIP to address: sip:username@sip.provider.com:5060
    SIP tag: 0f252131
    From: <sip:username@sip.provider.com:5060>;tag=f3071042
    SIP from address: sip:username@sip.provider.com:5060
    SIP tag: f3071042
    Call-ID: OTIzMmQ4ZjRhZDJmOTQyOWI3NWM5YjEyMTliYzkzYjk.
    CSeq: 3 REGISTER
    Date: Mon, 17 Oct 2011 17:56:47 GMT
    Content-Length: 0

    Example of provider response that makes 3CX stop registering:

    Session Initiation Protocol
    Status-Line: SIP/2.0 200 OK
    Message Header
    Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bK-d8754z-5c015e69ea5dc100-1---d8754z-;rport=5060
    Contact: <sip:username@xxx.xxx.xxx.xxx:5060;rinstance=df885ae8ecf74d06>
    Contact-URI: sip:username@xxx.xxx.xxx.xxx:5060;rinstance=df885ae8ecf74d06
    Contactt-URI User Part: username
    Contact-URI Host Part: xxx.xxx.xxx.xxx
    Contact-URI Host Port: 5060
    Contact parameter: rinstance=df885ae8ecf74d06>
    To: <sip:username@sip.provider.com:5060>;tag=5636d439
    SIP to address: sip:username@sip.provider.com:5060
    SIP tag: 5636d439
    From: <sip:user85576@sip.provider.com:5060>;tag=f3071042
    SIP from address: sip:username@sip.provider.com:5060
    SIP tag: f3071042
    Call-ID: OTIzMmQ4ZjRhZDJmOTQyOWI3NWM5YjEyMTliYzkzYjk.
    CSeq: 6 REGISTER
    Date: Mon, 17 Oct 2011 18:05:48 GMT
    Content-Length: 0

    I understand that here the provider is not behaving in a coherent manner, but is there any way to tell 3CX to keep registering at the last known interval (or just force an interval) if the provider stops sending the expires header? This would increase compatibility, I guess.

    Thank you!!
     
  2. LCC

    LCC

    Joined:
    Jul 8, 2011
    Messages:
    42
    Likes Received:
    0
    Re: Re-registration problem when provider stops sending expi

    I wonder if this is the same problem I am having. Is this provider Nextiva? Folloing is an excerpt from what the provider says is the issue after they put a trap on my IP.

    When the refresh time hits (normally around the 15 minute mark) we send you an invite to refresh the call. Most of the time the invite is simply responded to with a 200OK from your PBX and the call is good to go for another 15 minutes. What appears to be happening here though however, is when the invite is sent to your PBX to refresh the call, instead of sending back a 200OK, you send back a 407 Proxy Authentication Required, a message that should only be sent by US not you. Your PBX basically asks US to authenticate with IT, and since we dont get a 200OK in response to the refresher invite as we should be, our server thinks there is no valid source to establish the refreshed call to on the other end and sends a disconnect message to your PBX telling it that we have ended the call (a sip BYE message).
     
  3. Lukas

    Joined:
    Jan 23, 2011
    Messages:
    45
    Likes Received:
    0
    Re: Re-registration problem when provider stops sending expi

    The provider is Ticinocom. It seems a different problem, however. In my case active calls are not impacted, only inbound calls are not delivered because the provider thinks the PBX is disconnected since the registration has expired.
     
  4. Lukas

    Joined:
    Jan 23, 2011
    Messages:
    45
    Likes Received:
    0
    Re: Re-registration problem when provider stops sending expi

    I spoke to the provider to see if they could in any way sort out the problem.

    Unfortunately it seems that I am the only user connecting with a 3CX pbx, and all the other users with pbxs do not have the problem I am encountering. It sounded like a polite way to say that 3CX does not comply with the standard by stopping sending REGISTERS when the provide does not offer an "expires" header or contact header parameter.

    It would be helpful to know if the "expires" information is mandatory or if it is optional, in which case I could try to appeal to the fact that they are not respecting the standard, despite of the fact that all other software pbxs do not have a problem with that.

    Your expert help would really be beneficial and much appreciated!

    Thank you!
     
  5. nb

    nb Support Team
    Staff Member 3CX Support

    Joined:
    Jun 7, 2007
    Messages:
    2,097
    Likes Received:
    142
    Re: Re-registration problem when provider stops sending expi

    Contact me via email nb@3cx.com
    Subject - Refresh registration voip provider

    I will send you a patch and try it out with this provider.

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Lukas

    Joined:
    Jan 23, 2011
    Messages:
    45
    Likes Received:
    0
    Re: Re-registration problem when provider stops sending expi

    Thanks, Nicky -- I sent you the email.

    Thanks,

    Luca
     
  7. Lukas

    Joined:
    Jan 23, 2011
    Messages:
    45
    Likes Received:
    0
    Re: Re-registration problem when provider stops sending expi

    Thank you so much, Nicky! The patch seems to be working quite well!!

    Thanks a lot for the fantastic support!
     
  8. SY

    SY Well-Known Member
    3CX Support

    Joined:
    Jan 26, 2007
    Messages:
    1,825
    Likes Received:
    2
    Re: Re-registration problem when provider stops sending expi

    Please try to persuade Ticinocom to find a way to fix this bug in software/hardware.
    After update, PBX informs about applying the workaround, so it can be used for debugging.

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.