[Freeswitch-users] client change IP address while ringing

Mario Karakanovski mario at ims.bg
Sat Apr 28 14:08:20 MSD 2012


Thank you Tim,

	It was really helpful, but it is not impossible I think. 

I solved the problem for changing network in a call. What's I am doing is
just send RE-INVAITE from the client. Yes, there is a small gap (< 1sec.),
but it is acceptable. When this gap is used to inform subscriber for
changing network the things are going pretty well. Of course, the client
sends REGISTER as far as possible.

So, from my experience: sending RE-INVITE with SDP is enough to force
freeswitch to send media to correct destination. Changing the registration
in a call will not force freeswitch to send BYE to correct destination after
bridge ends (maybe it is a bug, maybe not, I am not sure). 

The problem that I should to solve is when client changes his network
between RING and ANSWER.
So, freeswitch will receive new registration, but how to close existing
bridge in case when client change his network?
In this case RE-INVITE does not work.

The idea I have, but not tested is to send BYE from the client, with the
same Call-ID and some special reason. After that maybe I will be able to
bridge call again with correct parameters.

Regards,
	Mario

 


-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Tim St.
Pierre
Sent: Friday, April 27, 2012 7:14 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] client change IP address while ringing

That's an impossible situation -

How does FS know the new address?  The only way is if the phone 
registers.  FS won't even know where to send the next packet until the 
phone does another registration so it gets an update.

If you have a registration for both the WiFi and 3G address, you will 
have better luck, but I think FS will still maintain the contact info 
for a dialog that has already started.

If this is a problem you really need to solve, then you may need to set 
up some sort of VPN so that a common IP address can be reachable over 
both 3G and WiFi.  Even then, there is still going to be a period of 
instability when you transition, as the routing has to re-converge.

You also can't transition an active call between WiFi and 3G for the 
same reasons.  The only way to do that would be to park the call, 
re-register on the new network, then pick it up again.

Hope that's helpful.

-Tim


Mario Karakanovski wrote:
> Thank you Mitch,
>
> 	The client use TCP, but the problem is that it must change IP
> address, because it's switch between WiFi and 3G. So, there is no chance
to
> force it using the same IP address.
>
> Regards,
> 	Mario
>
> -----Original Message-----
> From: freeswitch-users-bounces at lists.freeswitch.org
> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Mitch
> Capper
> Sent: Tuesday, April 24, 2012 4:24 AM
> To: FreeSWITCH Users Help
> Subject: Re: [Freeswitch-users] client change IP address while ringing
>
> Try changing the mobile client to register via TCP I would assume then
> the IP will not change as that would break the TCP connection:)
>
> ~Mitch
>
> Hi guys,
>
>  
>
>             I have an interesting situation.
>
> I have two mobile clients and connect them using bridge. It is working
> without problems, except when the called party changes its IP address
> between ringing and answer.
>
> Does anybody deal with such situation?
>
>  
>
> Regards,
>
>             Mario  
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>   


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list