Simon
2004-Jul-08 08:09 UTC
[Asterisk-Users] i or s or whatever the invalid_exten is HELP !!!!!
Ok So when i get into a context and dial a number that does not exist the 'i' exten works fine. I have a test exten that runs my menu system if i dial that then dial an exten that does not exist ' i ' works. BUT when i dial a number directly that does not exist the 'i' exten does not get called i did try exten => ${INVALID_EXTEN}, Do summit ( no good ) What i need is when a number that is not in a context is dialled to go to a list of exten's and then redirect to the correct context . Mainly because we have many different context's all starting with 2 different digits ie 65xx for one office 66xx for office 2 43xx for branch a etc Or can i test the first 2 digits of a number and send it to the right context ? Seems a bit difficult when i can't even get * to let the number come in. I am using BT101's ( SIP ) and Asterisk CVS-HEAD-05/19/04-01:33:53 Best Regards Simon
Stefan Tichy
2004-Jul-08 11:16 UTC
[Asterisk-Users] Re: i or s or whatever the invalid_exten is HELP !!!!!
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@pi4tel.de>
I have a Cisco 7960 with a weak hookswitch spring that works intermittently. Has anyone taken the back cover off the unit and can advise suggestions or the procedure to open her up? Thanks, Kevin