replace-origin flag error

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

replace-origin flag error

Edwin
I get an error on opensips 2.3.2 (Debian) when I run
rtpengine_manage("replace-origin ICE=remove");
ERROR:rtpengine:parse_flags: error processing flag `replace-origin': cannot
add to bson item

Any idea what is the cause or even better, the solution?



--
Sent from: http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: replace-origin flag error

Razvan Crainea-3
Hi, Edwin!

What message is the ERROR triggered on? Is it on the INVITE, ACK, BYE?
Can you post the entire DEBUG log?

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/08/2017 12:26 AM, Edwin wrote:

> I get an error on opensips 2.3.2 (Debian) when I run
> rtpengine_manage("replace-origin ICE=remove");
> ERROR:rtpengine:parse_flags: error processing flag `replace-origin': cannot
> add to bson item
>
> Any idea what is the cause or even better, the solution?
>
>
>
> --
> Sent from: http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: replace-origin flag error

Edwin
Hi Răzvan,

It happens in my case when I call to mobile en reject the message, a 486
Busy Here is sent, debug doesn't tell that much:

+++++  Reply route route_to_gateway  +++++  INVITE 486 Busy here 1.2.3.4
Busy here <sip:123456789@2.3.4.5:5060>
DBG:core:parse_headers: flags=2000
DBG:core:parse_headers: flags=ffffffffffffffff
DBG:core:parse_sdp: message body has length zero
DBG:core:parse_headers: flags=40
ERROR:rtpengine:parse_flags: error processing flag `replace-origin': cannot
add to bson item
Nov  8 14:44:40 back-1-staging opensips[19089]: ...
DBG:tm:t_should_relay_response: T_code=180, new_code=486
DBG:tm:t_pick_branch: picked branch 0, code 486 (prio=686)
DBG:core:parse_headers: flags=ffffffffffffffff

I just call a 'rtpengine_manage("replace-origin ICE=remove")' in the reply
route, but maybe I have to only do this for Invite, ack etc?

Gr.

Edwin



--
Sent from: http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: replace-origin flag error

Razvan Crainea-3
Hi, Edwin!

I think you are right - when deleting the session (a negative reply is
received), that flag should no longer be used. I will push a fix now.
What version of OpenSIPS are you using, and how did you install it?

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/08/2017 03:54 PM, Edwin wrote:

> Hi Răzvan,
>
> It happens in my case when I call to mobile en reject the message, a 486
> Busy Here is sent, debug doesn't tell that much:
>
> +++++  Reply route route_to_gateway  +++++  INVITE 486 Busy here 1.2.3.4
> Busy here <sip:123456789@2.3.4.5:5060>
> DBG:core:parse_headers: flags=2000
> DBG:core:parse_headers: flags=ffffffffffffffff
> DBG:core:parse_sdp: message body has length zero
> DBG:core:parse_headers: flags=40
> ERROR:rtpengine:parse_flags: error processing flag `replace-origin': cannot
> add to bson item
> Nov  8 14:44:40 back-1-staging opensips[19089]: ...
> DBG:tm:t_should_relay_response: T_code=180, new_code=486
> DBG:tm:t_pick_branch: picked branch 0, code 486 (prio=686)
> DBG:core:parse_headers: flags=ffffffffffffffff
>
> I just call a 'rtpengine_manage("replace-origin ICE=remove")' in the reply
> route, but maybe I have to only do this for Invite, ack etc?
>
> Gr.
>
> Edwin
>
>
>
> --
> Sent from: http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: replace-origin flag error

Edwin
Hi Răzvan,

I'm using version 2.3.2-1 from apt.opensips.org repository, on a Debian
stretch release.

Is there a workaround for now, something like:

if(t_check_status("403|404|480|484|486|487")
rtpengine_manage("ICE=remove");
}
else {
rtpengine_manage("replace-origin ICE=remove");
}



--
Sent from: http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: replace-origin flag error

Razvan Crainea-3
Yes, that should work too! Nevertheless I will fix the code as well,
because it's not such a big change.

Thanks for reporting it!

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/08/2017 07:04 PM, Edwin wrote:

> Hi Răzvan,
>
> I'm using version 2.3.2-1 from apt.opensips.org repository, on a Debian
> stretch release.
>
> Is there a workaround for now, something like:
>
> if(t_check_status("403|404|480|484|486|487")
> rtpengine_manage("ICE=remove");
> }
> else {
> rtpengine_manage("replace-origin ICE=remove");
> }
>
>
>
> --
> Sent from: http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: replace-origin flag error

Razvan Crainea-3
Done, fixed on all supported branches.

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/09/2017 10:12 AM, Răzvan Crainea wrote:

> Yes, that should work too! Nevertheless I will fix the code as well,
> because it's not such a big change.
>
> Thanks for reporting it!
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Developer
> www.opensips-solutions.com
>
> On 11/08/2017 07:04 PM, Edwin wrote:
>> Hi Răzvan,
>>
>> I'm using version 2.3.2-1 from apt.opensips.org repository, on a Debian
>> stretch release.
>>
>> Is there a workaround for now, something like:
>>
>> if(t_check_status("403|404|480|484|486|487")
>> rtpengine_manage("ICE=remove");
>> }
>> else {
>> rtpengine_manage("replace-origin ICE=remove");
>> }
>>
>>
>>
>> --
>> Sent from:
>> http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: replace-origin flag error

Edwin
Hi Răzvan,

Great job, thanks for the quick fix. How do I install the update from Debian
repository, wil there be a 2.3.2-2 update?

thx,

Edwin



--
Sent from: http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users