call disconnect from provider because of a late re-register message

sorcerer
Posts: 225
Member Since:
2007-10-03

I noticed that my calls (from my Trixbox box to my sip provider) are disconnected in the middle.
I've discussed this with the sip provider and it occured that the provider's SIP proxy closes RTP ports if the register message is not sent in time (before the reg expire time)
I've analyzed ethernet captures and saw that Trixbox sends the initial register message with "expires=120" parameter.
So, the SIP provider's proxy expects a second register message before 121st second (even if there is an active call)
We saw that the second register message arrives to the uplink SIP proxy between 120-130 seconds.
If it is late (in most cases) the call gets disconnected.

How can I overcome this problem ?

Is there a way to force the Trixbox sending second register message before the expire time ?

Thanks for your help...



sorcerer
Posts: 225
Member Since:
2007-10-03
-

in addition to my initial question, how can I set a longer "register expire time" ?



sorcerer
Posts: 225
Member Since:
2007-10-03
-

I've successfully changed the register expire time using "defaultexpirey" parameter in sip.conf

However, I still need help to send the register message before expire time.
Can anyone comment on it ?



sorcerer
Posts: 225
Member Since:
2007-10-03
-

I need urgent help about this.
Any comments would be appreciated.
Thanks.



sorcerer
Posts: 225
Member Since:
2007-10-03
-

no way to solve it ?



sorcerer
Posts: 225
Member Since:
2007-10-03
-

I am very surprised that no one else has dealt with this problem before.
it is really disturbing. I've checked with some CPE vendors and learned that most of them use policies like:
- send the register at %80 of the expire period.
- send register 5 seconds before expire time.

I think we should be able to apply a similar solution on Asterisk. why not ?



sorcerer
Posts: 225
Member Since:
2007-10-03
-

please help



sorcerer
Posts: 225
Member Since:
2007-10-03
-

still couldn't find out a workaround. any ideas would be helpful.
thanks.



sorcerer
Posts: 225
Member Since:
2007-10-03
-

still looking for a solution. please help...



sorcerer
Posts: 225
Member Since:
2007-10-03
-

guys,

I just need a comment on this issue. There might not be a supported solution but there should be a workaround.
Can anyone please advise ?

Thanks.



sorcerer
Posts: 225
Member Since:
2007-10-03
haha

it's funny that I'm writing to myself for many days on this thread.
also it's very interesting that nobody bothers to write some replies...
I guess we are all newbies with lots of posts.



SkykingOH
Posts: 8081
Member Since:
2007-12-17
In your peer the regseconds

In your peer the regseconds variable combined with the expiry timer you already changed should get you where you need to be.

ignoreregexpire might also need to be adjusted, this is a global only variable and would need to be placed in sip_general_custom.conf.

--

Scott

aka "Skyking"



sorcerer
Posts: 225
Member Since:
2007-10-03
thx

Thanks for your reply.

Where and how should I configure regseconds variable, and what does it do ?



sorcerer
Posts: 225
Member Since:
2007-10-03
sure ?

I've just read on a forum that "regseconds" is a variable and not a setting.
Are you sure that it would help ? How ?



SkykingOH
Posts: 8081
Member Since:
2007-12-17
Suggest you follow the below

Suggest you follow the below links to understand Asterisk RFC3261 timers. The values are also referenced as SIP T1 T2 T4

Most providers understand Asterisk SIP funkiness and I have never seen the problem you are having.

http://bugs.digium.com/view.php?id=4359

All of the sip.conf variables:

http://www.voip-info.org/wiki-Asterisk+config+sip.conf

I know you are searching for a simple resolution and a fix type of answer. Unless someone has direct experience with the provider your best bet is working with them and a full understanding of Asterisk channel_sip

--

Scott

aka "Skyking"



sorcerer
Posts: 225
Member Since:
2007-10-03
-

well, I know how the provider's sip proxy and how it behaves.
I thought I was clear enough when I tried to explain the problem.
in summary, my re-register packets are late sometimes and when that happens my active call is cut. I want to prevent it.
It seems very easy to achieve. If Trixbox would just send the register packet 10 seconds before the expire time, it would be done.
How can I configure it ?

In the given URL (http://www.voip-info.org/wiki-Asterisk+config+sip.conf) , I couldn't find a timer for sending the register message.
"defaultexpirey" is defining the value for this but it is also defining the expire time in the register message.
So, useless...

---

didn't understand that...



sorcerer
Posts: 225
Member Since:
2007-10-03
is there anyone who wants to

is there anyone who wants to comment on this issue ?
I still couldn't find a solution.



VoicePulse
Posts: 135
Member Since:
2006-06-01
How do you know the REGISTER

How do you know the REGISTER is related to the call disconnect? You need to run a trace and see what is actually disconnecting the call. Search for a thread called "Troubleshooting VoIP Call Quality Issues" in this forum.

--

VoicePulse for Business & Wholesale
Get a FREE trial account for trixbox users
Setup trunks, configure routes, and manage your VoicePulse account inside trixbox!
Resellers and trixbox installers should inquire about our Partner Program



sorcerer
Posts: 225
Member Since:
2007-10-03
sure

I am sure that it is related because the SIP provider told me the actual reason.
If the re-register is delayed , active call gets disconnected.
I know the reason but I don't know the solution.



annubiz
Posts: 16
Member Since:
2007-07-05
what I found

What I found was that the messages were being dumped not because the asterisk was doing anything wrong but because the phones were trying to negotiate the RTP media path outofline from the trixbox; which I believe is default behavior and by design.

The problem is depending on how your nat is setup and the rest of the network parts of this communications will be dropped for being out of state.

I simply added 'canreinvite=no' to the trunk configuration and outbound calls were no longer dropping after 22 seconds.

Hope this helps.

--edit this seemed to work last evening but the problem returns this morning -- it is repeatable to a toll free number for a sametime unyte conferencing solution, however it seems that the toll number for the same service does not have problems (atleast today)



sorcerer
Posts: 225
Member Since:
2007-10-03
not relevant

annubiz,

your problem seems too different from my problem.
I can clearly identify the issue and it's cause.
it is not related to media and media path.
simply, my Trixbox is a little late in sending the re-register message because of network problems and I want to make it generated earlier.
But still could'nt find how to do it...



medtoledo
Posts: 3
Member Since:
2006-06-14
To avoid trixbox from loosing registration in a sip trunk

Hello

add these lines to your sip.conf in the trunk you want to force the registration to stay alive or in your sip_registrations.conf

registertimeout=60
maxexpiry=60

this will force trixbox to re-register the trunk every minute, after some testing we saw that this time is good to keep any registration alive

I hope this helps



SkykingOH
Posts: 8081
Member Since:
2007-12-17
Do not modify

Do not modify sip_registrations.conf it will be overwritten any time a change is made.

Add these parameters to sip_general_custom.conf

--

Scott

aka "Skyking"



trixbox_new_user
Posts: 6
Member Since:
2009-09-10
These settings fixed my

These settings fixed my problem, added to the sip_general_custom.conf file as the other person suggested.
registertimeout=60
maxexpiry=60

My situation was, we have SIP trunks setup between an Avaya server and the Trixbox Asterisk server. The calls were consistently disconnecting after just over 1 minute. After adding these entries the next call I made was good for 5 minutes or more....I hung up myself after about 5 minutes so I think this is what solved the problem. Thanks



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.