[Asterisk-Dev] Test data over IAX2/IAXClient
Steve Kann
stevek at stevek.com
Mon Oct 31 07:23:00 MST 2005
Eugene Prokopiev wrote:
> Hi,
>
> Can I send and receive text data over IAX2 with voice? Can IAXClient
> library help me?
>
Yes, see the previous e-mail. The API is defined in the iaxclient header:
EXPORT void iaxc_send_text(char *text);
#define IAXC_EVENT_TEXT 1
#define IAXC_TEXT_TYPE_IAX 5
struct iaxc_ev_text {
int type;
int callNo; /* call number for IAX text */
char message[IAXC_EVENT_BUFSIZ];
};
typedef struct iaxc_event_struct {
struct iaxc_event_struct *next;
int type;
union {
struct iaxc_ev_levels levels;
struct iaxc_ev_text text;
struct iaxc_ev_call_state call;
struct iaxc_ev_netstats netstats;
struct iaxc_ev_url url;
struct iaxc_ev_video video;
struct iaxc_ev_registration reg;
} ev;
} iaxc_event;
typedef int (*iaxc_event_callback_t)(iaxc_event e);
EXPORT void iaxc_set_event_callback(iaxc_event_callback_t func);
Again, iaxclient-devel is the proper mailing list for
iaxclient-development discussion.
-SteveK
More information about the asterisk-dev
mailing list