[asterisk-dev] X-Asterisk-HangupCause header only added in auto fallthrough mode
Klaus Darilion
klaus.mailinglists at pernau.at
Fri Jan 23 02:44:22 CST 2009
Hi!
Is this a bug or a feature I do not understand?
Simple scenario:
---SIP----> Asterisk ----SIP---->
_X. => {
Dial(SIP/${EXTEN});
}
If the outgoing leg is rejected (e.g. 480), Asterisk will add the
X-Asterisk-HangupCause headers:
X-Asterisk-HangupCause: User alerting, no answer
X-Asterisk-HangupCauseCode: 19
But if the call is hang up manually, these headers are not added:
_X. => {
Dial(SIP/${EXTEN});
Hangup(1); // Hangup() does not work either
}
This causes a SIP response without X-Asterisk-Hangupcause headers.
Why?
Thanks
Klaus
More information about the asterisk-dev
mailing list