[Freeswitch-svn] [commit] r10503 - freeswitch/trunk/src/mod/endpoints/mod_sofia
FreeSWITCH SVN
anthm at freeswitch.org
Fri Nov 21 11:41:12 PST 2008
Author: anthm
Date: Fri Nov 21 14:41:11 2008
New Revision: 10503
Log:
update
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Fri Nov 21 14:41:11 2008
@@ -106,7 +106,15 @@
if (!strcasecmp(sip->sip_event->o_type, "refer")) {
if (session && channel && tech_pvt) {
if (sip->sip_payload && sip->sip_payload->pl_data) {
- if (!switch_stristr("100", sip->sip_payload->pl_data)) {
+ char *p;
+ int status;
+ if ((p = strchr(sip->sip_payload->pl_data, ' '))) {
+ p++;
+ if (p) {
+ status = atoi(p);
+ }
+ }
+ if (!status || status >= 200) {
switch_channel_set_variable(channel, "sip_refer_reply", sip->sip_payload->pl_data);
if (tech_pvt->want_event == 9999) {
tech_pvt->want_event = 0;
More information about the Freeswitch-svn
mailing list