VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
EWieling at nyigc.com Guest
|
Posted: Tue Sep 02, 2014 7:22 am Post subject: [asterisk-users] Custom SIP-header not present in call Aster |
|
|
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.
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Jonas Kellens
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 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 => s,n,Hangup()
But I notice that this extra SIP-header is not send within the SIP-reponse : |
|
Back to top |
|
|
jonas.kellens at telen... Guest
|
Posted: Tue Sep 02, 2014 7:40 am Post subject: [asterisk-users] Custom SIP-header not present in call Aster |
|
|
On 02-09-14 14:22, Eric Wieling wrote:
Quote: | <![endif]--> <![endif]-->
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 when I read HangupCause on Asterisk A it always is '21'.
Good idea, but it does not seem to work.
Kind regards,
Jonas. |
|
Back to top |
|
|
EWieling at nyigc.com Guest
|
Posted: Tue Sep 02, 2014 7:43 am Post subject: [asterisk-users] Custom SIP-header not present in call Aster |
|
|
321 is not a valid Asterisk hangup cause. Valid hangupcauses are 1-127 (Q.831 cause codes) See https://wiki.asterisk.org/wiki/display/AST/Hangup+Cause+Mappings
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Jonas Kellens
Sent: 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:
Quote: |
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 when I read HangupCause on Asterisk A it always is '21'.
Good idea, but it does not seem to work.
Kind regards,
Jonas. |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|