[OpenSIPS-Users] Checking for Initial INVITE in branch route

Ali Pey alipey at gmail.com
Mon Dec 16 16:43:11 CET 2013


has_totag can be used in request route:

http://opensips.org/html/docs/modules/devel/uri.html#id293942

You can set appropriate flags if you need to.

As a general comment, if things seem to be complicated, the chances are
that you are not looking at it the right way, try to reconsider your
design. Things should not be complicated.

I'm not sure what you are trying to do, but when an invite reaches
opensips, it's easy to tell if it's an initial invite and route it
accordingly.

Regards,
Ali Pey


On Mon, Dec 16, 2013 at 10:26 AM, Nick Cameo <symack at gmail.com> wrote:

> Are we able to use has_totag() in branch route to check for initial
> INVITES? After looking further into the problem, it seem like the
> error "ERROR:uac:replace_uri: decline FROM replacing in sequential
> request in auto mode (has TO tag)" is happening on a failover and when
> opensips branches out to the next available gateway.
>
> Should I be unchanging the to tag in the failover? We are using:
> restore_mode auto as the error would suggest.
>
> Kind Regards,
>
> Nick.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20131216/d4c53999/attachment-0001.htm>


More information about the Users mailing list