Hi,
I am trying the following: - extract the message body - replace some content - store it in a hashtable - send it out in a reply in later request
I do the following:
[...] $sht(sdp=>$ci) = $(rb{s.replace,a=sendrecv,a=sendrecv\r\na=curr:qos local none}); [...] set_reply_body("$sht(sdp=>$ci)", "application/sdp"); send_reply("200", "OK"); [...]
It works like a charm, however I'm facing one small issue:
My SDP looks like this: [...] a=rtpmap:8 PCMA/8000 a=sendrecv\r\na=curr:qos local none a=rtcp:34949 [...]
It seems that s.replace is escaping characters.
Anyone any ideas?
Thanks, Carsten
$var(x) = "abababa"; $(var(x){s.replace,a,c} => "cbcbcbc" --
Carsten Bock I CTO & Founder
ng-voice GmbH
Trostbrücke 1 I 20457 Hamburg I Germany T +49 40 524 75 93-40 | M +49 179 2021244 I www.ng-voice.com
Registry Office at Local Court Hamburg, HRB 120189 Managing Directors: Dr. David Bachmann, Carsten Bock