<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">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">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">src/mod/endpoints/mod_sofia/sofia_reg.c:1297</a> <span class="" style="font-weight:bold;color:rgb(0,0,128);line-height:15px;font-family:monospace;font-size:12px;white-space:pre">if </span><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre">(v_event && *v_event) pres_on_reg = switch_event_get_header(*v_event, </span><span class="" style="color:rgb(0,128,0);font-weight:bold;line-height:15px;font-family:monospace;font-size:12px;white-space:pre">"send-presence-on-register"</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre">);</span><span style="color:rgb(0,0,0);font-size:12px;line-height:18px;white-space:pre"><font face="arial, helvetica, sans-serif"> is suppose to do, won't this always evaluate to false?</font></span></div><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Aron Podrigal<div>-</div><div>//Be happy :-)</div></div></div>
</div></div>