]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3983 try this
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 7 Mar 2012 19:05:27 +0000 (13:05 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 7 Mar 2012 19:05:33 +0000 (13:05 -0600)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 1dfa7188cdf9f537e23dc833cfad61a363ca2c8a..6e1d895074dac0bcde11cab5dba924a3c1ede802 100644 (file)
@@ -2499,7 +2499,9 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
                                                                  
                }
 
-               if (!zstr(uuid)) {
+               if (zstr(uuid)) {
+                       stream.write_function(&stream, "<state>terminated</state>\n");
+               } else {
                        if (!zstr(answer_state)) {
                                astate = answer_state;
                        }