[Asterisk-Users] Re: i or s or whatever the invalid_exten is HELP !!!!!

Stefan Tichy asterisk at pi4tel.de
Thu Jul 8 11:16:38 MST 2004


You are using SIP phones and in your sip.conf there should be some
context definition for incoming calls. You may jump (goto) to some
other context later, but the context defined in sip.conf should
contain extensions catching all numbers you may dial from that phone.


On Thu, Jul 08, 2004 at 04:09:55PM +0100, Simon wrote:
> Or can i test the first 2 digits of a number and send it to the right
> context ?

Yes, that is what you have to do:

exten => i,1,goto(busy,1,1)
exten => _65.,1,goto(office1,${EXTEN},1)
exten => _66.,1,goto(office2,${EXTEN},1)


-- 
Stefan Tichy   <asterisk at pi4tel.de>



More information about the asterisk-users mailing list