Ok, this was trivial, I forgot to put b2b_handle_reply :-)
On 18/06/2021 11:06, johan wrote:
> Hi,
>
> it seems to me that I don't grasp b2bua.
>
> The purpose of this script is very simple :
>
> - handle registration
>
> - on receiving an invite then put the 2 entities in contact with each
I have without ^ and $ before, i have now tried again like you suggested
but it does not work.
It goes in the if loop ("search_body") but it does not replace inactive
with sendonly.
I have also look at return code from replace_body and it gives me "-1".
Stas Kobzar je 6/18/2021 ob 1:04 PM napis
Hello,
Just do not use ^ and $ in the search pattern. It is probably trying to
match the whole SDP packet, not single line.
On Fri, Jun 18, 2021 at 5:09 AM Miha via Users
wrote:
> Hello
>
> have issue with replace_body as it does not change SDP.
> My code looks like this:
>
> if (has_body("appl
Hi,
it seems to me that I don't grasp b2bua.
The purpose of this script is very simple :
- handle registration
- on receiving an invite then put the 2 entities in contact with each
other.
For some reason, b2bua can't route the reply.
Log:
Jun 18 04:55:20 debian10opensips31 /data/opensips/s
Hello
have issue with replace_body as it does not change SDP.
My code looks like this:
if (has_body("application/sdp")){
if(search_body("a=inactive")){
*replace_body("^a=inactive$", "a=sendonly");*
}
$var(rtpengine_flags) ="trust-address replace-origin