[asterisk-users] How to dial extensions asynchronous-sequentially ?

Pete Mundy pete at fiberphone.co.nz
Wed Jul 15 16:16:29 CDT 2015


Heya Rodrigo

Not sure, but this expansion on Sammy's concept may help you achieve the delayed ring on the secondary extensions you were looking for.

exten => _600.,1,Dial(PJSIP/${EXTEN})
exten => _600.,n,Hangup

exten => _600.wait5,1,Wait(5)
exten => _600.wait5,n,Dial(PJSIP/${EXTEN:0:4})
exten => _600.wait5,n,Hangup

exten => 555,1,Dial(LOCAL/6001&LOCAL/6002.wait5)
exten => 555,n,Hangup

So you dial '555' and it rings 6001, then 5 second later (assuming 6001 isn't answered yet) 6002 starts ringing too (first to answer gets it).

Pete


On 14/07/2015, at 7:24 AM, SamyGo <govoiper at gmail.com> wrote:

> Anyway here's one way of how I think you can do.
> 
> Have a context created to dial the individual user
> 
> [dial_user]
> exten => _600X.,1,Dial(PJSIP/${EXTEN})
> ...
> 
> and in your code change it to.
> 
> same = n,Dial(local/6001 at dial_user/n&local/6002 at dial_user/n)
> same = n,Hangup()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150716/8fabc13f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4145 bytes
Desc: not available
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150716/8fabc13f/attachment.bin>


More information about the asterisk-users mailing list