From af32ca00e31e1556f1d4ed70337ab823528b496f Mon Sep 17 00:00:00 2001 From: William King Date: Tue, 29 Apr 2014 15:22:38 -0700 Subject: [PATCH] Correction to commit 0ba59aa6c2d252886eb4889c5d37fe114e07b4f4 using the correct variable in tel uri param parsing for mod_sofia --- src/mod/endpoints/mod_sofia/sofia.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index a169f10144..1df2d5f58f 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -8777,14 +8777,14 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia } else { int argc2 = 0; char *argv2[2] = { 0 }; - if ((argc2 = switch_separate_string(argv1[x1], '=', argv2, (sizeof(argv2) / sizeof(argv2[0]))))) { + if ((argc2 = switch_separate_string(argv1[x1], '=', argv2, (sizeof(argv2) / sizeof(argv2[0])))) == 2) { char *var_name = NULL; var_name = switch_mprintf("sip_invite_%s", argv2[0]); switch_channel_set_variable(channel, var_name, argv2[1]); switch_safe_free( var_name ); } else { char *var_name = NULL; - var_name = switch_mprintf("sip_invite_%s", argv2[0]); + var_name = switch_mprintf("sip_invite_%s", argv1[x1]); switch_channel_set_variable(channel, var_name, "true"); switch_safe_free( var_name ); }