From 0ba59aa6c2d252886eb4889c5d37fe114e07b4f4 Mon Sep 17 00:00:00 2001 From: William King Date: Fri, 25 Apr 2014 13:49:59 -0700 Subject: [PATCH] Expanding on 052638186b2784c4142089008adf4289d40c80bc to support boolean tel url params in mod_sofia --- src/mod/endpoints/mod_sofia/sofia.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 589b694321..09d049f99d 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -8773,6 +8773,11 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia 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]); + switch_channel_set_variable(channel, var_name, "true"); + switch_safe_free( var_name ); } } }