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/[EMAIL PROTECTED],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)
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
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