]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5234 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 27 Mar 2013 16:37:15 +0000 (11:37 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 27 Mar 2013 16:37:15 +0000 (11:37 -0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index d57b434c45ba8417d0a6d53ff970685bbaa5451f..6232671817530bf6c071113e12a4590ccf3256a1 100644 (file)
@@ -4259,6 +4259,12 @@ void sofia_presence_handle_sip_i_publish(nua_t *nua, sofia_profile_t *profile, n
                        if ((tuple = switch_xml_child(xml, "tuple")) && (status = switch_xml_child(tuple, "status"))
                                && (basic = switch_xml_child(status, "basic"))) {
                                open_closed = basic->txt;
+
+                               if ((note = switch_xml_child(tuple, "note"))) {
+                                       rpid = note_txt = note->txt;
+                               } else if ((note = switch_xml_child(tuple, "dm:note"))) {
+                                       rpid = note_txt = note->txt;
+                               }
                        }
 
                        if ((person = switch_xml_child(xml, "dm:person"))) {