[sr-dev] Presence notify - duplicate aux body processing?
Charles Chance
charles.chance at sipcentric.com
Thu Jan 14 16:35:44 CET 2016
Hi All,
Whilst attempting to track down the source of an issue introduced at some
point since 4.2.1, I came across the following and would appreciate a
second opinion.
In send_notify_request() function (/modules/presence/notify.c), the aux
body processing function attached to the event is called:
> /* call aux_body_processing if exists */
> if(subs->event->aux_body_processing)
> {
> aux_body = subs->event->aux_body_processing(subs, notify_body);
> if(aux_body) {
> free_notify_body(notify_body, subs->event);
> notify_body = aux_body;
> }
> }
However, by the time we reach this function, aux body processing will
already have been completed (specifically in the publ_notify() or
query_db_notify() functions of the same file).
If I remove the duplicate function call, the issue goes away - but I'm
reluctant to submit a pull request which reverts an earlier commit, unless
I can understand the reason for the change in the first place. Especially
since it was made a year ago.
Is anyone able to explain what I'm missing?
Cheers,
Charles
--
*** We're rebranding! Learn more here
<http://www.sipcentric.com/2015/07/were-rebranding/> ***
www.sipcentric.com
Follow us on twitter @sipcentric <http://twitter.com/sipcentric>
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered
office: Faraday Wharf, Innovation Birmingham Campus, Holt Street,
Birmingham Science Park, Birmingham B7 4BB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160114/f65a6c84/attachment.html>
More information about the sr-dev
mailing list