[Asterisk-Dev] IAX2 Frame_Text to send Hangup Cause

reseaux reseauxit at yahoo.it
Mon Dec 13 09:01:28 MST 2004


Hi Tilghman
	i have try your patch on today CVS, I have patched without problem only one * 
server (the caller), but seems dont return the right ISDN hangup Cause only 
"0" (No one is available to answer at this time). I have need to patch both 
server?
Thanks very much for your help :-)
Dimitri

On Monday 13 December 2004 10:31, reseaux wrote:
> 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...
>
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev



More information about the asterisk-dev mailing list