Diego,
<br />
<br />So I think your wanting to do Stateless routing.  I just saw this posting of &quot;Known Issues&quot; under version 1.7.  Not sure if it applies to your version also
<br />http://www.opensips.org/html/docs/modules/1.7.x/siptrace.html#id250363
<br />
<br />I see you are using sip_trace() in your script.  I have personally never messed with stateless and siptrace.  Might need someone else to weigh in on this.
<br />
<br />On Jul 12, 2011 1:09pm, Diego Barberio &lt;diego.barberio@redmondsoftware.com&gt; wrote:
<br />&gt; Hi All, I’m having a minnor configuration problem with the siptrace.I’m trying to trace all the messages and their responses, but I’m only able to log the methods (INVITE, ACK and BYE) but not the responses.This is my configuration script. ##Global Parameters ######### debug=3#log_facility=LOG_LOCAL6 fork=yeschildren=4 /* uncomment the following lines to enable debugging */#debug=6#fork=no#log_stderror=yes /* uncomment the next line to disable TCP (default on) */disable_tcp=yes port=5060 /* uncomment and configure the following line if you want opensips to   bind on a specific interface/port/proto (default bind on all available) */listen=udp:192.168.2.154:5060 # ------------------ module loading ----------------------------------mpath=&quot;/usr/local/lib/opensips/modules/&quot;loadmodule &quot;maxfwd.so&quot;loadmodule &quot;sl.so&quot;loadmodule &quot;tm.so&quot;loadmodule &quot;dispatcher.so&quot;loadmodule &quot;mi_fifo.so&quot;loadmodule &quot;signaling.so&quot;loadmodule &quot;options.so&quot;loadmodule &quot;textops.so&quot;loadmodule &quot;db_mysql.so&quot;loadmodule &quot;siptrace.so&quot;#loadmodule &quot;acc.so&quot;# ----------------- setting module-specific parameters ---------------# -- dispatcher params --modparam(&quot;mi_fifo&quot;, &quot;fifo_name&quot;, &quot;/tmp/opensips_fifo&quot;) modparam(&quot;dispatcher&quot;, &quot;ds_ping_from&quot;, &quot;sip:proxy@192.1.8.2.154&quot;)modparam(&quot;dispatcher&quot;, &quot;ds_ping_interval&quot;, 30)modparam(&quot;dispatcher&quot;, &quot;ds_probing_threshhold&quot;, 2)modparam(&quot;dispatcher&quot;, &quot;ds_probing_mode&quot;, 1)modparam(&quot;dispatcher&quot;, &quot;list_file&quot;, &quot;/usr/local/etc/opensips/dispatcher.list&quot;)# modparam(&quot;dispatcher&quot;, &quot;force_dst&quot;, 1) modparam(&quot;siptrace&quot;, &quot;db_url&quot;, &quot;mysql://root:Viamonte1621@localhost/opensips&quot;)modparam(&quot;siptrace&quot;, &quot;enable_ack_trace&quot;, 1)modparam(&quot;siptrace&quot;, &quot;trace_on&quot;, 1)modparam(&quot;siptrace&quot;, &quot;table&quot;, &quot;sip_trace&quot;)modparam(&quot;siptrace&quot;, &quot;trace_flag&quot;, 22) #modparam(&quot;acc&quot;, &quot;log_level&quot;, 1)#modparam(&quot;acc&quot;, &quot;log_flag&quot;, 1)#modparam(&quot;acc&quot;, &quot;db_url&quot;, &quot;mysql://root:Viamonte1621@localhost/opensips&quot;) route{        setflag(22);        setbflag(22);        sip_trace();                if ( !mf_process_maxfwd_header(&quot;10&quot;) )        {                sl_send_reply(&quot;483&quot;,&quot;To Many Hops&quot;);                drop();        };         if (is_method(&quot;OPTIONS&quot;)) {                options_reply();                exit;        }                ds_select_dst(&quot;1&quot;, &quot;0&quot;);                if ($retcode                xlog(&quot;[Redmond] Service full\n&quot;);                sl_send_reply(&quot;500&quot;,&quot;Service full&quot;);                exit;        }                forward();        #t_relay();        #sip_trace();} failure_route[1] {        if (t_check_status(&quot;(408)|(5[0-9][0-9])&quot;)) {                ds_mark_dst();                if (ds_select_dst(&quot;1&quot;, &quot;0&quot;)) {                        forward();                } else {                       t_reply(&quot;503&quot;, &quot;Service Unavailable&quot;);                }        }} onreply_route {        setflag(22);        setflag(22);        sip_trace();} ThanksDiego
<br />&gt; 
<br />&gt;