Hi Benny I used that as the basis of my solution. However in our solution the server sends back the real devices ip address as a custom field in the registration response. This is faster than using a stun as it seems doing a stun takes quite a while. Question is I need a way to change the public_addr so that all the headers are correct. I used to shut down the stack and restart again using the new public address. However I would like to see if I can do something similar to what your patch does to change the public address without restarting the stack. Hope that makes sense. Sent from my iPhone On 21/09/2011, at 5:57 PM, Benny Prijono <bennylp at teluu.com> wrote: > On Wed, Sep 21, 2011 at 1:03 PM, Joseph Rukshan Fonseka > <rukshanf at optusnet.com.au> wrote: >> I need to change the public address while the stack is connected. I intend to shutdown the transport using pjsip_transport_shutdown so that the transport layer can be recreated. What method can I use to tell pjsip to set the new public address? >> > > https://trac.pjsip.org/repos/wiki/IPAddressChange is the best we have > on the issue at the moment. I think I'll have to start thinking about > smoother way now that this is asked very often. > > Benny > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org