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

Darpan Patel darpan.gabani1093 at gmail.com
Thu Jun 4 17:48:15 EST 2020


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/92141518/attachment.html>


More information about the Users mailing list