[commit] r6013 - in freeswitch/trunk/src/mod: applications/mod_voicemail endpoints/mod_sofia
Author: mikej Date: Sun Oct 21 16:48:50 2007 New Revision: 6013 Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Log: code before declaration. Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c ============================================================================== --- freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c (original) +++ freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c Sun Oct 21 16:48:50 2007 @@ -1311,6 +1311,7 @@ } if (!x_user) { + char *xtra; int ok = 1; /* TRX added destination_number and caller_id_number from the session object * ideally switch_xml_* would do this for any curl request, but that can get tricky @@ -1318,7 +1319,7 @@ * and see what it would take to make it automagically do that */ caller_profile = switch_channel_get_caller_profile(channel); - char *xtra = switch_mprintf("mailbox=%s&destination_number=%s&caller_id_number=%s", myid,caller_profile->destination_number,caller_profile->caller_id_number); + xtra = switch_mprintf("mailbox=%s&destination_number=%s&caller_id_number=%s", myid,caller_profile->destination_number,caller_profile->caller_id_number); assert(xtra); Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Sun Oct 21 16:48:50 2007 @@ -2073,9 +2073,10 @@ if (sip->sip_request->rq_url) { sofia_gateway_t *gateway; + char *from_key; char *user = (char *) sip->sip_request->rq_url->url_user; check_decode(user, session); - char *from_key = switch_core_session_sprintf(session, "sip:%s@%s", + from_key = switch_core_session_sprintf(session, "sip:%s@%s", user, (char *) sip->sip_request->rq_url->url_host);
participants (1)
-
Freeswitch SVN