drachtio / drachtio-srf

drachtio signaling resource framework
https://drachtio.org
MIT License
168 stars 59 forks source link

Public IP in Contact Header in #createUAS #155

Closed sumit-kumar-iitm closed 1 year ago

sumit-kumar-iitm commented 1 year ago

I am responding to the sip invite using the createUAS function but the contact header is picking the local IP of my instance. What change do I need to make to update it to the public IP of the instance? I am running drachtio-server and my client application in the same machine

JSimoni42 commented 1 year ago

You could use the external-ip setting to achieve this. See the contacts section of the configuration.

davehorton commented 1 year ago

@JSimoni42 is right, I would simply rephrase to say you must use external-ip if the public-ip is assigned over the top by your infrastructure (ie does not show up when you do ifconfig)