<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">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”.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[1] <a href="https://opensips.org/docs/modules/3.0.x/dialog.html#pv_DLG_dir">
https://opensips.org/docs/modules/3.0.x/dialog.html#pv_DLG_dir</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="color:black">Ben Newlin </span><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Users <users-bounces@lists.opensips.org> on behalf of Darpan Patel <darpan.gabani1093@gmail.com><br>
<b>Reply-To: </b>OpenSIPS users mailling list <users@lists.opensips.org><br>
<b>Date: </b>Thursday, June 4, 2020 at 1:49 PM<br>
<b>To: </b>"users@lists.opensips.org" <users@lists.opensips.org><br>
<b>Subject: </b>[OpenSIPS-Users] $DLG_dir is getting NULL in onreply_route<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Hello , i am getting NULL value of $DLG_dir as i wanted to check 200 ok comes from which direction (upstream or downstream).<o:p></o:p></p>
<div>
<p class="MsoNormal">----------------------------------------------------------------<o:p></o:p></p>
<div>
<p class="MsoNormal">version: opensips 2.4.6 (x86_64/linux)<br>
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<br>
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br>
poll method support: poll, epoll, sigio_rt, select.<br>
git revision: edef893c5<br>
main.c compiled on 03:21:55 Jun 2 2020 with gcc 4.8.5<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">---------------------------------------------------------------------------------------<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal">Implementation :<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">route[RELAY_ROUTE]{<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> t_on_reply("DEFAULT_REPLY_ROUTE");<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> .<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> . <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">}<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">onreply_route[DEFAULT_REPLY_ROUTE]{<br>
xlog("L_INFO","[$ci][DEFAULT_REPLY_ROUTE]<b> [$DLG_dir]</b> ");<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> if(is_method("INVITE") && has_totag()){<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> if (t_check_status("200")) {<o:p></o:p></p>
</div>
<p class="MsoNormal"> <br>
xlog("L_INFO","[$ci][onreply_route] [200] [PROCESS_RTPENGINE_ANSWER]
<b>[$DLG_dir]</b> ");<br>
}<o:p></o:p></p>
<div>
<p class="MsoNormal"> } <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">}<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-----------------------------------------------------------------------------------------<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">log :<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Jun 4 13:09:47 sip-t42s /usr/local/sbin/opensips[10338]: [OGQxMGQ1NTNhYTIzNDk1MGUyOTRjYjY3NjlkMjY1ODI.][DEFAULT_REPLY_ROUTE]
<b>[<null>]</b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Jun 4 13:09:47 sip-t42s /usr/local/sbin/opensips[10338]: [OGQxMGQ1NTNhYTIzNDk1MGUyOTRjYjY3NjlkMjY1ODI.][onreply_route] [200]
<b>[<null>]</b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">--------------------------------------------------------------------------------------------<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">please kindly help for the same <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>