sefaoduncuoglu / sip-js

Automatically exported from code.google.com/p/sip-js
0 stars 0 forks source link

Could'nt connect to FreeSwitch Server? #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi there,
I've tried to use sip-js to connect with my existing SIP extension, hosted 
under the last version of FreeSwitch, I've used the phone example above to 
connect with:

http://theintencity.com/sip-js/phone.html

I've configured my extension, and I tried to register without success, I've 
copied the log at the bottom.
I also noted that Flash Network detect's my local network ip instead of my 
internet IP, i don't know if this is correct or not.

Is this a issue or am I missing some configuration?

Thanks.

WHEN I TRY TO CONNECT:
----------------------------
flash-network data 
{"id":"2","event":{"srcPort":5060,"dstAddress":"0.0.0.0","data":"b64:U0lQLzIuMCA
0MDMgRm9yYmlkZGVuDQpWaWE6IFNJUC8yLjAvVURQIDkwLjE2My4xNzAuODI6NTYwMjM7cnBvcnQ9NTY
wMjM7YnJhbmNoPXo5aEc0YktNMlF6TURWaFpUVTRNMlJoWkdVM1pUVXdZekptWkdZMVpEVTVNRFF4T0R
ZLg0KRnJvbTogIkl2YW4iIDxzaXA6MTAwMEAxNzguMzMuMTYxLjk1Pjt0YWc9MTI2NjYwOTY1NDYxNjI
3OTU2OTQNClRvOiAiSXZhbiIgPHNpcDoxMDAwQDE3OC4zMy4xNjEuOTU+O3RhZz1aU2p2RmUxcEI1cnZ
lDQpDYWxsLUlEOiAyOTMzMjEyMzA1QDkwLjE2My4xNzAuODINCkNTZXE6IDIgUkVHSVNURVINClVzZXI
tQWdlbnQ6IEZyZWVTV0lUQ0gtbW9kX3NvZmlhLzEuMS5iZXRhMi1oYWNrZWQtMjAxMjAzMDdUMTY1MTE
4Wg0KQWxsb3c6IElOVklURSwgQUNLLCBCWUUsIENBTkNFTCwgT1BUSU9OUywgTUVTU0FHRSwgVVBEQVR
FLCBJTkZPLCBSRUdJU1RFUiwgUkVGRVIsIE5PVElGWSwgUFVCTElTSCwgU1VCU0NSSUJFDQpTdXBwb3J
0ZWQ6IHRpbWVyLCBwcmVjb25kaXRpb24sIHBhdGgsIHJlcGxhY2VzDQpDb250ZW50LUxlbmd0aDogMA0
KDQo=","dstPort":56023,"srcAddress":"MYSERVER","type":"data"}}

<= MYSERVER:5060
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 
MYIP:56023;rport=56023;branch=z9hG4bKM2QzMDVhZTU4M2RhZGU3ZTUwYzJmZGY1ZDU5MDQxODY
.
From: "Ivan" <sip:1000@MYSERVER>;tag=12666096546162795694
To: "Ivan" <sip:1000@MYSERVER>;tag=ZSjvFe1pB5rve
Call-ID: 2933212305@MYIP
CSeq: 2 REGISTER
User-Agent: FreeSWITCH-mod_sofia/1.1.beta2-hacked-20120307T165118Z
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, 
REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
Content-Length: 0

Original issue reported on code.google.com by zeo...@gmail.com on 18 May 2012 at 1:30

GoogleCodeExporter commented 9 years ago
Solved! I don't really know where was the error but now it works, i can make 
call's between extensions, but Audio&Video doesn't works, maybe for the codecs?

I will keep investing.

Thanks!

Original comment by zeo...@gmail.com on 18 May 2012 at 2:46