Hi Chen, I am also using linphone on smartphones over a LAN with no registrar.
Like Guillaume said, the main reason it doesn't work is that the SIP listening port is chosen randomly. It is possible to disable this behaviour, if you can modify the linphonerc (linphone configuration) file. In the [sip] section of the file, you just need to change: sip_random_port=1 to sip_random_port=0 and then linphone will always listen on port 5060, the default SIP port. One way to modify the file is to get the source code of linphone for iphone and/or android, modify the file, and then recompile the package. If you're not already doing this, this would require a lot of work. Otherwise, you might be able to modify the file within the distribution version of linphone. If you have a jailbroken iphone, you can find the linphonerc file in /var/mobile/Applications/GUID/linphone.app/ and modify it there (where "GUID" is replaced by the GUID of your linphone app installation). I'm not sure how easy this is on the android platform. Another tip, if you get this working: for direct connections, you don't need to put a username; you only need to put something like "sip:192.168.0.2". Good luck, -Tom On Mon, Mar 7, 2011 at 9:22 PM, Yi Chen <[email protected]> wrote: > Dear Guillaume, > > Thanks for your answer. > Yes ,my friend and I did the voice chat with linphone by putting the direct > ip address and dial. > For example, in LAN, we called each other with sth like [email protected]. > > Can we do the same thing with the smartphone version? > > thanks, > > Chen > > > 2011/3/7 Guillaume BERAUDO < > [email protected]> > > Hi Yi Chen, >> >> >> >> > Does anyone know about how to set up the voice chat between two >> > linphone iphone/android client? >> As advised by Nan Zhang you need to register to a SIP registrar. >> You can register an account on the brand new Linphone SIP server, it >> is free: >> https://www.linphone.org/eng/linphone/register-a-linphone-account.html >> >> >> > I previously used windows version before , and was able to start a >> > chat with my friend without any sip account setting. Is it possible >> > in the iphone/android version? >> On the smartphone versions of Linphone, the port used to receive calls >> is chosen randomly: this is to allow several sip clients to run on the >> same phone. >> >> You were using directly the IP address of your friend? >> >> >> Regards, >> >> Guillaume Beraudo >> > > > > -- > -------------------------- > Room to Fly, Endless Sky! > > --Yi Chen > > _______________________________________________ > Linphone-users mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/linphone-users > >
_______________________________________________ Linphone-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/linphone-users
