[asterisk-dev] SIP channel/owner question
Johansson Olle E
oej at edvina.net
Fri Jan 23 10:31:26 CST 2009
23 jan 2009 kl. 16.52 skrev Klaus Darilion:
> Russell Bryant schrieb:
>> On Jan 21, 2009, at 4:32 AM, Klaus Darilion wrote:
>>> In SIP channel I have an struct ast_channel *ast. So, what is the
>>> difference between:
>> Assuming you're talking about "ast" as a parameter to a channel
>> technology callback, ast and ast->tech_pvt->owner should be the same
> When is the owner set?
> When an incoming INVITE is rejected with Hangup(1); ast->hangupcause
> set. But the function __transmit_response adds X-Asterisk-Hangupcause
> according to ast->tech_pvt->owner->hangupcause. But as owner=NULL, the
> header will not be added.
> At least this is the behavior of 1.4.23. Should I open a bug report?
There's already one patch for that, related to your bug report.
More information about the asterisk-dev