[asterisk-users] dialplan problem : not including context

Jonas Kellens jonas.kellens at telenet.be
Thu Jan 26 03:34:44 CST 2012


On 01/13/2012 06:58 PM, Administrator TOOTAI wrote:
> Le 13/01/2012 14:32, Jonas Kellens a écrit :
>> On 01/13/2012 02:23 PM, Doug Lytle wrote:
>>>
>>> Jonas Kellens wrote:
>>>> I have the following in dialplan :
>>>>
>>>>
>>>> [TrunkAccounts]
>>>
>>> dialplan show TrunkAccounts
>>>
>>> Make sure the sort order is what you're expecting.
>>>
>>> Doug
>>
>> Hello,
>>
>> The order is correct for as far as I'm sure.
>>
>> [TrunkAccounts]
>>
>> exten => 32380837,1,GoTo(777701,32380837,1)
>> exten => 32380838,1,GoTo(777701,32380838,1)
>> exten => 32380839,1,GoTo(777701,32380839,1)
>>
>> [CheckOnNet]
>>
>> include => TrunkAccounts
>>
>> exten => _3215555[0-3],1,GoTo(context1,${EXTEN},1)
>>
>> exten => 32146666,1,GoTo(context2, ${EXTEN} ,1)
>>
>> exten => _XXXXXXXX.,1,NoOp()
>> exten => _XXXXXXXX.,n,Return()
>
> Are you sure about your _XXXXXXXX. exten? Typo in the mail? It means 9 
> and more digits but your extensions are 8 digits ...
>
> Include are always treated *after* context command. If _XXXXXXXX. is 
> right, something is wrong with Asterisk as it should treat 
> TrunkAccounts. If _XXXXXXX. (8 digits or more) is what you have in 
> yourdialplan, than the behavior of Asterisk is OK
>
> Try
>
> [TrunkAccounts]
>
> exten => 32380837,1,GoTo(777701,32380837,1)
> exten => 32380838,1,GoTo(777701,32380838,1)
> exten => 32380839,1,GoTo(777701,32380839,1)
>
> [TrunkNotTreated]
>
> exten => _XXXXXXXX.,1,NoOp()
> exten => _XXXXXXXX.,n,Return()
>
> [CheckOnNet]
>
> include => TrunkAccounts
> include => TrunkNotTreated
>
> exten => _3215555[0-3],1,GoTo(context1,${EXTEN},1)
> exten => 32146666,1,GoTo(context2, ${EXTEN} ,1)
>
> [...]
>

Hello,

I confirm that this is working for me !

Thanks !

Jonas.





More information about the asterisk-users mailing list