[asterisk-users] pbx call setup to asterisk,
behavior context dependend
Christian Gatti
cgatti at vo.lu
Tue Oct 3 02:07:14 MST 2006
Hi,
if I setup a call from the pbx (+35220404244) to another sip client
(20407777) registered on the same asterisk box, the success of the call
setup depends on in which context the call from the pbx falls in.
With the configuration below, sip call signalisation works fine but as soon
as the sip client wants to accept the call everything drops. I got the same
behavior if the first cmd in extensions.conf is an "Answer" for extension
20407777.
If I remove the [+35220404244] configuration from sip.conf, an incoming call
from the pbx gets the "default" context and everything works perfectly.
Chris
asterisk v1.2.12.1
sip.conf
--------
[+35220404244] ;pbx
type=friend
context=customer1
username=+35220404244
secret=mypasswd
host=dynamic
insecure=no
canreinvite=no
disallow=all
allow=alaw
allow=ulaw
nat=no ;(everything on the same network)
[20407777] ;sip client
type=friend
context=customer1
username=20407777
secret=mypasswd
host=dynamic
insecure=no
canreinvite=no
disallow=all
allow=alaw
allow=ulaw
nat=no ;(everything on the same network)
extensions.conf
---------------
[default]
exten => 20407777,1,Dial(SIP/${EXTEN})
[customer1]
exten => 20407777,1,Dial(SIP/${EXTEN})
More information about the asterisk-users
mailing list