[OpenSIPS-Devel] SF.net SVN: opensips:[5548] trunk/modules/pua
Anca Vamanu
anca at opensips.org
Fri Mar 27 13:51:13 CET 2009
Iñaki Baz Castillo wrote:
> 2009/3/27 Anca Vamanu <anca at opensips.org>:
>
>> Revision: 5548
>> trunk/modules/pua_usrloc/ul_publish.c
>>
>
> 262 if((error = pua_send_publish(&publ))< 0)
> 263 {
> 264 if(publ.flag == INSERT_TYPE && error== ERR_PUBLISH_NO_BODY )
> 265 {
> 266 LM_DBG("Usrloc Publish for update failed - try Insert\n");
> 267 publ.body= build_pidf(c);
> 268 if(publ.body == NULL || publ.body->s == NULL)
> 269 {
> 270 LM_ERR("failed to generate publish body\n");
> 271 goto error;
> 272 }
> 273 publ.flag= INSERT_TYPE;
> 274
> 275 if(pua_send_publish(&publ)< 0)
> 276 {
> 277 LM_ERR("failed to send publish\n");
> 278 }
> 279 }
> 280 else
> 281 LM_ERR("failed to send publish\n");
> 282 }
>
>
>
> Line 264 should be:
> if(publ.flag == UPDATE_TYPE && error== ERR_PUBLISH_NO_BODY )
>
> right?
>
>
>
Right :) . I did not pay enough attention. Thanks for pointing it out.
More information about the Devel
mailing list