mod_sms: add app transfer - fix free context
This commit is contained in:
parent
fd040025ac
commit
a01644206f
|
@ -624,10 +624,10 @@ SWITCH_STANDARD_CHAT_APP(transfer_function)
|
||||||
|
|
||||||
switch_event_del_header(message, "context");
|
switch_event_del_header(message, "context");
|
||||||
switch_event_add_header_string(message, SWITCH_STACK_BOTTOM, "context", context);
|
switch_event_add_header_string(message, SWITCH_STACK_BOTTOM, "context", context);
|
||||||
|
switch_safe_free(context);
|
||||||
|
|
||||||
switch_core_chat_send("GLOBAL", message);
|
switch_core_chat_send("GLOBAL", message);
|
||||||
|
|
||||||
|
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue