From: <sb...@us...> - 2007-11-05 15:09:34
|
Revision: 1265 http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1265&view=rev Author: sbalea Date: 2007-11-05 07:09:32 -0800 (Mon, 05 Nov 2007) Log Message: ----------- Merge change from the elbunce branch: add ability to send text messages to an active call Modified Paths: -------------- trunk/lib/iaxclient.h trunk/lib/iaxclient_lib.c Modified: trunk/lib/iaxclient.h =================================================================== --- trunk/lib/iaxclient.h 2007-11-04 19:17:58 UTC (rev 1264) +++ trunk/lib/iaxclient.h 2007-11-05 15:09:32 UTC (rev 1265) @@ -819,6 +819,11 @@ EXPORT void iaxc_send_text(const char * text); /*! + Sends \a text to call \a callNo +*/ +EXPORT void iaxc_send_text_call(int callNo, const char * text); + +/*! Sends a URL across the currently selected call \param url The URL to send across. \param link If non-zero the URL is a link Modified: trunk/lib/iaxclient_lib.c =================================================================== --- trunk/lib/iaxclient_lib.c 2007-11-04 19:17:58 UTC (rev 1264) +++ trunk/lib/iaxclient_lib.c 2007-11-05 15:09:32 UTC (rev 1265) @@ -1510,6 +1510,17 @@ } } +EXPORT void iaxc_send_text_call(int callNo, const char * text) +{ + if ( callNo < 0 || !(calls[callNo].state & IAXC_CALL_STATE_ACTIVE) ) + return; + + get_iaxc_lock(); + if ( calls[callNo].state & IAXC_CALL_STATE_ACTIVE ) + iax_send_text(calls[callNo].session, text); + put_iaxc_lock(); +} + EXPORT void iaxc_send_url(const char * url, int link) { if ( selected_call >= 0 ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |