[asterisk-dev] Code Support request for IAX provider sending
registration refreshes of 0
James Trix
jamestrix at gmail.com
Mon Nov 13 04:59:11 MST 2006
Well I throught I would trace a session with the Tesco desktop client
and see what i could see. I created a packet trace with good old wire
shark and from what I can see is that tescos does send a refresh
registration: 0
But it looks like the desktop client just does a IAX2 ping every few
seconds and then a ACK comes back from the povider.
Asterisk does not send this IAX2 ping back and after about 1 minute
the connection drops off. So i guess my questions are could some one
comfirm that is what is happening in the capture that can be seen here
http://pastebin.com/823208 and if so what can i do ? rebuild Asterisk
and then do a ignore on registration: 0 ? or could I write some sort
of IAX2 ping and set a cron job to send out a ping every 60 seconds ?
Any ideas right now would be good :-)
On 11/12/06, James Trix <jamestrix at gmail.com> wrote:
> Well I throught it was working, but I did a few more tests and after a
> few minutes if you call my inbound number I get sent to the providers
> voice mail meaning the some how the provider things I am off line.
>
> Doing iax2 show registry shows as Registered
>
> Any ideas guys/girls
>
> On 11/4/06, James Trix <jamestrix at gmail.com> wrote:
> > Tim that setting looks like it worked thank you for the fix and also
> > the background info its been 20 minutes and the registered status
> > looks ok. I will have to google a little more to find out more about
> > this setting to fully understand what the command is doing to the
> > connection but for now you have saved me doing a rebuild..... I was a
> > little worried about doing the rebuild but deep now I think I was
> > looking forward to it so I could get a better understanding of linux
> > and Asterisk
> >
> > Thanks again for your help
> >
> >
> >
> > IAX2 Sip Registry
> > Host Username Perceived Refresh State
> > 202.148.48.108:4569 xxxxxxxxx xxx.xxx.xxx.xxx:4569 0 Registered
> > Verbosity is at least 1
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On 11/4/06, Tim Panton <tim at mexuar.com> wrote:
> > >
> > > On 3 Nov 2006, at 10:44, James Trix wrote:
> > >
> > > > Hello list
> > > >
> > > > I have been trying to work out why my registration to my provider
> > > > keeps getting droped every few seconds and all my inbound calls go to
> > > > the providers voicemail. After some traceing and some googleing I
> > > > found the problem.
> > > >
> > > > Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 001 Type: IAX
> > > > Subclass: REGREQ
> > > > Timestamp: 00320ms SCall: 00002 DCall: 00393 [202.148.48.108:4569]
> > > > USERNAME : XXXXXXXXXXX
> > > > REFRESH : 60
> > > > MD5 RESULT : XXXXXXXXXXX
> > > >
> > > > Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 002 Type: IAX
> > > > Subclass: REGACK
> > > > Timestamp: 00313ms SCall: 00393 DCall: 00002 [202.148.48.108:4569]
> > > > USERNAME : XXXXXXXXXXX
> > > > DATE TIME : 2006-10-29 12:49:58
> > > > REFRESH : 0
> > > > APPARENT ADDRES : IPV4 58.106.XX.X:4569
> > > >
> > > > The provider sends a REFRESH : 0 so asterisk does not reregister the
> > > > connection again.
> > > >
> > > > As the provider does not seem willing to fix this I throught that only
> > > > way to fix it would be to
> > > > compile some code. The problem is I am not a coder so I can't fix this
> > > > my self so I was wondering if there where any kind devloeprs out there
> > > > that would be able to help me patch the code so that I could fix this
> > > > problem.
> > > >
> > > > what I through to do was that if a refresh was sent as 0 from the
> > > > provider hard code that to be a refesh of 60 seconds.
> > > >
> > >
> > >
> > > You could try adding qualify=60 to the iax.conf entry.
> > >
> > > Big providers don't like re-registration every 60 seconds because
> > > each registration
> > > requires a database lookup and several roundtrip packets. Qualify is
> > > much cheaper.
> > >
> > >
> > >
> > > Tim Panton
> > >
> > > www.mexuar.com
> > >
> > >
> > >
> > > _______________________________________________
> > > --Bandwidth and Colocation provided by Easynews.com --
> > >
> > > asterisk-dev mailing list
> > > To UNSUBSCRIBE or update options visit:
> > > http://lists.digium.com/mailman/listinfo/asterisk-dev
> > >
> >
>
More information about the asterisk-dev
mailing list