< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate-users] Does resiprocate reregister when network IP changes?


If my app is specifying the interface to use with the addTransport method, do I simply just need to call
this method each time the network ip changes. I can't see a removeTransport anywhere. To support VPN 
we may need to control this rather than bind the resip transports to INADDR_ANY.


From: Scott Godin <sgodin@xxxxxxxxxxxxxxx>
To: Nauman Sulaiman <nauman762-home@xxxxxxxxxxx>
Cc: "resiprocate-users@xxxxxxxxxxxxxxx" <resiprocate-users@xxxxxxxxxxxxxxx>
Sent: Wednesday, 7 March 2012, 20:51
Subject: Re: [reSIProcate-users] Does resiprocate reregister when network IP changes?

You should be able to leave it as is.  

Scott

On Wed, Mar 7, 2012 at 2:15 PM, Nauman Sulaiman <nauman762-home@xxxxxxxxxxx> wrote:
Thanks Scott

Just one other thing if the network goes away (no interfaces at all), does one need to destroy the stack and recreate
it when the network is back up or can it be safely left as it is then reregister when a  network interface is available again.




From: Scott Godin <sgodin@xxxxxxxxxxxxxxx>
To: Nauman Sulaiman <nauman762-home@xxxxxxxxxxx>
Cc: "resiprocate-users@xxxxxxxxxxxxxxx" <resiprocate-users@xxxxxxxxxxxxxxx>
Sent: Wednesday, 7 March 2012, 15:40
Subject: Re: [reSIProcate-users] Does resiprocate reregister when network IP changes?

If you bind the resip transports to INADDR_ANY (ie. 0.0.0.0) then resip will let the OS decide which interface to use when routing a particular request.  The selected interface ip address get's added to the Via and Contact headers by the stack.  That being said, if the interface used during registration goes away, then the application will need to unregister the old Contact Address and re-Register (the stack will now use the new interface).  Unless you are setting the OverrideHostAndPort profile settings you should be fine in just re-using the same Profile object.

Scott

On Wed, Mar 7, 2012 at 10:14 AM, Nauman Sulaiman <nauman762-home@xxxxxxxxxxx> wrote:
Hi,

Just trying to understand what the resip stack( 1.7) will do if the network IP changes. Does it attempt 
to reregister itself or does the application need to manage this? 

If the application is to manage this, is it best to just destroy the existing profile and then create a new one.

Thanks

_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/