SIP Provider Registration: cannot change Expiry

Found something wrong ?
Post Reply
SSWGazer
Posts: 13
Joined: Fri Aug 17, 2007 6:55 pm

SIP Provider Registration: cannot change Expiry

Post by SSWGazer » Tue May 31, 2011 4:59 pm

First: It is a very long time since my last login to the forum. I did several experimentations with SIP Sorcery (and even mySIPSwitch) in the past, and enjoyed it a lot. Got stuck when I encountered few problems, and put it aside 'for a while'.

Now that Gizmo5, along with sipPhone, died (un)naturally, time has arrived to explore the beauty of SIP Sorcery again, when I am looking for different SIP providers...

After the long absence, I see that the SS has developed quite nicely. Well done Aaron!!
Now I am looking to update my scripts.

... enough of that history...

- - - - - - - - - - - - - - - - - - - -
The problem:

I have registered an account in CallCentric. It does register successfully. The issue is just with the Expiry settings.

The setup to the SIP Provider registration is:

Code: Select all

Provider Type: SIP
Provider Name: CallCentric_acc1
Username:1777xxxxxxx
Password: xxxxxxxx
Server: sip.callcentric.com
Register: [yes]
Register Contact: (I left empty, and it defaulted to sip:<nnnnn>@sipsorcery.com) (looks ok)
It registered with expiry of around 60 (sec)


I wanted to increase the Expiry, so I opened the "show advanced settings".
It showed:

Code: Select all

Realm: (empty)
Auth Username: (empty)
From Header:(empty)
Registry Expiry: 3600
Register Server: (empty)
Custome Headers: (empty)
Question #1: It seems like the default "Register Expiry" should have been 3600 (sec) (= 1 hr). Isn't it? Why do I get 60 (sec) (= 1 min) instead?

Question #2: If I try to enter a different value in "Register Expiry", e.g. 720, 3600, or any other value, and update the record, it does not seem to change the actual Expiry value. It still register with 60 sec. Only once I saw the actual expiry change, but it reverted back to 60 after that, when I tried to change another expiry value in another SIP Provider account. (CallCentric recommended to use 1800 sec)

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: SIP Provider Registration: cannot change Expiry

Post by Aaron » Tue May 31, 2011 10:44 pm

The expiry value you see in the SIP Provider Registrations table is the actual expiry that's being used for the registration. The Register Expiry value you can set on your SIP Provider is the expiry that will be "requested" of the provider. In CallCentric's case I believe they restrict the expiry to being around 60s, I just checked my CallCentric registration and it was 64s and then subsequently 65s.

Whereabouts do CallCentric recommend 1800s? It seems strange that they would do that and then force registrations to be approx. 60s.

SSWGazer
Posts: 13
Joined: Fri Aug 17, 2007 6:55 pm

Re: SIP Provider Registration: cannot change Expiry

Post by SSWGazer » Wed Jun 01, 2011 3:34 am

Thanks for the quick answer.
Whereabouts do CallCentric recommend 1800s? It seems strange that they would do that and then force registrations to be approx. 60s.
See e.g. here (about mid-page)

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: SIP Provider Registration: cannot change Expiry

Post by Aaron » Wed Jun 01, 2011 1:04 pm

My guess is that web page is out of date. Here's the SIP trace of my own CallCentric registration. An expiry of 1800s is requested but the expiry granted is 65s.

Code: Select all

FullSIPTrace 13:05:51:810 sip1(15748):
Proxy Request Sent: udp:69.59.142.213:5060->udp:204.11.192.39:5080
REGISTER sip:callcentric.com SIP/2.0
Via: SIP/2.0/UDP 69.59.142.213:5060;branch=z9hG4bKaa53f301ea674a3cb643c68d7e724a29;rport
To: <sip:1777xxxxxxx@callcentric.com>
From: <sip:1777xxxxxxx@callcentric.com>;tag=1861431556
Call-ID: 3c437854-0365-4e5a-bbbd-05cd51909342
CSeq: 489184 REGISTER
Contact: <sip:me@sipsorcery.com;rinstance=737321>
Max-Forwards: 69
User-Agent: www.sipsorcery.com
Expires: 1800
Content-Length: 0

FullSIPTrace 13:05:51:888 sip1(15748):
Proxy Response Received: udp:69.59.142.213:5060<-udp:204.11.192.39:5080
SIP/2.0 200 Ok
Via: SIP/2.0/UDP 69.59.142.213:5060;branch=z9hG4bKaa53f301ea674a3cb643c68d7e724a29;rport=5060
To: <sip:1777xxxxxxx@callcentric.com>
From: <sip:1777xxxxxxx@callcentric.com>;tag=1861431556
Call-ID: 3c437854-0365-4e5a-bbbd-05cd51909342
CSeq: 489184 REGISTER
Contact: <sip:me@sipsorcery.com;rinstance=737321>;expires=65
Content-Length: 0

Post Reply