[Freeswitch-users] JsSIP and wss

Peter Steinbach lists at telefaks.de
Thu Sep 5 20:23:22 MSD 2013


Just another question:

is there any way to trace the connection setup on the client side
(besides console log) and on Freeswitch's side?
In an unencrypted communication ngrep or pcap are very usefull. But in
this encrypted scenario this seems to be no option.

Best regards
Peter




On 09/04/13 22:25, Peter Steinbach wrote:
> >https://<FS-IP>:<WSS-port>
> I did this, also we have created our own wss.pem
> Freeswitch logs do not show anything even at debug level 10.
>
> So it seems to be a ssl connection problem.
> openssl1.0.1e is installed and Freeswitch was compiled against it
> beginning with ./bootsrap
> Freeswitch was checked out today, so it is up-to-date.
> Jssip console log shows:
> JsSIP | TRANSPORT | connecting to WebSocket wss://mydomain.com:7443
> jssip-devel.js:556
> JsSIP | TRANSPORT | WebSocket connection error: [object Event]
> jssip-devel.js:717
> JsSIP | TRANSPORT | WebSocket disconnected (code: 1006) jssip-devel.js:611
> JsSIP | TRANSPORT | WebSocket abrupt disconnection jssip-devel.js:614
> JsSIP | UA | transport wss://mydomain.com:7443 failed | connection
> state set to 2 jssip-devel.js:5292
> JsSIP | EVENT EMITTER | emitting event disconnected jssip-devel.js:187
> JsSIP | UA | next connection attempt in 12 seconds
>
> I get this error both on Chromium and Firefox.
>
> Best regards
> Peter
>
>
>
> On 09/04/13 19:28, Muhammad Shahzad wrote:
>> If you are using self-signed certificates, then you need to add
>> exception for them in your web browser, The easiest way to do it is,
>> open below URL in your web browser and add exception for SSL
>> certificate when prompted,
>>
>> https://<FS-IP>:<WSS-port>
>>
>> Then JSSIP will work fine.
>>
>> Thank you.
>>
>>
>>
>>
>> On Wed, Sep 4, 2013 at 7:12 PM, Anthony Minessale
>> <anthony.minessale at gmail.com <mailto:anthony.minessale at gmail.com>> wrote:
>>
>>     Try making your own wss.pem that is a valid http cert key pair.
>>
>>
>>
>>     On Wed, Sep 4, 2013 at 12:05 PM, Peter Steinbach
>>     <lists at telefaks.de <mailto:lists at telefaks.de>> wrote:
>>
>>         I am trying the Jssip demo with freeswitch and it works
>>         nicely with jssip 0.3.0 and the following configuration:
>>              ws_servers: 'ws://my_domain.com:8088' (My ws port is on
>>         8088)
>>
>>         However this only works with 'ws' but not with secure 'wss'.
>>
>>           * In the log I can see that freeswitch sets wss-binding[:7443]
>>           * wss.pem is also present in the certs directory
>>
>>         But with the config:
>>              ws_servers: 'wss://my_domain.com:7443'
>>         I do not even get a connection and I receive a 1006 error.
>>
>>         Anybody has a working wss connection with Jssip and can share
>>         his config with me?
>>
>>
>>         -- 
>>         With kind regards
>>         Peter Steinbach 
>>
>>         Telefaks Services GmbH
>>         mailto:lists (att) telefaks.de <http://telefaks.de>
>>         Internet: www.telefaks.de <http://www.telefaks.de>
>>
>>
>>         _________________________________________________________________________
>>         Professional FreeSWITCH Consulting Services:
>>         consulting at freeswitch.org <mailto: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
>>         <mailto: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
>>
>>
>>
>>
>>     -- 
>>     Anthony Minessale II
>>
>>     FreeSWITCH http://www.freeswitch.org/
>>     ClueCon http://www.cluecon.com/
>>     Twitter: http://twitter.com/FreeSWITCH_wire
>>
>>     AIM: anthm
>>     MSN:anthony_minessale at hotmail.com
>>     <mailto:MSN%3Aanthony_minessale at hotmail.com>
>>     GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>>     <mailto:PAYPAL%3Aanthony.minessale at gmail.com>
>>     IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
>>
>>     FreeSWITCH Developer Conference
>>     sip:888 at conference.freeswitch.org
>>     <mailto:sip%3A888 at conference.freeswitch.org>
>>     googletalk:conf+888 at conference.freeswitch.org
>>     <mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
>>     pstn:+19193869900
>>
>>     _________________________________________________________________________
>>     Professional FreeSWITCH Consulting Services:
>>     consulting at freeswitch.org <mailto: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
>>     <mailto: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
>>
>>
>>
>>
>> -- 
>> Mit freundlichen Grüßen
>> Muhammad Shahzad
>> -----------------------------------
>> CISCO Rich Media Communication Specialist (CRMCS)
>> CISCO Certified Network Associate (CCNA)
>> Cell: +49 176 99 83 10 85
>> MSN: shari_786pk at hotmail.com <mailto:shari_786pk at hotmail.com>
>> Email: shaheryarkh at googlemail.com <mailto:shaheryarkh at googlemail.com>
>>
>>
>> _________________________________________________________________________
>> 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
>
>
> -- 
> With kind regards
> Peter Steinbach 
>
> Telefaks Services GmbH
> mailto:lists (att) telefaks.de
> Internet: www.telefaks.de
>
>
>
> _________________________________________________________________________
> 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


-- 
With kind regards
Peter Steinbach 

Telefaks Services GmbH
mailto:lists (att) telefaks.de
Internet: www.telefaks.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130905/7f6e6005/attachment-0001.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list