<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Helvetica, Arial, sans-serif">Hello,<br>
<br>
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.<br>
<br>
So just before hanging up, I add a custom SIP-header :<br>
<br>
exten => s,n,SIPAddHeader(X-My-Hangup: MaxChan)<br>
exten => s,n,Hangup()<br>
<br>
<br>
But I notice that this extra SIP-header is not send within the
SIP-reponse :<br>
<br>
SIP/2.0 603 Declined<br>
Via: SIP/2.0/UDP
xx.xx.xx.98:5060;branch=z9hG4bK168884d7;received=xx.xx.xx.98;rport=5060<br>
From: "5006" <a class="moz-txt-link-rfc2396E" href="mailto:sip:5006@xx.xx.xx.98"><sip:5006@xx.xx.xx.98></a>;tag=as50c98b4c<br>
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:0419@xx.xx.xx.238"><sip:0419@xx.xx.xx.238></a>;tag=as3c6e57b0<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:6d1039bb22716c6e6dec69fb3e78a8d7@xx.xx.xx.98:5060">6d1039bb22716c6e6dec69fb3e78a8d7@xx.xx.xx.98:5060</a><br>
CSeq: 102 INVITE<br>
Server: myasterisk<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE,
NOTIFY, INFO, PUBLISH<br>
Supported: replaces, timer<br>
Content-Length: 0<br>
<br>
<br>
How can I make this work ?<br>
<br>
<br>
Thanks.<br>
<br>
Jonas.<br>
</font>
</body>
</html>