[Kamailio-Users] Re move Body Part
Daniel-Constantin Mierla
miconda at gmail.com
Fri Jun 5 11:10:32 CEST 2009
Hello,
On 06/04/2009 06:22 PM, karhu wrote:
> [...]if(has_body("application/sdp") && search_body("m=video")){
> subst_body('/m=video ([0-9]+) RTP\/AVP (.*)/m=video \1 RTP\/AVP 99 \2 /');
>
just a tip, if you want to get rid of escaping / you can use another
character as delimiter in subst expression, e.g., '#':
subst_body('#m=video ([0-9]+) RTP/AVP (.*)#m=video \1 RTP/AVP 99 \2 #');
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com/
More information about the Users
mailing list