<div dir="ltr">Hi All<div><br></div><div>I am in need of being able to see what the duration of the call was at the time of hang out.</div><div><br></div><div>I tried turning on the dialog module, but the result is that the values I need are either null or always show as zero.</div><div><br></div><div>I tried to follow the suggestions in the thread about this here:</div><div><br></div><div><a href="http://lists.sip-router.org/pipermail/sr-users/2010-October/065889.html">http://lists.sip-router.org/pipermail/sr-users/2010-October/065889.html</a><br></div><div><br></div><div>In the end my config looks like this:</div><div><br></div><div>loadmodule "dialog.so"<br></div><div><br></div><div>...</div><div><br></div><div><div>modparam("dialog", "dlg_flag", 4)</div><div>modparam("dialog", "dlg_match_mode", 1)</div></div><div><br></div><div>...<br></div><div><br></div><div>request_route {<br></div><div><div>        if (is_method("INVITE") && (! has_totag() ) ) {</div><div><span class="" style="white-space:pre">                  </span>dlg_manage();</div><div>        }</div><div><span class="" style="white-space:pre">          </span>if (is_method("BYE")) {</div><div><span class="" style="white-space:pre">                  </span>$var(elapsed) = ( $TV(s) - $dlg(start_ts) );</div><div><span class="" style="white-space:pre">                       </span>xlog ("L_INFO", "request_route DIALOG TEST: Completed $dlg(from_uri) to $dlg(to_uri), elapsed: $var(elapsed), now seconds: $TV(s), dlg start time: $dlg(start_ts), DLG_lifetime: $DLG_lifetime");</div><div>        }</div></div><div>....</div><div><br></div><div><br></div><div><br></div><div>Note that I put at the top of the request route just for testing purposes</div><div><br></div><div>The result I get in the log is this:</div><div><br></div><div><div>INFO: <script>: request_route DIALOG TEST: Completed <a href="mailto:sip%3Awillf1976Test@develop-sbc.switchsoft.com">sip:willf1976Test@develop-sbc.switchsoft.com</a> to <a href="mailto:sip%3A%2B18054515526@develop-sbc.switchsoft.com">sip:+18054515526@develop-sbc.switchsoft.com</a>, elapsed: 1421305210, now seconds: 1421305210, dlg start time: 0, DLG_lifetime: <null></div></div><div><br></div><div><br></div><div>I was wondering if any one could point out to me what I have set up wrong.</div><div><br></div><div>Thanks in advance</div><div><br></div><div>All the best.</div><div><br></div><div>Will Ferrer</div><div>Switchsoft</div><div><br></div></div>