mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-23 03:33:48 +00:00
set variables based on input hash
This commit is contained in:
parent
8de62867f5
commit
3815d1885e
@ -23,6 +23,7 @@
|
|||||||
* Contributor(s):
|
* Contributor(s):
|
||||||
*
|
*
|
||||||
* Mathieu Rene <mrene@avgs.ca>
|
* Mathieu Rene <mrene@avgs.ca>
|
||||||
|
* Anthony Minessale II <anthm@freeswitch.org>
|
||||||
*
|
*
|
||||||
* mod_rtmp.c -- RTMP Endpoint Module
|
* mod_rtmp.c -- RTMP Endpoint Module
|
||||||
*
|
*
|
||||||
@ -898,6 +899,14 @@ switch_call_cause_t rtmp_session_create_call(rtmp_session_t *rsession, switch_co
|
|||||||
switch_set_flag_locked(tech_pvt, TFLAG_DETACHED);
|
switch_set_flag_locked(tech_pvt, TFLAG_DETACHED);
|
||||||
rtmp_set_channel_variables(*newsession);
|
rtmp_set_channel_variables(*newsession);
|
||||||
|
|
||||||
|
if (event) {
|
||||||
|
switch_event_header_t *hp;
|
||||||
|
|
||||||
|
for (hp = event->headers; hp; hp = hp->next) {
|
||||||
|
switch_channel_set_variable_name_printf(channel, hp->value, RTMP_USER_VARIABLE_PREFIX "_%s", hp->name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch_core_hash_insert_wrlock(rsession->session_hash, switch_core_session_get_uuid(*newsession), tech_pvt, rsession->session_rwlock);
|
switch_core_hash_insert_wrlock(rsession->session_hash, switch_core_session_get_uuid(*newsession), tech_pvt, rsession->session_rwlock);
|
||||||
|
|
||||||
if (switch_core_session_thread_launch(tech_pvt->session) != SWITCH_STATUS_SUCCESS) {
|
if (switch_core_session_thread_launch(tech_pvt->session) != SWITCH_STATUS_SUCCESS) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user