mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 14:44:17 +00:00
test
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8303 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
6231ceb02b
commit
16f5637f9a
3 files changed
+63
-34
No files matched your search
@@ -688,12 +688,14 @@ uint8_t sofia_reg_handle_register(nua_t * nua, sofia_profile_t *profile, nua_han
|
||||
|
||||
if (regtype == REG_REGISTER) {
|
||||
char *new_contact = NULL;
|
||||
|
||||
if (exptime) {
|
||||
new_contact = switch_mprintf("%s;expires=%ld", contact_str, (long)exptime);
|
||||
nua_respond(nh, SIP_200_OK, SIPTAG_CONTACT_STR(new_contact), NUTAG_WITH_THIS(nua), TAG_END());
|
||||
switch_safe_free(new_contact);
|
||||
if (switch_event_create(&event, SWITCH_EVENT_MESSAGE_QUERY) == SWITCH_STATUS_SUCCESS) {
|
||||
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Message-Account", "sip:%s@%s", to_user, to_host);
|
||||
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "VM-Sofia-Profile", "%s", profile->name);
|
||||
switch_event_fire(&event);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user