[Asterisk-Dev] IAX2 Frame_Text to send Hangup Cause

reseaux reseauxit at yahoo.it
Mon Dec 13 02:31:12 MST 2004


Thanks Tilghman
	i will try this patch and report how it work!!
Sincerelly 
Dimitri

On Friday 10 December 2004 19:42, Tilghman Lesher wrote:
> On Friday 10 December 2004 12:13, Tilghman Lesher wrote:
> > On Friday 10 December 2004 11:22, reseaux wrote:
> > > 	i know is not a solution but is a great Hack!! With my little Remove
> > > of the two line in Chan_iax2.c i can give any problem? Can you give me
> > > some idea how to replace this two line in Chan_iax2.c for example:
> > > --------------------
> > > /* Set hangup cause */
> > > 	if AST_FRAME_TEXT != "hangupcause=" {
> > >           if (ies.cause)
> > > 		iaxs[fr.callno]->owner->hangupcause = atoi(ies.cause);
> > > 	}
> > > ---------------------
> > > Is not C code line :-) but i use to explain how want fix it.
> >
> > Attached is a better way to do it, given some time to look at the code
> > and find the right way to send messages.  What I've done is to create a
> > Q.931 code to be sent along with a IAX_COMMAND_HANGUP frame and
> > receive that code on the remote end, to be inserted into the channel
> > hangupcause at the appropriate time.
> >
> > BTW, this is a patch against CVS, so I have no idea if it will cleanly
> > apply against one of the releases.
>
> Ooops, missed the most critical case...




More information about the asterisk-dev mailing list