[commit] r3108 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Author: mikej Date: Thu Oct 19 13:04:58 2006 New Revision: 3108 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Log: 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. Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Thu Oct 19 13:04:58 2006 @@ -3515,9 +3515,13 @@ 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 <sip:+19018577141@209.247.16.1>;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)) {
participants (1)
-
Freeswitch SVN