I have setup rtpengine to read and write to specific AVP:

```
modparam("rtpengine", "read_sdp_pv", "$avp(rt_sdp_r)")
modparam("rtpengine", "write_sdp_pv", "$avp(rt_sdp_w)")
```

and in RTPMANAGAE route which would be called just before RELAY and on_reply as:
```
   route(REMOVE_SECOND_M_LINE);
    $avp(rt_sdp_w) = $null;
        if (is_reply()){
                remove_body();
                set_reply_body("$avp(rt_sdp_r)", "application/sdp");
        } else {
                remove_body();
                set_body("$avp(rt_sdp_r)", "application/sdp")
        }
        if (!rtpengine_manage($var(flag))){ })

```
there are some issue:
1. rtpengine is not reading SDP content from AVP for REPLY messages b/c of this 
I had to remove body and set modified content again
2. rtnengine set_body and set_reply_body is making changes but in bad way 
specially setting Content-Header instead of 123 to 123123 or similar changes 
and seems rtpengine set its content to message body with having   
`Content-Length:  211211211`

is there any way to properly modify SIP REPLY MESSAGE with having everything in 
place (Content-Legnth) withiout malforming sip message?(specially with using 
rtpengine)
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- 
[email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to