I have a business problem that is killing me. I do SIP2SIP, only. I place a call after receiving the incoming request, and I need to send a Hangup(Code) to the caller, based on the result of the outbound leg. How can I do that in Asterisk? Is that even possible at all? I can use Hangup(code), but how do I extract it from the received BYE? This is only for calls that fail to connect on the outbound leg. Philip -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100222/c9c35129/attachment.htm
Steve Howes
2010-Feb-22 11:32 UTC
[asterisk-users] Sending back the BYE code gotten on second leg
On 22 Feb 2010, at 11:16, CDR wrote:> I have a business problem that is killing me. I do SIP2SIP, only. I > place a call after receiving the incoming request, and I need to > send a Hangup(Code) to the caller, based on the result of the > outbound leg. How can I do that in Asterisk? Is that even possible > at all? > I can use Hangup(code), but how do I extract it from the received > BYE? This is only for calls that fail to connect on the outbound leg.Just do Hangup(), I think it should pass it automatically as long as you never did Answer()... Might be wrong. S