i'm using freeswitch / php esl to make some tests against a sip system.
when using the deflect api, the Referred-By Header is always just the ip of freeswitch server and i expected to be the contact of the gateway i'm using as endpoint.
following the code, it ends in mod_sofia sending calling the nua_refer.
however, i don't see anywhere in the code where tech_pvt->contact_url is initialized/used
i set the sip_h_referred-by value before calling the deflect and was expecting it would be used, but the code below explicitly sets the header. my problem is that i can't find anywhere where its initialized/used/updated so a second pair of eyes is much appreciated.