]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5118 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 26 Feb 2013 22:37:29 +0000 (16:37 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 26 Feb 2013 22:37:33 +0000 (16:37 -0600)
src/mod/endpoints/mod_sofia/mod_sofia.c

index 3a5162c398de5892e317843394ea5c945b569797..9fecaceacf28d1450e22f7f0f5a8d3e024823704 100644 (file)
@@ -4685,10 +4685,12 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
                 * Handle params, strip them off the destination and add them to the
                 * invite contact.
                 *
-                * TODO:
-                *  - Add parameters back to destination url?
                 */
-               if ((params = strchr(dest, ';'))) {
+
+               if ((params = strchr(dest, '+'))) {
+                       *params = ';';
+                       params = NULL;
+               } else if ((params = strchr(dest, ';'))) {
                        char *tp_param;
 
                        *params++ = '\0';