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

Reply via email to