Re: [asterisk-users] identify caller hangup or callee hangup?

2010-05-17 Thread Klaus Darilion
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? AFAIK

Re: [asterisk-users] identify caller hangup or callee hangup?

2010-05-17 Thread Gareth Blades
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 callee hangup

Re: [asterisk-users] identify caller hangup or callee hangup?

2010-05-17 Thread Vardan
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

Re: [asterisk-users] identify caller hangup or callee hangup?

2010-05-17 Thread Vardan
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

Re: [asterisk-users] identify caller hangup or callee hangup?

2010-05-17 Thread Olivier
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

Re: [asterisk-users] identify caller hangup or callee hangup?

2010-05-17 Thread Vardan
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

Re: [asterisk-users] identify caller hangup or callee hangup?

2010-05-17 Thread Aurimas Skirgaila
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 hvarda...@gmail.com 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:

Re: [asterisk-users] identify caller hangup or callee hangup?

2010-05-17 Thread Vardan
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