[Asterisk-Dev] IAX2 Frame_Text to send Hangup Cause
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Fri Dec 10 09:47:24 MST 2004
On Friday 10 December 2004 07:29, reseaux wrote:
>- After this hack the SendText from B server is able to send the HangupCause
> to server A :-)
> How can fix my stupid hack with a good line of code?
Well, really, the whole thing is a hack, because you're using the TEXT frame
type, which is intended for text messages, not for informational messages.
Really, the way to do this would be either to alter IAX2 to use Q.931 cause
codes or to implement a new frame type, possibly AST_FRAME_INFO, which
sends additional information about the call to a remote peer and handles it
accordingly. My patch was simply a quick hack meant to show that receiving
TEXT and interpreting it on the server was possible.
--
Tilghman
More information about the asterisk-dev
mailing list