[asterisk-users] Sending back the BYE code gotten on second leg
Steve Howes
steve-lists at geekinter.net
Mon Feb 22 05:32:04 CST 2010
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
More information about the asterisk-users
mailing list