<div dir="ltr">HI Ken, <div><br></div><div>I have tried to enable sip-trace (sofia global siptrace on) but although I see it in console, it doen&#39;t get added to logfile.</div><div><br></div><div>How can I enable siptrace in the logfiles?</div><div><br></div><div>I will open a JIRA as soon as I find a case that happened after enabling DEBUG logs and siptrace.</div><div><br></div><div>Thanks!</div><div>Joel.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 21, 2016 at 7:47 PM, Ken Rice <span dir="ltr">&lt;<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">And if you think this is a bug open anjora and attach a full unedited debug log with sip tracing and the xml cdr.<br>
<span class="im HOEnZb"><br>
Sent from my iPhone<br>
<br>
&gt; On Sep 21, 2016, at 8:31 PM, Joel Serrano &lt;<a href="mailto:joel@gogii.net">joel@gogii.net</a>&gt; wrote:<br>
&gt;<br>
</span><span class="im HOEnZb">&gt; Hi,<br>
&gt;<br>
&gt; As I understand, freeswitch can handle re-invites. Ok till here, but, is there any scenario where freeswitch will send a re-invite proactively ?<br>
&gt;<br>
&gt; I&#39;m facing the following problem:<br>
&gt;<br>
&gt; Inbound call, from a random person to one of our numbers.<br>
&gt; Call from: +1706288XXXX (random caller)<br>
&gt; Call to: +1407602XXXX (our number)<br>
&gt;<br>
&gt;<br>
&gt; This is the diagram:<br>
&gt;<br>
</span><span class="im HOEnZb">&gt; &lt;Screen Shot 2016-09-21 at 18.15.16.png&gt;<br>
&gt;<br>
&gt;<br>
</span><span class="im HOEnZb">&gt; For some reason, after X amount of time, FreeSWITCH sends out an INVITE. I don&#39;t understand the reason. I have checked and there are no session-timers in the initial request that could trigger it.<br>
&gt;<br>
&gt; The problem is not the re-invite, the problem is that the CDR for this call is messed up, because the sip_from_user ends up being the callee, and the sip_to_user ends up being the caller.<br>
&gt;<br>
&gt; I use a script to pull full XML cdrs from our database... The CDR for this call has the following:<br>
&gt;<br>
&gt; $ ./get_cdr_by_uuid.py &#39;1367e1db-2df4-4c97-8b23-<wbr>304f85493315&#39; | grep -i -e sip_from_user -e sip_to_user<br>
&gt;     &lt;sip_from_user_stripped&gt;<a href="tel:17062886161" value="+17062886161">17062886161</a>&lt;/sip_<wbr>from_user_stripped&gt;<br>
&gt;     &lt;sip_from_user&gt;%2B14076027616&lt;<wbr>/sip_from_user&gt;<br>
&gt;     &lt;sip_to_user&gt;%2B17062886161&lt;/<wbr>sip_to_user&gt;<br>
&gt; $<br>
&gt;<br>
&gt; As you can see, the sip_to_user, is the caller, (and this is probably because of the re-invite from FS to the client). Also, isn&#39;t it weird that the sip_from_user_stripped still has the original caller correctly, but the sip_from_user is updated with the original callee?<br>
&gt;<br>
&gt;<br>
&gt; I don&#39;t know if what can be happening.<br>
&gt;<br>
&gt; This is happening on FS v1.6.10.<br>
&gt;<br>
&gt; I have servers on older versions, I&#39;m trying to reproduce to see if it is related to that specific version of FS.<br>
&gt;<br>
&gt; I&#39;m also trying to get debug logs, which I currently don&#39;t have (because they are disabled in prod).<br>
&gt;<br>
&gt;<br>
&gt; Any initial ideas?<br>
&gt;<br>
&gt; I think this might be a config setting or something, if it seems like a bug or similar I&#39;m happy to open a JIRA.<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Joel.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</span><div class="HOEnZb"><div class="h5">&gt; ______________________________<wbr>______________________________<wbr>_____________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>