2 May
2013
2 May
'13
7:38 p.m.
Hi, I want to copy RTMP extra header to Sofia/SIP. I can do it in dialplan like this <action application="export" data="nolocal:sip_h_X-Flash-Header1=${rtmp_u__X-Flash-Header1}"/> This way, i need to specify each header name in dialplan. Can we make dialplan that support arbitrary header name? I can do it in Lua with this method: - execute uuid_dump - search line that started by variable_rtmp_u__X-Flash - extract header_name and header_value - session:execute("export", "nolocal:sip_h_" .. header_name .. "=" .. header_value) Any better way to do this? Thanks -- Iwan Budi Kusnanto