[asterisk-users] Possible bug in Hangup() (Asterisk 1.4.x)

2011-04-15 Thread Vlasis Hatzistavrou
Hello, On an Asterisk 1.4.33.1 in a simple scenario: [test] exten = _X.,1,Dial(SIP/12345@peer01,,,) exten = i,1,Hangup(${HANGUPCAUSE}) exten = t,1,Hangup(${HANGUPCAUSE}) exten = h,1,Hangup(${HANGUPCAUSE}) I have noticed that no matter what value we set in the Hangup(cause code) commands,

Re: [asterisk-users] Possible bug in Hangup() (Asterisk 1.4.x)

2011-04-15 Thread Jim Dickenson
My guess is since the call was never answered you should be looking at ${DIALSTATUS} -- Jim Dickenson mailto:dicken...@cfmc.com CfMC http://www.cfmc.com/ On Apr 15, 2011, at 5:02 AM, Vlasis Hatzistavrou wrote: Hello, On an Asterisk 1.4.33.1 in a simple scenario: [test] exten =

Re: [asterisk-users] Possible bug in Hangup() (Asterisk 1.4.x)

2011-04-15 Thread Vlasis Hatzistavrou
Hello Jim, Thank you for the reply. The problem is not reading the ${HANGUPCAUSE} or the ${DIALSTATUS}. It is that the Hangup(cause) command seems to ignore its argument and just sends a 503 cause to the caller for all unanswered calls no matter what... Hangup(cause) was working as

Re: [asterisk-users] Possible bug in Hangup() (Asterisk 1.4.x)

2011-04-15 Thread Jim Dickenson
If what you showed is your whole dialplan then none of the i or t or h extensions are going to be executed for a non answered call. -- Jim Dickenson mailto:dicken...@cfmc.com CfMC http://www.cfmc.com/ On Apr 15, 2011, at 6:46 AM, Vlasis Hatzistavrou wrote: Hello Jim, Thank you for the

Re: [asterisk-users] Possible bug in Hangup() (Asterisk 1.4.x)

2011-04-15 Thread Steve Davies
On 15 April 2011 13:02, Vlasis Hatzistavrou vh...@kinetix.gr wrote: Hello, On an Asterisk 1.4.33.1 in a simple scenario: [test] exten = _X.,1,Dial(SIP/12345@peer01,,,) exten = i,1,Hangup(${HANGUPCAUSE}) exten = t,1,Hangup(${HANGUPCAUSE}) exten = h,1,Hangup(${HANGUPCAUSE}) I have

Re: [asterisk-users] Possible bug in Hangup() (Asterisk 1.4.x)

2011-04-15 Thread Vlasis Hatzistavrou
The h extension is executed after the remote end peer01 rejects the call with a 408. I verified it by altering the dialplan as: [test] exten = _X.,1,Dial(SIP/12345@peer01,,,) exten = i,1,Hangup(${HANGUPCAUSE}) exten = t,1,Hangup(${HANGUPCAUSE}) exten = h,1,NoOp(Hangup cause is: ${HANGUPCAUSE})

Re: [asterisk-users] Possible bug in Hangup() (Asterisk 1.4.x)

2011-04-15 Thread Vlasis Hatzistavrou
Hello Steve, On 15/4/2011 5:07 μμ, Steve Davies wrote: Strictly speaking you can only Hangup (BYE) an answered and fully established call. In SIP terms, a hangup that occurs before an answer is a CANCEL, and I believe a CANCEL is always represented by a 503 code in chan_sip. Regards, Steve I