It works perfectly !<br>Thank you.<br><br>Have a very nice day <br><br clear="all">Geoffroy Rabouin<br>1, rue des Fabres<br>13710 Fuveau<br>téléphone : 06-27-19-13-07<br>
<br><br><div class="gmail_quote">2009/7/18 Dan Pascu <span dir="ltr"><<a href="mailto:dan@ag-projects.com">dan@ag-projects.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You need to define a trace flag and set it in the main route when you call sip_trace. Then you do not need to call sip_race in the reply route (or anywhere else for that matter). See below (use a free flag number instead of TRACE_FLAG in my example).<div class="im">
<br>
<br>
On 17 Jul 2009, at 16:17, Geoffroy Rabouin wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
I'm confused because in my sip_trace DB, I haven't got the reply message from opensips, I only got the request from the phones and gateway ...<br>
I've set the sip_trace parameters :<br>
# ----- siptrace params -----<br>
modparam("siptrace", "trace_on", 1)<br>
modparam("siptrace", "enable_ack_trace", 1)<br>
</blockquote>
<br></div>
modparam("siptrace", "trace_flag", TRACE_FLAG)<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
and in my route :<br>
route {<br>
sip_trace();<br>
</blockquote>
<br></div>
setflag(TRACE_FLAG);<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
..................;;<br>
}<br>
<br>
onreply_route[2] {<br>
sip_trace();<br>
</blockquote></div>
remove this ^^^^^<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
if (status=~"(180)|(183)|2[0-9][<br>
0-9]") {<br>
if (search("^Content-Type:[ ]*application/sdp")) {<br>
use_media_proxy();<br>
};<br>
fix_nated_contact();<br>
};<br>
}<br>
<br>
<br>
Opensips respond correctly to the phone/gateway, just the sip_trace DB doesn't work correctly.<br>
<br>
Any idea ?<br>
Thanking you in advance.<br>
<br>
Geoffroy Rabouin<br>
1, rue des Fabres<br>
13710 Fuveau<br>
téléphone : 06-27-19-13-07<br></div>
_______________________________________________<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>
</blockquote>
<br>
<br>
--<br><font color="#888888">
Dan<br>
<br>
<br>
<br>
</font></blockquote></div><br>