]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix dest
authorAnthony Minessale <anthony.minessale@gmail.com>
Sat, 2 Feb 2008 16:48:20 +0000 (16:48 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sat, 2 Feb 2008 16:48:20 +0000 (16:48 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@383 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/mod_openzap/mod_openzap.c

index 51faebc0117b338634c16fc4f77e0fbd013a7e4a..d28de8fb0109a905973c9415fa9f23365920b198 100644 (file)
@@ -823,9 +823,12 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
                        } else {
                                chan_id = atoi(p);
                        }
+                       if ((p = strchr(p, '/')) && *++p) {
+                               dest = p;
+                       }
                }
        }
-               
+
        if (!span_id) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Missing span\n");
                return SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER;