From: Michael Jerris Date: Mon, 14 Jan 2008 19:45:32 +0000 (+0000) Subject: get chan id correctly from dial string X-Git-Tag: v1.0.6~38^2~494 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d223f037985c635254033dbda2c33fa5105db3b8;p=thirdparty%2Ffreeswitch.git get chan id correctly from dial string git-svn-id: http://svn.openzap.org/svn/openzap/trunk@367 a93c3328-9c30-0410-af19-c9cd2b2d52af --- diff --git a/libs/openzap/mod_openzap/mod_openzap.c b/libs/openzap/mod_openzap/mod_openzap.c index dcbf8b3294..ae5ae2e5f8 100644 --- a/libs/openzap/mod_openzap/mod_openzap.c +++ b/libs/openzap/mod_openzap/mod_openzap.c @@ -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; } }