[SR-Users] use append_hf() and remove_hf() on the same message

Camille Oudot camille.oudot at orange.com
Wed Nov 6 14:23:07 CET 2013

Le Wed, 6 Nov 2013 12:48:47 +0100,
Daniel-Constantin Mierla <miconda at gmail.com> a écrit :

> What defines you set for each of the cases? I see there is an else
> left open inside the #!ifdef, which ends up in getting an append_hf()
> if the define id is set.

Hello Daniel,

thanks, you figured it right: the WITH_NAT define was set. I changed the
pcscf cfg example and somehow misread the #!ifdef/#!else and if/else

I changed the config back to

#!ifdef WITH_NAT
    if (...) {

    } else
        append_hf("Path: <sip:term@" + NETWORK_INTERNAL_IP_S+":"+SIP_INTERNAL_PORT+";lr>\r\n");

as it was intended in the first place, and everything went back to



More information about the sr-users mailing list