Hello,
you know , when a call setup, either caller hangup first or callee
hangup first , the hangupcause will set to 16(means Call Clearing
Causes)
My question is how could i identify whether the caller or callee
hangup the phone first?
Best Regards!
--
Thanks for your supporting,
have a nice d
Am 17.05.2010 10:46, schrieb Zhang Shukun:
> Hello,
>
> you know , when a call setup, either caller hangup first or callee
> hangup first , the hangupcause will set to 16(means Call Clearing
> Causes)
>
> My question is how could i identify whether the caller or callee
> hangup the phone first?
Klaus Darilion wrote:
>
> Am 17.05.2010 10:46, schrieb Zhang Shukun:
>> Hello,
>>
>> you know , when a call setup, either caller hangup first or callee
>> hangup first , the hangupcause will set to 16(means Call Clearing
>> Causes)
>>
>> My question is how could i identify whether the caller or ca
I think You can do this if you use local channel.
For example, you do two context
AEL example
context Incoming {
_X. => {
..
Dial(Local/${ext...@outgoing/n);
};
h => {
Noop(Hangup in Incoming);
}
};
context Outgoi
And the first hangup message is the hangup callee or caller
If you become first message Hangup in Incoming, that mean the hangup was
make in Incoming context
If you become first message Hangup in Outgoing, that mean the hangup was
make in Outgoing context
Vardan
P.S.
[default] // In example t
Have you looked at Dial's g option ?
"*g*: When the called party hangs up, exit to execute more commands in the
current context."
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us
Yes, I know about this option, You can you this also, but, how you want
to see what leg was hangup the channel?
Olivier wrote:
> Have you looked at Dial's g option ?
> "*g*: When the called party hangs up, exit to execute more commands in
> the current context."
>
--
Vardan Harutyunyan,
Senior
so you can go for it.
the basic idea:
Dian(***,***,g)
Noop("Called party hung up first")
Hangup
On Mon, May 17, 2010 at 1:23 PM, Vardan wrote:
> Yes, I know about this option, You can you this also, but, how you want
> to see what leg was hangup the channel?
>
> Olivier wrote:
> > Have you lo
And how you want check the both leg?
Look, you have to channel.
Incoming and Outgoing.
You want to see, who first do hangup.
How you want do this with "g"?
--
Vardan Harutyunyan,
Senior System Administrator
Enterprise Incubator Foundation
123 Hovsep Emin Street,
Yerevan 0051, Republic of Armen