[Asterisk-Users] dialplan defenition
Matt Riddell
matt.riddell at sineapps.com
Mon Aug 1 16:35:40 MST 2005
Joao Pereira wrote:
> Hello list,
> Im writing my dial plan, in witch every SIP phone begins with 74 and has
> more 3 numbers (like 74XXX).
> So, I want to route all 74XXX calls to my sip channel. For this I wrote
> this line:
> exten => s,1,Dial(SIP/74118 at 193.136.252.5,30,r)
What is happening is that capi is sending it to s.
You will need to either set up an IVR, asking which number to send it to.
So, you would do the following:
exten => s,1,Answer()
exten => s,2,Background(pls-entr-extn)
exten => _74XXX,1,Dial(SIP/${EXTEN})
exten => _74XXX,2,Goto(s|1)
exten => _74XXX,102,Goto(s|1)
You will obviously need to record the pls-entr-extn sound.
You can do this by making an exten like this:
exten => 678,1,Record(pls-entr-extn)
--
Cheers,
Matt Riddell
_______________________________________________
http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
More information about the asterisk-users
mailing list