[Freeswitch-trunk] [commit] r6307 - freeswitch/trunk/src/mod/endpoints/mod_portaudio
Freeswitch SVN
anthm at freeswitch.org
Fri Nov 16 09:55:18 EST 2007
Author: anthm
Date: Fri Nov 16 09:55:18 2007
New Revision: 6307
Modified:
freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c
Log:
adj
Modified: freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c Fri Nov 16 09:55:18 2007
@@ -1568,6 +1568,7 @@
char *dialplan = globals.dialplan;
char *cid_name = globals.cid_name;
char *cid_num = globals.cid_num;
+ char ip[25] = "0.0.0.0";
switch_core_session_add_stream(session, NULL);
if ((tech_pvt = (private_t *) switch_core_session_alloc(session, sizeof(private_t))) != 0) {
@@ -1602,10 +1603,12 @@
if (!switch_strlen_zero(argv[5])) {
tech_pvt->codec_ms = atoi(argv[5]);
}
+
+ switch_find_local_ip(ip, sizeof(ip), AF_INET);
if ((tech_pvt->caller_profile = switch_caller_profile_new(switch_core_session_get_pool(session),
NULL, dialplan, cid_name, cid_num,
- NULL, NULL, NULL, NULL, modname, NULL,
+ ip, NULL, NULL, NULL, modname, NULL,
dest)) != 0) {
char name[128];
snprintf(name, sizeof(name), "PortAudio/%s",
More information about the Freeswitch-trunk
mailing list