]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
get chan id correctly from dial string
authorMichael Jerris <mike@jerris.com>
Mon, 14 Jan 2008 19:45:32 +0000 (19:45 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 14 Jan 2008 19:45:32 +0000 (19:45 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@367 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/mod_openzap/mod_openzap.c

index dcbf8b3294912c9c33fd199d6f5af41e72f5c749..ae5ae2e5f815b82e3df9514b6568a3dc116b35b3 100644 (file)
@@ -802,8 +802,8 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
                dest = p + 1;
                span_id = atoi(outbound_profile->destination_number);
                if (!switch_strlen_zero(dest)) {
-                       chan_id = atoi(dest);
                        if ((p = strchr(dest, '/'))) {
+                               chan_id = atoi(dest);
                                dest = p + 1;
                        }
                }