[asterisk-users] matching the beginning of an EXTEN

Joao Pereira joao.pereira at fccn.pt
Thu Dec 14 07:59:20 MST 2006


perfect!!!
its now working this way:

 exten => _.,4,GotoIf($[ "${EXTEN:0:9}" = "351217588"] ? 20:10)


Thanks a lot
Joao Pereira

Ove Aursand wrote:
> Use ${EXTEN:0:9}
>
> Regards,
> Ove
>
> Joao Pereira wrote:
>> Hello
>> how can I distinguish all the calls that arrive to my Asterisk 
>> starting with: 351217588XXX ?
>> I want match the first 9 digits.... does Asterisk has any function 
>> for this?
>>
>> Thanks
>> Regards
>> Joao Pereira
>> _______________________________________________
>> --Bandwidth and Colocation provided by Easynews.com --
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>



More information about the asterisk-users mailing list