[OpenSIPS-Users] xlog/trace first ACK in INVITE (with auth)
Giovanni Maruzzelli
gmaruzz at gmail.com
Wed Sep 2 12:00:53 EST 2020
Hello Liviu,
thanks for answer!!
Unfortunately, I also tested with xlog as first instruction in script, to
not avail...
I pretty much tested with xlog (or trace) in all obvious (to me) places...
eg:
xlog("L_ERR", "giovanni01 $rm $Tsm \n");
if (has_totag()) {
xlog("L_ERR", "giovanni02 $rm $Tsm \n");
match_dialog();
route(handle_sequential);
} else {
xlog("L_ERR", "giovanni03 $rm $Tsm \n");
results in:
Sep 2 13:58:02 lxc151 /usr/sbin/opensips[18124]: giovanni01 INVITE 155099
Sep 2 13:58:02 lxc151 /usr/sbin/opensips[18124]: giovanni03 INVITE 155141
Sep 2 13:58:02 lxc151 /usr/sbin/opensips[18123]: giovanni01 INVITE 230642
Sep 2 13:58:02 lxc151 /usr/sbin/opensips[18123]: giovanni03 INVITE 230682
Sep 2 13:58:02 lxc151 /usr/sbin/opensips[18124]: giovanni01 ACK 652253
Sep 2 13:58:02 lxc151 /usr/sbin/opensips[18124]: giovanni02 ACK 652291
Eg, no ACK to 407 at all
Any other hint?
-giovanni
On Wed, Sep 2, 2020 at 1:22 PM Liviu Chircu <liviu at opensips.org> wrote:
> On 02.09.2020 13:55, Giovanni Maruzzelli wrote:
>
> I cannot xlog/trace the ACK sent by a phone after it receives the 407 from
>> opensips
>>
>>
> Using latest 3.0.x
>
> Hi, Giovanni!
>
> Since you seem to be talking about a hop-by-hop ACK (ACK to a [3456]xx SIP
> reply), I suspect this "if" condition is basically catching your ACK too
> early, before you are able to ship it to Homer:
>
> ...
> if (has_totag()) {
> # handle hop-by-hop ACK (no routing required)
> if ( is_method("ACK") && t_check_trans() ) {
> t_relay();
> exit;
> }
>
> ...
>
> Hope this helps,
>
> --
> Liviu Chircuwww.twitter.com/liviuchircu | www.opensips-solutions.com
>
> OpenSIPS Summit 2020 Distributed
> www.opensips.org/events/Summit-2020Distributed
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Sincerely,
Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200902/028a258c/attachment.html>
More information about the Users
mailing list