From: Brian West Date: Tue, 18 Dec 2007 14:22:38 +0000 (+0000) Subject: small tweak for calling party and hold events.. X-Git-Tag: v1.0-rc1~1007 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3992bc3a7bbaf4538ff3927f53d8662d175f371;p=thirdparty%2Ffreeswitch.git small tweak for calling party and hold events.. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6861 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 4d715c31e6..3707fcc7d3 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -670,7 +670,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * dft_state = "confirmed"; } - if (!strcasecmp(state, "cs_execute")) { + if (!strcasecmp(state, "cs_execute") && !strcasecmp(direction, "inbound") && !strcasecmp(event_status, "hold")) { goto end; } else if (!strcasecmp(state, "cs_hangup")) { astate = "terminated";