]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3935 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 22 Feb 2012 17:51:49 +0000 (11:51 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 22 Feb 2012 17:51:49 +0000 (11:51 -0600)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 1a949044daf38f39f7d5c02a1046d6ddc434e0fa..ecedd8898eeda6d76005fd03854d2146abdb7cd7 100644 (file)
@@ -3559,8 +3559,9 @@ void sofia_presence_handle_sip_i_subscribe(int status,
                                        switch_event_add_header_string(sevent, SWITCH_STACK_BOTTOM, "proto", SOFIA_CHAT_PROTO);
                                        switch_event_add_header_string(sevent, SWITCH_STACK_BOTTOM, "login", profile->name);
                                        switch_event_add_header_string(sevent, SWITCH_STACK_BOTTOM, "presence-source", "subscribe");
-                                       switch_event_add_header(sevent, SWITCH_STACK_BOTTOM, "from", "%s@%s", to_user, to_host);
+                                       switch_event_add_header(sevent, SWITCH_STACK_BOTTOM, "from", "%s@%s", from_user, from_host);
                                        switch_event_add_header(sevent, SWITCH_STACK_BOTTOM, "to", "%s@%s", to_user, to_host);
+                                       switch_event_add_header_string(sevent, SWITCH_STACK_BOTTOM, "expires", exp_delta_str);
                                        switch_event_add_header_string(sevent, SWITCH_STACK_BOTTOM, "alt_event_type", "dialog");
                                        switch_event_add_header_string(sevent, SWITCH_STACK_BOTTOM, "rpid", "unknown");
                                        switch_event_add_header_string(sevent, SWITCH_STACK_BOTTOM, "status", "Registered");