[asterisk-gui] Can't match incoming DID calls

Alek Katamail diablo2875 at katamail.com
Sun Jun 8 05:38:22 CDT 2008


Hi,
I have 2 sip trunk from the same provider. I would like to send all calls
dial to 070YYYYYYY to a ringroup and all calls directed to 070XXXXXXX to an
extension. But it doesn't work.



This is my sip.conf file:
[general]
context = default  ; Default context for incoming calls
allowguest=yes         ; Allow or reject guest calls (default is yes)
allowoverlap = no  ; Disable overlap dialing support. (Default is yes)
bindport = 5060  ; UDP Port to bind to (SIP standard port is 5060)
bindaddr = 0.0.0.0  ; IP address to bind to (0.0.0.0 binds to all)
srvlookup = yes  ; Enable DNS SRV lookups on outbound calls
allowexternaldomains = no
allowexternalinvites = no
allowguest = yes
allowsubscribe = no
allowtransfer = yes
alwaysauthreject = no
autodomain = no
callevents = no
compactheaders = no
dumphistory = no
g726nonstandard = no
ignoreregexpire = no
jbenable = no
jbforce = no
jblog = no
maxcallbitrate = 384
maxexpiry = 3600
minexpiry = 60
nat = yes
notifyringing = no
pedantic = no
promiscredir = no
recordhistory = no
relaxdtmf = no
rtcachefriends = no
rtsavesysname = no
rtupdate = no
sendrpid = no
sipdebug = no
t1min = 100
t38pt_udptl = yes
localnet = 169.254.0.0/255.255.0.0
progressinband = no
trustrpid = no
usereqphone = no
videosupport = no
allow = ulaw,g729,alaw
disallow = gsm,ilbc,speex,g726,adpcm,lpc10
externip = XX.XXX.XX.XX (this is the IP of my dedicated remote server behind
firewall)


and this my extensions.conf:
[macro-trunkdial]
exten = s,1,set(CALLERID(all)=${IF($[${LEN(${CALLERID(num)})} >
6]?${CALLERID(all)}:${ARG2})})
exten = s,n,Dial(${ARG1})
exten = s,n,Goto(s-${DIALSTATUS},1)
exten = s-NOANSWER,1,Hangup
exten = s-BUSY,1,Hangup
exten = _s-.,1,NoOp

[DID_trunk_1]
include = default
exten = _070YYYYYYY,1,Goto(ringroups-custom-1,s,1)

[DID_trunk_1]

[numberplan-custom-1]
plancomment = Default DialPlan
include = default
include = parkedcalls
exten = _XX.,1,Macro(trunkdial,${trunk_1}/${EXTEN:0},${trunk_1_cid})
comment = _XX.,1,ALL,custom

[ringroups-custom-1]
gui_ring_groupname = home
exten = s,1,NoOp(RINGGROUP)
exten = s,n,Dial(SIP/101&SIP/102,40)
exten = s,n,Voicemail(102,b)

[DID_trunk_2]
include = default
include = default
exten = _070XXXXXXX,1,Goto(default|100|1)

[DID_trunk_2]




More information about the asterisk-gui mailing list