[Freeswitch-users] Copy rtmp extra header to sofia
    Iwan Budi Kusnanto 
    ibk at labhijau.net
       
    Thu May  2 23:38:08 MSD 2013
    
    
  
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
    
    
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list