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

Eric Wieling EWieling at nyigc.com
Tue Sep 2 07:22:28 CDT 2014


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 at lists.digium.com [mailto:asterisk-users-bounces at 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 :

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140902/2130a86c/attachment.html>


More information about the asterisk-users mailing list