diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index c46f69da19..33e57b9369 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -3515,9 +3515,13 @@ static void sip_i_invite(nua_t *nua, for (un=sip->sip_unknown; un; un=un->un_next) { + if (!strncasecmp(un->un_name, "Alert-Info", 10)) { + if (!switch_strlen_zero(un->un_value)) { + switch_channel_set_variable(channel, "alert_info", (char *)un->un_value); + } // Loop thru Known Headers Here so we can do something with them // John Doe ;party=calling;screen=yes;privacy=off - if (!strncasecmp(un->un_name, "Remote-Party-ID", 15)) { + } else if (!strncasecmp(un->un_name, "Remote-Party-ID", 15)) { int argc, x, screen = 1; char *mydata, *argv[10] = { 0 }; if (!switch_strlen_zero(un->un_value)) {