[Asterisk-Users] debugging asterisk configuration

Alejandro Vargas alejandro.anv at gmail.com
Wed Feb 22 08:48:38 MST 2006


I'm trying to create a new contex for incomming calls from certain
trunks. My problem is this calls are not checked through ext-did (for
incoming routing). The calls from standard trunks are filtered
correctly but these ones are not. Is there some way to debug what
file/line is being executed by asterisk? My custom context is this:

[from-pstn-nofax]
include => from-pstn-custominclude customizations
include => ext-did
exten => _.,1,Goto(s,1)
exten => s,1,SetVar(INCOMING=GRP-1)
exten => s,2,GotoIf($[${IN_OVERRIDE} =
forcereghours]?from-pstn-reghours-nofax,s,1:2)
exten => s,3,GotoIf($[${IN_OVERRIDE} =
forceafthours]?from-pstn-afthours-nofax,s,1:3)
exten => s,4,GotoIfTime(${REGTIME}|${REGDAYS}|*|*?from-pstn-reghours-nofax,s,1:2)
exten => s,5,Goto(from-pstn-afthours-nofax,s,1)


ext-did context is this (made by amp):

[ext-did]
include => ext-did-custom
exten => s/7045,1,SetVar(FROM_DID=s/7045)
exten => s/7045,2,Goto(ext-local,211,1)
exten => s/987073366,1,SetVar(FROM_DID=s/987073366)
exten => s/987073366,2,Goto(ext-local,211,1)
exten => _X./7045,1,Goto(s/7045)
exten => _X./987073366,1,Goto(s/987073366)


--
Alejandro Vargas



More information about the asterisk-users mailing list