Ah, I&#39;m trying to capture the one from the UAS (far end).<br><br>Really, I&#39;m trying to, best I can, capture signalling PDD. I understand that this is probably subject to interpretation, but in general, I measure PDD as the time between the first 100 code and a 18X reply. Yes, admittedly a totally false expectation. However, in my limited environment for this application, I always get a 100 before a 18X and I&#39;d like to be able to log the time delay in acc.<br>

<br>I&#39;d be interested in hearing other ways of doing what I&#39;m attempting.. Maybe something more sane..<br>-Brett<br><br><br><div class="gmail_quote">On Wed, Mar 25, 2009 at 1:07 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Brett,<br>
<br>
You do not get it because the 100 Trying is locally generated. The callback you tried to change is called for replies that were received and fwded to the UAC.<br>
<br>
But the 100 is not fitting here because it is going hop by hop - one locally generated and sent to UAC and the one received from UAS is discarded (not fwded).<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Brett Nemeroff wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
Hey All,<br>
I&#39;m trying to log the 100 Trying in the acc module. I tried the acc_db_request, but it can&#39;t be called from onreply.<br>
<br>
So I tried editing acc_logic.c, but that isn&#39;t working either?! :/ Any ideas? Maybe I should edit acc_db_request so it can be called from ONREPLY?<br>
<br>
<br>
       static inline int should_acc_reply(struct sip_msg *req,struct sip_msg *rpl,<br>
                                                                                                                                        int code)<br>
{<br>
        /* negative transactions reported otherwise only if explicitly          * demanded */<br>
        if (code == 100)<br>
                return 1;<br>
        if ( !is_failed_acc_on(req) &amp;&amp; code &gt;=300 )<br>
                return 0;<br>
        if ( !is_acc_on(req) )<br>
                return 0;<br>
        if ( code&lt;200 &amp;&amp; !(early_media &amp;&amp;<br>
        parse_headers(rpl,HDR_CONTENTLENGTH_F, 0)==0 &amp;&amp; rpl-&gt;content_length &amp;&amp;<br>
        get_content_length(rpl)&gt;0 ) )<br>
                return 0;<br>
<br>
        return 1; /* seed is through, we will account this reply */<br>
}<br>
<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
  <br>
</blockquote>
<br>
</blockquote></div><br>