Please file bugs in jira<span></span><br><br>On Wednesday, July 8, 2015, Podrigal, Aron <<a href="mailto:aronp@guaranteedplus.com">aronp@guaranteedplus.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Podrigal, Aron</b> <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','aronp@guaranteedplus.com');" target="_blank">aronp@guaranteedplus.com</a>></span><br>Date: Tue, Jul 7, 2015 at 7:24 PM<br>Subject: sofia_reg_handle_register_token - exp possibly always false<br>To: freeswitch-dev <<a href="javascript:_e(%7B%7D,'cvml','freeswitch-dev@lists.freeswitch.org');" target="_blank">freeswitch-dev@lists.freeswitch.org</a>><br><br><br><div dir="ltr">Hi,<div><br></div><div>According to grep the function <span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">sofia_reg_handle_register_token</span> is called from a single place <a href="https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/endpoints/mod_sofia/sofia_reg.c#2305" target="_blank">src/mod/endpoints/mod_sofia/sofia_reg.c:2305</a> where the argument <b>v_event</b> would always be NULL at that time. So I'm wondering what the line at <a href="https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/endpoints/mod_sofia/sofia_reg.c#1297" target="_blank">src/mod/endpoints/mod_sofia/sofia_reg.c:1297</a> <span style="font-weight:bold;color:rgb(0,0,128);line-height:15px;font-family:monospace;font-size:12px;white-space:pre-wrap">if </span><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">(v_event && *v_event) pres_on_reg = switch_event_get_header(*v_event, </span><span style="color:rgb(0,128,0);font-weight:bold;line-height:15px;font-family:monospace;font-size:12px;white-space:pre-wrap">"send-presence-on-register"</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">);</span><span style="color:rgb(0,0,0);font-size:12px;line-height:18px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif"> is suppose to do, won't this always evaluate to false?</font></span></div><span><font color="#888888"><div><div><br></div>-- <br><div><div dir="ltr">Aron Podrigal<div>-</div><div>//Be happy :-)</div></div></div>
</div></font></span></div>
</div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Aron Podrigal<div>-</div><div>//Be happy :-)</div></div></div>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'consulting@freeswitch.org')">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'FreeSWITCH-users@lists.freeswitch.org')">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote><br><br>-- <br><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">
<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font size="2" face="monospace, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p><p><font face="monospace, monospace">ClueCon 2015 <a href="https://www.cluecon.com/call-for-speakers/" target="_blank">Call for Speakers</a> | <a href="https://freeswitch.com/cart.php?gid=1" target="_blank">Register</a> TODAY! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p>
<p><font size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div><br>