[OpenSIPS-Users] module siptrace

mmarzuola at interfree.it mmarzuola at interfree.it
Tue Mar 3 18:22:04 CET 2009


Hi all.
Introducing in the script the siptrace module, I noticed that if I use the function sip_trace(), in the table of DB, are stored the requests and the replies (407, 100, 200, etc. ...), but using the trace_dialog(), there are only the requests (invite , ack and bye). This happens because something is wrong in the configuration script or other?

These are the parts of the interessed routes:

# ----- siptrace params -----
modparam("siptrace", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")
modparam("siptrace", "trace_on", 1)
modparam("siptrace", "traced_user_avp", "$avp(s:user)")
modparam("siptrace", "enable_ack_trace", 1)

1)sip_trace():

route {
       xlog("L_INFO", "New request - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
       $avp(s:user)="sip:" + $fU + "@" + $(fu{uri.domain});
       sip_trace();
......
......
......
}


2)trace_dialog():

route {
       xlog("L_INFO", "New request - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
       $avp(s:user)="sip:" + $fU + "@" + $(fu{uri.domain});
.....
.....

       if(is_method("INVITE")) {
                route(3);
       }
........
........
}

# Request route 'base-route-invite'
route[3] {
          if (!proxy_authorize("", "subscriber")) {
                xlog("L_INFO", "Proxy authentication failed - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
                proxy_challenge("", "0");
                exit;
          }
          if (!check_from()) {
                xlog("L_INFO", "Spoofed From-URI detected - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
                sl_send_reply("403","Forbidden auth ID");
                exit;
          }
          consume_credentials();

          create_dialog();
          set_dlg_flag("4");
          trace_dialog();
         route(4);
}

Thanks in advance.

Matteo Marzuola




----------------------------------------------------------------------------
Vuoi essere presente online? 
Vuoi dare voce alla tua attivita`? 
Acquista un dominio su domini.interfree.it.
A partire da 18,59 euro
----------------------------------------------------------------------------




More information about the Users mailing list