[Asterisk-Users] Calls not incoming to any extension from remoteproxy server

bbench at mail.bg bbench at mail.bg
Thu Dec 22 01:18:31 MST 2005


On Thursday 22 December 2005 22:13, abhishek wrote:
> Thanks a lot for the reply. But i am sucessfully getting registered on the
> remote proxy, so that i am getting right outputs as u said. I think that is
> why only i am able to route calls outside to remote proxy,
> The problem is when i am writing
> register => user:password at proxy-ip/1234
> , the outside calls are not coming to 1234 extension , which is a Xlite
> client.
>
> The files configuration are as
> sip.conf
>
> register => user:password at proxy-ip/1234
>
> > >  [1234]
> > > type=friend
> > > host=dynamic
> > > context=test_in
> > > user=phone
> > > regexten=1234
>
> extensions.conf
>
> [test_in]
>
> > > exten=> 1236,1,Dial(SIP/sandhu)
> > > exten=> 1235,1,Dial(SIP/1235)
> > > exten=> _9.,1,Dial(SIP/${EXTEN:1}@sip_proxy-out,30,r)
> > > exten=> 1234,1,Dial(SIP/1234)
I would try to separate incoming and outgoing extensions
to different contexts, for instance:
 [test_in]
exten=> 1234,1,Dial(SIP/1234)
[test_out]
exten=> _9.,1,Dial(SIP/${EXTEN:1}@sip_proxy-out,30,r)
and make include => both to you [default] context and put
context =  default in your [1234] definition

I think this was important in order to follow the correct dialing priority.
To see the difference you could type now: show dialplan test_in
and after : show dialplan default

Also when forming a dial string keep in mind that
X = any digit from 0-9, Z = any digit from 1-9, 
N = any digit from 2-9
means to use:
exten=> _91NXXNXXXXXX,1,Dial(SIP/${EXTEN:1}@sip_proxy-out,30,r)
when dialing US/Canada  and:
exten=> _9011N.,1,Dial(SIP/${EXTEN:1}@sip_proxy-out,30,r)
when dialing other desitinations...

Another thing I can see now is that there isn't a peer 
(or you don't show it?) for the remote proxy i.e.:
[remote_proxy]
type=peer (or friend)
host=proxy-ip
context=whatever_they_say
etc

Your [1234] is for the Xlite
and [remote_proxy] for your provider.

Hope that helps,
benchev



More information about the asterisk-users mailing list