[Freeswitch-users] Fwd: sofia_reg_handle_register_token - exp possibly always false

Podrigal, Aron aronp at guaranteedplus.com
Wed Jul 8 20:12:28 MSD 2015


---------- Forwarded message ----------
From: Podrigal, Aron <aronp at guaranteedplus.com>
Date: Tue, Jul 7, 2015 at 7:24 PM
Subject: sofia_reg_handle_register_token - exp possibly always false
To: freeswitch-dev <freeswitch-dev at lists.freeswitch.org>


Hi,

According to grep the function sofia_reg_handle_register_token is called
from a single place src/mod/endpoints/mod_sofia/sofia_reg.c:2305
<https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/endpoints/mod_sofia/sofia_reg.c#2305>
where
the argument *v_event* would always be NULL at that time. So I'm wondering
what the line at src/mod/endpoints/mod_sofia/sofia_reg.c:1297
<https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/endpoints/mod_sofia/sofia_reg.c#1297>
  if (v_event && *v_event) pres_on_reg = switch_event_get_header(*v_event,
"send-presence-on-register"); is suppose to do, won't this always evaluate
to false?

-- 
Aron Podrigal
-
//Be happy :-)



-- 
Aron Podrigal
-
//Be happy :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150708/9f3d8737/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list