Rodrigo Pimenta Carvalho
2015-Jul-13 18:28 UTC
[asterisk-users] How to dial extensions asynchronous-sequentially ?
Hi. I my dialplan I have : same = n,Dial(PJSIP/6001,10) same = n,Dial(PJSIP/6002,30) same = n,Hangup() The extension 6002 will not be invited until the called party 6001 hangs up or until 10 seconds if nobody answers the call in 6001. How to call 6001 and immediately call 6002, having 2 phones ringing at same time, but without doing something like this : same = n,Dial(PJSIP/6001&PJSIP/6002) ? What I'm asking is if it is possible to call 6001 in an asynchronous way and then call 6002 too. Is it possible? Any hint will be very helpful! Best regards. RODRIGO PIMENTA CARVALHO Inatel Competence Center Software Ph: +55 35 3471 9200 RAMAL 979
SamyGo
2015-Jul-13 19:24 UTC
[asterisk-users] How to dial extensions asynchronous-sequentially ?
Hi, Even you achieve that, what would be the objective? Do you want to just call the user and Hangup ? or Dial two users and connect them together ? Is this some sort of ring group implementation where users are dialled and first one to answer will get the call ?? 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() On Mon, Jul 13, 2015 at 2:28 PM, Rodrigo Pimenta Carvalho <pimenta at inatel.br> wrote:> > Hi. > > > I my dialplan I have : > > same = n,Dial(PJSIP/6001,10) > same = n,Dial(PJSIP/6002,30) > same = n,Hangup() > > > The extension 6002 will not be invited until the called party 6001 hangs > up or until 10 seconds if nobody answers the call in 6001. > > How to call 6001 and immediately call 6002, having 2 phones ringing at > same time, but without doing something like this : same > n,Dial(PJSIP/6001&PJSIP/6002) ? > What I'm asking is if it is possible to call 6001 in an asynchronous way > and then call 6002 too. Is it possible? > > Any hint will be very helpful! > > > > Best regards. > > > > RODRIGO PIMENTA CARVALHO > Inatel Competence Center > Software > Ph: +55 35 3471 9200 RAMAL 979 > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150713/7a88eca5/attachment.html>
Rodrigo Pimenta Carvalho
2015-Jul-13 19:51 UTC
[asterisk-users] RES: How to dial extensions asynchronous-sequentially ?
Hi SamyGo. Thank you for the replay. So, let me explain it better: I knew that I could use something like " same = n,Dial(PJSIP/6001&PJSIP/6002) ". While every extension (called phones) rings and before anyone answers, SIP 183 messages will be sent to Asterisk from callees. If a called phone answer, the others will be hanged up. It is ok for me. I want to connect the caller just to the first called party that answers. Yes, it is some sort of ring group implementation where users are dialled and just the first one to answer will get the call. If I just do " same = n,Dial(PJSIP/6001) ", there will be a SIP 183 message from 6001 to the caller. The caller will really receive that SIP 183 message. In this case, Asterisk seems to work as a proxy. However, if I do " same = n,Dial(PJSIP/6001&PJSIP/6002) ", the caller will not receive those SIP 183 messages from 6001 and 6002. In this case asterisk seems to work different of a proxy, as someone told me in this list. So, if I dial 6001 and 6002, but in asynchronous and sequentially way, I will have a chance to see if the caller will receive the SIP 183 messages from 6001 and 6002. That it, the objective is to see if there is an way to deliver more than one SIP 183 message to the caller, in a kind of ring group implementation. Any hint will be very helpful!! Thanks a lot! RODRIGO PIMENTA CARVALHO Inatel Competence Center Software Ph: +55 35 3471 9200 RAMAL 979 ________________________________________ De: asterisk-users-bounces at lists.digium.com [asterisk-users-bounces at lists.digium.com] em Nome de SamyGo [govoiper at gmail.com] Enviado: segunda-feira, 13 de julho de 2015 16:24 Para: Asterisk Users Mailing List - Non-Commercial Discussion Assunto: Re: [asterisk-users] How to dial extensions asynchronous-sequentially ? Hi, Even you achieve that, what would be the objective? Do you want to just call the user and Hangup ? or Dial two users and connect them together ? Is this some sort of ring group implementation where users are dialled and first one to answer will get the call ?? 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() On Mon, Jul 13, 2015 at 2:28 PM, Rodrigo Pimenta Carvalho <pimenta at inatel.br<mailto:pimenta at inatel.br>> wrote: Hi. I my dialplan I have : same = n,Dial(PJSIP/6001,10) same = n,Dial(PJSIP/6002,30) same = n,Hangup() The extension 6002 will not be invited until the called party 6001 hangs up or until 10 seconds if nobody answers the call in 6001. How to call 6001 and immediately call 6002, having 2 phones ringing at same time, but without doing something like this : same = n,Dial(PJSIP/6001&PJSIP/6002) ? What I'm asking is if it is possible to call 6001 in an asynchronous way and then call 6002 too. Is it possible? Any hint will be very helpful! Best regards. RODRIGO PIMENTA CARVALHO Inatel Competence Center Software Ph: +55 35 3471 9200<tel:%2B55%2035%203471%209200> RAMAL 979 -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Pete Mundy
2015-Jul-15 21:16 UTC
[asterisk-users] How to dial extensions asynchronous-sequentially ?
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>
Maybe Matching Threads
- RES: RES: How to dial extensions asynchronous-sequentially ?
- How to dial extensions asynchronous-sequentially ?
- How to dial extensions asynchronous-sequentially ?
- What database should I use, for simple data storing? SQLite or the buitin one?
- RES: Can I use PJSIP_HEADER to read the SIP 183 message header?