git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15191
d0543943-73ff-0310-b7d9-
9358b9ac24b2
char *dup_mwi_account = NULL;
char *mwi_user = NULL;
char *mwi_host = NULL;
+ char *var = NULL;
const char *from_user = NULL;
const char *from_host = NULL;
const char *reg_host = profile->reg_db_domain;
}
reg:
+
+ if (v_event && *v_event && (var = switch_event_get_header(*v_event, "sip-force-extension"))) {
+ to_user = var;
+ }
+
if (v_event && *v_event && (mwi_account = switch_event_get_header(*v_event, "mwi-account"))) {
dup_mwi_account = strdup(mwi_account);
switch_assert(dup_mwi_account != NULL);