From: Michael Jerris Date: Thu, 19 Oct 2006 17:04:58 +0000 (+0000) Subject: Get Alert-Info from inbound invite and set to the channel variable so that it can... X-Git-Tag: v1.0-beta1~1877 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=87aaab80d5e86a5041a15348d16b6b0416ac2b1c;p=thirdparty%2Ffreeswitch.git Get Alert-Info from inbound invite and set to the channel variable so that it can be passed through to the other end of the call if it is a sip call. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3108 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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)) {