tux john
2016-Oct-11 11:25 UTC
[asterisk-users] send a call to moh until user is available
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>in asterisk 11 i have an extension 4450 that gets all the calls from a particular number (eg 1234567890).</div> <div>in extensions.conf i do have the following:</div> <div> <div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">exten =><span> </span>1234567890,n,Dial(SIP/4450,20,mg)</div> <div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">exten =><span> </span>1234567890,n,Hangup()</div> <div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"> </div> <div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">the problem that i have is that when extension 4450 is busy then the call goes to hangup. i would like if the extension 4450 is busy the caller to hear moh and when available return to the extension 4450. I would like that to be for 1 minute, then busy (3) and then hangup.</div> <div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">could someone provide me an example, please?</div> </div></div></body></html>
Victor Villarreal
2016-Oct-11 12:17 UTC
[asterisk-users] send a call to moh until user is available
Hi Tux John, The behavior you need is cover in Asterisk within a Queue. 1. Create a new queue in queues.conf and assign as static member, the 4450 extension. 2. In your dialplan, you need to route the incomming calls to the new queue and pass as argument the timeout in seconds you want when hangup the waiting calls. When a new call arrives, it enter the queue. The Callee ear moh music, while the 4450 ring if its available. Ir not, the queue system wait until the 4450 become available, an then send the call. Please, refer to http://www.asteriskguru.com/tutorials/queues.html The #3 title (simple queue) is all you need. Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161011/256c200b/attachment.html>