Re: [asterisk-users] hangup from which side
no, I meant this s,1,Set(H=us) s,n,Dial(,,g) s,n,Set(H=them) h,1,Noop(${H} hanged up) That might or may not work ... since I didn't actually check it Martin On Mon, Oct 26, 2009 at 9:05 AM, Danny Nicholas da...@debsinc.com wrote: So this *should* work?? [outgoing] - exten = s,1,Dial(DAHDI/1/5551212,20) - exten = s,2,Noop(I hung up) - exten = s,3,Hangup - exten = h,1,Noop(you hung up) - exten = h,2,Hangup [incoming] - exten = s,1,Answer - exten = s,2,Noop(I hung up) - exten = s,3,Hangup - exten = h,1,noop(you hung up) - exten = h,2,hangup -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Martin Sent: Friday, October 23, 2009 1:49 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] hangup from which side if you are debugging visually then look at SIP BYE message ... who sent it first and on PRI who sent the DISCONNECT message first. if you need to know that in the dialplan ... then if the originating channel hanged up then the dialplan should stop executing and go straight to h,1 even if Dial(,,g) is used also there is a channel variable HANGUPCAUSE and you can check what it does on the next step with Dial(,,g) and on h,1 ... since I don't know :) Martin On Thu, Oct 22, 2009 at 12:12 PM, B.Masoud @ SH i...@saudihome.com wrote: When Asterisk establish a call through an outbound trunk, Is there any way I can know who hang up the call first? The caller or the party called? Thanks. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hangup from which side
That will work on an outgoing call. Apparently (AFAICS) there is no feature in Answer to jump to H or continue like the Dial command has. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Martin Sent: Tuesday, October 27, 2009 8:10 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] hangup from which side no, I meant this s,1,Set(H=us) s,n,Dial(,,g) s,n,Set(H=them) h,1,Noop(${H} hanged up) That might or may not work ... since I didn't actually check it Martin On Mon, Oct 26, 2009 at 9:05 AM, Danny Nicholas da...@debsinc.com wrote: So this *should* work?? [outgoing] - exten = s,1,Dial(DAHDI/1/5551212,20) - exten = s,2,Noop(I hung up) - exten = s,3,Hangup - exten = h,1,Noop(you hung up) - exten = h,2,Hangup [incoming] - exten = s,1,Answer - exten = s,2,Noop(I hung up) - exten = s,3,Hangup - exten = h,1,noop(you hung up) - exten = h,2,hangup -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Martin Sent: Friday, October 23, 2009 1:49 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] hangup from which side if you are debugging visually then look at SIP BYE message ... who sent it first and on PRI who sent the DISCONNECT message first. if you need to know that in the dialplan ... then if the originating channel hanged up then the dialplan should stop executing and go straight to h,1 even if Dial(,,g) is used also there is a channel variable HANGUPCAUSE and you can check what it does on the next step with Dial(,,g) and on h,1 ... since I don't know :) Martin On Thu, Oct 22, 2009 at 12:12 PM, B.Masoud @ SH i...@saudihome.com wrote: When Asterisk establish a call through an outbound trunk, Is there any way I can know who hang up the call first? The caller or the party called? Thanks. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hangup from which side
So this *should* work?? [outgoing] - exten = s,1,Dial(DAHDI/1/5551212,20) - exten = s,2,Noop(I hung up) - exten = s,3,Hangup - exten = h,1,Noop(you hung up) - exten = h,2,Hangup [incoming] - exten = s,1,Answer - exten = s,2,Noop(I hung up) - exten = s,3,Hangup - exten = h,1,noop(you hung up) - exten = h,2,hangup -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Martin Sent: Friday, October 23, 2009 1:49 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] hangup from which side if you are debugging visually then look at SIP BYE message ... who sent it first and on PRI who sent the DISCONNECT message first. if you need to know that in the dialplan ... then if the originating channel hanged up then the dialplan should stop executing and go straight to h,1 even if Dial(,,g) is used also there is a channel variable HANGUPCAUSE and you can check what it does on the next step with Dial(,,g) and on h,1 ... since I don't know :) Martin On Thu, Oct 22, 2009 at 12:12 PM, B.Masoud @ SH i...@saudihome.com wrote: When Asterisk establish a call through an outbound trunk, Is there any way I can know who hang up the call first? The caller or the party called? Thanks. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hangup from which side
B.Masoud @ SH schrieb: When Asterisk establish a call through an outbound trunk, Is there any way I can know who hang up the call first? The caller or the party called? you could use the 'g' option of the Dial command together with some logic in the hangup extensions regards klaus ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hangup from which side
We have queuemetrics and it does that Here is some of the logic - (Obviously this wont work for you right out of the box but you should be able to decipher the logic...) [qm-queuedial] ; We use a global variable to pass values back from the answer-detect macro. ; STATUS = U unanswered ;= A answered(plus CAUSECOMPLETE=C when callee hung up) ; The 'g' dial parameter must be used in order to track callee disconnecting. ; Note that we'll be using the 'h' hook in any case to do the logging when channels go down. ; We set the CDR(accountcode) for live monitoring by QM. ; exten = s,1,NoOp,Outbound call - A:${QDIALER_AGENT} N:${QDIALER_NUMBER} Q:${QDIALER_QUEUE} Ch:${QDIALER_CHANNEL} exten = s,n,Set(CDR(accountcode)=QDIALAGI) exten = s,n,Set(ST=${EPOCH}) exten = s,n,Set(GM=QDV-${QDIALER_AGENT}) exten = s,n,Set(GLOBAL(${GM})=U) exten = s,n,Set(GLOBAL(${GM}ans)=0) exten = s,n,Macro(queuelog,${ST},${UNIQUEID},${QDIALER_QUEUE},${QDIALER_AGENT},C ALLOUTBOUND,-,${QDIALER_NUMBER}) exten = s,n,Dial(${QDIALER_CHANNEL},300,gM(queuedial-answer^${UNIQUEID}^${GM}^${ QDIALER_QUEUE}^${QDIALER_AGENT}^${ST})) exten = s,n,Set(CAUSECOMPLETE=${IF($[${DIALSTATUS} = ANSWER]?C)}) ; Trapping call termination here exten = h,1,NoOp( Call exiting: status ${GLOBAL(${GM})} answered at: ${GLOBAL(${GM}ans)} DS: ${DIALSTATUS} ) exten = h,n,Goto(case-${GLOBAL(${GM})}) exten = h,n,Hangup() ; Call unanswered exten = h,n(case-U),Set(WT=$[${EPOCH} - ${ST}]) exten = h,n,Macro(queuelog,${EPOCH},${UNIQUEID},${QDIALER_QUEUE},${QDIALER_AGENT },ABANDON,1,1,${WT}) exten = h,n,Hangup() ; call answered: agent/callee hung exten = h,n(case-A)i,Set(COMPLETE=${IF($[${CAUSECOMPLETE} = C]?COMPLETECALLER:COMPLETEAGENT)}) exten = h,n,Set(WT=$[${GLOBAL(${GM}ans)} - ${ST}]) exten = h,n,Set(CT=$[${EPOCH} - ${GLOBAL(${GM}ans)}]) exten = h,n,Macro(queuelog,${EPOCH},${UNIQUEID},${QDIALER_QUEUE},${QDIALER_AGENT },${COMPLETE},${WT},${CT}) exten = h,n,Hangup() -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Klaus Darilion Sent: Friday, October 23, 2009 9:21 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] hangup from which side B.Masoud @ SH schrieb: When Asterisk establish a call through an outbound trunk, Is there any way I can know who hang up the call first? The caller or the party called? you could use the 'g' option of the Dial command together with some logic in the hangup extensions regards klaus ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hangup from which side
if you are debugging visually then look at SIP BYE message ... who sent it first and on PRI who sent the DISCONNECT message first. if you need to know that in the dialplan ... then if the originating channel hanged up then the dialplan should stop executing and go straight to h,1 even if Dial(,,g) is used also there is a channel variable HANGUPCAUSE and you can check what it does on the next step with Dial(,,g) and on h,1 ... since I don't know :) Martin On Thu, Oct 22, 2009 at 12:12 PM, B.Masoud @ SH i...@saudihome.com wrote: When Asterisk establish a call through an outbound trunk, Is there any way I can know who hang up the call first? The caller or the party called? Thanks. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] hangup from which side
When Asterisk establish a call through an outbound trunk, Is there any way I can know who hang up the call first? The caller or the party called? Thanks. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users