[Asterisk-Dev] IAX2 Frame_Text to send Hangup Cause

reseaux reseauxit at yahoo.it
Thu Dec 9 04:38:25 MST 2004


Dear List 
	i have post yestarday a mail where i can try to explain my problem of 
interconnect two * box and receive the Hangup Cause from the * end point (TDM 
PRI), after some test i see that i cant receive the right Cause ID, i have 
look inside the Iax2.c but im not a c developer so i decide to try the 
SendTEXT application but without lucky because i cant receive the Text from 
the Source * box. Example:

A Server (source Call)
[extension.conf]
exten=>_X.,1,Dial(IAX2/test:test at bserver/${EXTEN}
exten=>_X.,2,Hangup

B Server (Termination Call)
[extension.conf]
exten=>_X.,1,Dial(Zap/g0)
exten=>_X.,2,SendTEXT(${HANGUPCAUSE})
exten =>_X.,3,Hangup

After sending the Text how can "Client" is able to receive?

---------
static int iax2_sendtext(struct ast_channel *c, char *text)
{

        return send_command_locked(PTR_TO_CALLNO(c->pvt->pvt), AST_FRAME_TEXT,
                0, 0, text, strlen(text) + 1, -1);
}
---------
But how can i receive it?

Thanks for possible Hits
Dimitri



More information about the asterisk-dev mailing list