[asterisk-users] Custom SIP-header not present in call Asterisk to Asterisk

2014-09-02 Thread Jonas Kellens
Hello, I have a situation where a call comes in to my Asterisk server B. This call comes from another Asterisk server A. I want to tell to this server A why my server B hangs up. So just before hanging up, I add a custom SIP-header : exten = s,n,SIPAddHeader(X-My-Hangup: MaxChan) exten =

Re: [asterisk-users] Custom SIP-header not present in call Asterisk to Asterisk

2014-09-02 Thread Steven Howes
On 2 Sep 2014, at 09:03, Jonas Kellens jonas.kell...@telenet.be wrote: So just before hanging up, I add a custom SIP-header : exten = s,n,SIPAddHeader(X-My-Hangup: MaxChan) exten = s,n,Hangup() SIPAddHeader only works for INVITE as far as I know. Steve--

Re: [asterisk-users] Custom SIP-header not present in call Asterisk to Asterisk

2014-09-02 Thread Jonas Kellens
On 02-09-14 11:34, Steven Howes wrote: On 2 Sep 2014, at 09:03, Jonas Kellens jonas.kell...@telenet.be mailto:jonas.kell...@telenet.be wrote: So just before hanging up, I add a custom SIP-header : exten = s,n,SIPAddHeader(X-My-Hangup: MaxChan) exten = s,n,Hangup() SIPAddHeader only works

Re: [asterisk-users] Custom SIP-header not present in call Asterisk to Asterisk

2014-09-02 Thread Steven Howes
On 2 Sep 2014, at 10:38, Jonas Kellens jonas.kell...@telenet.be wrote: Then how can I let another Asterisk server know the custom reason of hangup ? If it is not possible with custom SIP-header, then how ? As far as I know that’s going to require a source change. May not be the case with

Re: [asterisk-users] Custom SIP-header not present in call Asterisk to Asterisk

2014-09-02 Thread A J Stiles
On Tuesday 02 Sep 2014, Jonas Kellens wrote: On 02-09-14 11:34, Steven Howes wrote: On 2 Sep 2014, at 09:03, Jonas Kellens jonas.kell...@telenet.be mailto:jonas.kell...@telenet.be wrote: So just before hanging up, I add a custom SIP-header : exten = s,n,SIPAddHeader(X-My-Hangup:

Re: [asterisk-users] Custom SIP-header not present in call Asterisk to Asterisk

2014-09-02 Thread Eric Wieling
Sent: Tuesday, September 02, 2014 8:03 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Custom SIP-header not present in call Asterisk to Asterisk Hello, I have a situation where a call comes in to my Asterisk server B. This call comes from another Asterisk

Re: [asterisk-users] Custom SIP-header not present in call Asterisk to Asterisk

2014-09-02 Thread Jonas Kellens
On 02-09-14 14:22, Eric Wieling wrote: Try Hangup(123) where 123 is whatever hangup cause you want to send back to the caller. The calliing Asterisk server will get the valuse back in HANGUPCAUSE variable. Hello, I have tried sending Hangup(321) on Asterisk server B to Asterisk A but

Re: [asterisk-users] Custom SIP-header not present in call Asterisk to Asterisk

2014-09-02 Thread Eric Wieling
: Tuesday, September 02, 2014 12:41 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Custom SIP-header not present in call Asterisk to Asterisk On 02-09-14 14:22, Eric Wieling wrote: Try Hangup(123) where 123 is whatever hangup cause you want to send back