[Freeswitch-users] freeswitch in vmware

John Skopis (Lists) jlists at skopis.com
Fri Mar 7 17:36:51 PST 2008


Cavalera Claudio Luigi wrote:
> 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 at 192.168.60.1:5060;rinstance=99c81c4aeb33a7f7>;transport=UDP
> To: "1001"<sip:1001 at 192.168.60.129>;transport=UDP
> From: "1001"<sip:1001 at 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 at 192.168.60.129>;transport=UDP;tag=422afb45
> To: "1001" <sip:1001 at 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 at 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
> 
[snip]

Are you sure you are using the correct password? The defaults should be 
1001/1234 and 1000/1234. Note the directory files (if install prefix is

/usr/local/freeswitch, the default):
/usr/local/freeswitch/conf/directory/default/1000.xml
/usr/local/freeswitch/conf/directory/default/1001.xml

If you would like to reinstall there is a few ways to do it:
at the top level of the src tree do "make sure" to do a full reinstall.
or, just rm -rf /usr/local/freeswitch and rebuild + reinstall
or, rm -rf /usr/local/freeswitch/conf and then "make samples" in the src 
tree.

HTH
john




More information about the FreeSWITCH-users mailing list