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   <[EMAIL PROTECTED]>
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to