Hello, I have put my vmware guest machine in NAT mode. This means there is a sort of private network between my host winxp PC and guest PC running freeswitch. I have reverted to default switch_private.h and run make current again. Connnectivity seems ok to me, I have even runned a portscan from my host pc Starting Nmap 4.50 ( http://insecure.org ) d Time Interesting ports on 192.168.60.129: Not shown: 1708 closed ports PORT STATE SERVICE 22/tcp open ssh 113/tcp open auth 5060/tcp open sip MAC Address: 00:0C:29:1D:BB:69 (VMware) However now I can't register as 1001 user to freeswitch, I get 403 forbidden! I'm trying to register from the host PC to the guest PC, what's wrong with this? I send this: REGISTER sip:192.168.60.129;transport=UDP SIP/2.0 Via: SIP/2.0/UDP 192.168.60.1:5060;branch=z9hG4bK-d8754z-b2ea78f0f28e3806-1---d8754z-;rpo rt Max-Forwards: 70 Contact: <sip:1001@192.168.60.1:5060;rinstance=99c81c4aeb33a7f7>;transport=UDP To: "1001"<sip:1001@192.168.60.129>;transport=UDP From: "1001"<sip:1001@192.168.60.129>;transport=UDP;tag=422afb45 Call-ID: M2I1YWRmOWY4YjZlN2NmMTNmM2EzN2ZmY2VkMWExNzQ. CSeq: 1 REGISTER Expires: 70 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO User-Agent: Zoiper rev.448 Allow-Events: presence Content-Length: 0 and I get this: SIP/2.0 403 Forbidden Via: SIP/2.0/UDP 192.168.60.1:5060;branch=z9hG4bK-d8754z-b2ea78f0f28e3806-1---d8754z-;rpo rt=5060 From: "1001" <sip:1001@192.168.60.129>;transport=UDP;tag=422afb45 To: "1001" <sip:1001@192.168.60.129>;transport=UDP;tag=9Bcgj71ZBvHQc Call-ID: M2I1YWRmOWY4YjZlN2NmMTNmM2EzN2ZmY2VkMWExNzQ. CSeq: 1 REGISTER User-Agent: FreeSWITCH-mod_sofia/1.0.pre3-7808M Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: 100rel, precondition, timer Content-Length: 0 Besides I don't remember having ever changed freeswitch configuration, but maybe I have something broken since at the end of startup it seems it opens sound files... 2008-03-07 17:19:14 [DEBUG] mod_event_socket.c:1291 mod_event_socket_runtime() S ocket up listening on 127.0.0.1:8021 freeswitch@dapota> 2008-03-07 17:19:15 [DEBUG] mod_sndfile.c:170 sndfile_file_op en() Opening File [/usr/local/freeswitch/sounds/music/8000/partita-no-3-in-e-maj or-bwv-1006-1-preludio.wav] rate 8000hz 2008-03-07 17:19:15 [DEBUG] mod_local_stream.c:186 read_stream_thread() Playing [/usr/local/freeswitch/sounds/music/8000/partita-no-3-in-e-major-bwv-100 6-1-prel udio.wav] rate: 8000hz is this normal or not? If not can I do a make uninstall to remove fs from my machine? Thanks a lot, Claudio ________________________________ From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: Friday, March 07, 2008 3:01 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] freeswitch in vmware It was confirmed by 2 people that using it in bridged mode is the problem. Can you change vmware networking to NAT mode and tell me if it works for you? Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:213-799-1400 ----- Original Message ---- From: Cavalera Claudio Luigi <Claudio.Cavalera@italtel.it> To: freeswitch-users@lists.freeswitch.org Sent: Friday, March 7, 2008 2:39:45 AM Subject: Re: [Freeswitch-users] freeswitch in vmware > The problem is that in bridged network mode RTP packets from my sip > phone (on the host system) were seen twice by the guest (same > sequence > number, same packet really). MikeJ pointed this out so I > switched to NAT > mode, which fixed it for me. To keep your clock in sync just > boot with > 'clock=pit' and run ntpd. I have done as you suggested to fix the clock (ntpd plus clock=pit) and it seems to work. The problem of choppiness remain, I'm not sure if bridge network is the problem because I've tried to connect from other machine to the guest running freeswitch and the problem is the same. Thanks to everyone for suggestions so far! Claudio > >> MikeJ helped to figured out that the culprit is actually > the vmware > >> bridge. Change the network type to NAT and it will "just > work". Mike > >> says that if the soft phone was not on the same box as the > >> host system > >> that it would work a little better. I will test with a > native linux > >> bridge and xen in a few days. =] > >> > >> -John > > > > > > But if I changed network type to NAT how can I reach the freeswitch > > server inside vmware? > > Isn't that the same as reaching a private host behind a home nat dsl > > router? > > > > Best regards, > > Claudio > > > [snip] > > Sorry, but I can't be much of a help here. I believe there is a file > /etc/vmware/vmnet8 or so that allows you to configure port forwarding > inside the VM. I agree dealing with nat even once (let alone > twice) is a > big fat PITA. Perhaps you can figure out how to run VMware in > "routed" > mode. I would prefer this as I could then run NAT on the host system > doing 1:1 NAT or on the router itself. > > Also, and anthm can explain better but if you add something like: > <action application="set" data="timer_name=soft" /> > > to extension 9999 for example (before the playback). The > choppyness will > disappear. >From what I understood freeswitch gets its timing > information > from the client and if the client is sending every packet twice it > confuses freeswitch. > > Actually another solution/work-around (without modifying the > rtp code) > would be to run ebtables on your linux box and filter the erronous > packet, on my system it comes from some cisco mac address. > > > HTH, > John > > _______________________________________________ > Freeswitch-users mailing list > Freeswitch-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freesw > itch-users > http://www.freeswitch.org Internet Email Confidentiality Footer ------------------------------------------------------------------------ ----------------------------- La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto. This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred. ------------------------------------------------------------------------ ----------------------------- _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ________________________________ Never miss a thing. Make Yahoo your homepage. <http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs>