[OpenSIPS-Users] $DLG_dir is getting NULL in onreply_route

Ben Newlin Ben.Newlin at genesys.com
Thu Jun 4 18:12:06 EST 2020


Are you sure this is a sequential request? The $DLG_dir variable is only used for sequential requests as the direction indicated is relative to the initial request. [1] The direction for the initial request would always be “downstream”.

[1] https://opensips.org/docs/modules/3.0.x/dialog.html#pv_DLG_dir

Ben Newlin

From: Users <users-bounces at lists.opensips.org> on behalf of Darpan Patel <darpan.gabani1093 at gmail.com>
Reply-To: OpenSIPS users mailling list <users at lists.opensips.org>
Date: Thursday, June 4, 2020 at 1:49 PM
To: "users at lists.opensips.org" <users at lists.opensips.org>
Subject: [OpenSIPS-Users] $DLG_dir is getting NULL in onreply_route

Hello , i am getting NULL value of $DLG_dir  as i wanted to check 200 ok comes from which direction (upstream or downstream).
----------------------------------------------------------------
version: opensips 2.4.6 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
git revision: edef893c5
main.c compiled on 03:21:55 Jun  2 2020 with gcc 4.8.5
---------------------------------------------------------------------------------------
Implementation :

route[RELAY_ROUTE]{
   t_on_reply("DEFAULT_REPLY_ROUTE");
  .
  .
}

onreply_route[DEFAULT_REPLY_ROUTE]{
         xlog("L_INFO","[$ci][DEFAULT_REPLY_ROUTE] [$DLG_dir] ");
          if(is_method("INVITE") && has_totag()){
                  if (t_check_status("200")) {

                                xlog("L_INFO","[$ci][onreply_route] [200] [PROCESS_RTPENGINE_ANSWER] [$DLG_dir] ");
                    }
         }
}
-----------------------------------------------------------------------------------------
log :
Jun  4 13:09:47 sip-t42s /usr/local/sbin/opensips[10338]: [OGQxMGQ1NTNhYTIzNDk1MGUyOTRjYjY3NjlkMjY1ODI.][DEFAULT_REPLY_ROUTE] [<null>]
Jun  4 13:09:47 sip-t42s /usr/local/sbin/opensips[10338]: [OGQxMGQ1NTNhYTIzNDk1MGUyOTRjYjY3NjlkMjY1ODI.][onreply_route] [200] [<null>]
--------------------------------------------------------------------------------------------


please kindly help for the same



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200604/d60520f2/attachment.html>


More information about the Users mailing list