[Asterisk-Users] Cisco Gateway and Context Issues

Sum Ding Wong sumdingwong at gmail.com
Wed Feb 1 07:53:12 MST 2006


Hi,

We are a service provider using Asterisk for  our softswitch. We offer
SIP connections via IP phones as well as PRI and POTS replacements for
our customers. However, i am having problems with incoming calls from
a Cisco IAD2431 and its dialing context. When a call comes from the
PBX through the IAD2431 to Asterisk, the calls are not in the
customer1 context as they should be. Our customer is not able to dial
4 digit extensions to their other IP phones. See config examples
below.

Has anyone else experienced the problems I am having?

Thanks,

Sum Ding Wong

;-----------------------
; sip.conf
;-----------------------
 [general]
context=default
srvlookup=yes
dtmfmode=inband
qualify=yes
nat=yes
host=dynamic
canreinvite=no
pedantic=no
disallow=all
allow=ulaw
allow=g729
allow=g723
allow=alaw

[ 12.34.43.3]
context=customer1
type=friend
qualify=200
host= 12.34.43.3
canreinvite=no

;------------------------------
; Extensions.conf
;------------------------------
[macro-voicemail]
;usage Macro(voicemail,<extension>,<mailbox>)
exten => s,1,Dial(${ARG1},15,rt)
exten => s,2,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Voicemail(u${ARG2})
exten => s-BUSY,1,Voicemail(b${ARG2})
exten => _s-.,1,Goto(s-NOANSWER,1)


[customer1]
include => voicemail
include => customer1-did
include => customer1-internal
include => outgoing-unlimited

[customer1-internal]
exten => _*.,1,Pickup(${EXTEN:1})

exten => 1272,1,Macro(voicemail,SIP/2125551272,2125551272)
exten => 1273,1,Macro(voicemail,SIP/2125551273,2125551273)
exten => 1274,1,Macro(voicemail,SIP/2125551274,2125551274)
exten => 1275,1,Macro(voicemail,SIP/2125551275,2125551275)
exten => 1276,1,Macro(voicemail,SIP/2125551276,2125551276)

[customer1-did]
exten => 2125551285,1,Dial( SIP/2125551285 at 12.34.43.3,30,rt )
exten => 2125551272,1,Macro(voicemail,SIP/2125551272,2125551272)
exten => 2125551273,1,Macro(voicemail,SIP/2125551273,2125551273)
exten => 2125551274,1,Macro(voicemail,SIP/2125551274,2125551274)
exten => 2125551275,1,Macro(voicemail,SIP/2125551275,2125551275)
exten => 2125551276,1,Macro(voicemail,SIP/2125551276,2125551276)



More information about the asterisk-users mailing list