Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-22 Thread James Mortensen
Hi Sven, I tried out your changes. I had to replace the $_SERVER['REMOTE_ADDR'] with Java's request.getRemoteAddr() since I'm using Jetty not Apache. I got the same results you got, which I also get using the something.invalid header. The peer connects from Chrome, I can dial my cellphone and

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-21 Thread Juan Castro
On Mon, Aug 20, 2012 at 8:20 PM, mailsvb mail...@gmail.com wrote: Hi, you need to build Asterisk with SRTP support... wget http://sourceforge.net/projects/srtp/files/latest/download -O srtp-latest.tgz tar -zxvf srtp-latest.tgz ./configure --prefix=/libsrtp make make install And for

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-20 Thread Juan Castro
On Fri, Aug 17, 2012 at 7:04 PM, Juan Castro jcas...@instant.com.br wrote: On Fri, Aug 17, 2012 at 5:45 PM, Juan Castro jcas...@instant.com.br wrote: I still get unauthorized from sipml5 with these modifications. I used port 80 instead of 8088 (no other webserver listening on 80), was that

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-20 Thread Joshua Colp
- Original Message - Joshua Can you copy and past into a wiki page for everyone's benefit? Maybe https://wiki.asterisk.org/wiki/display/~jcolp/WebRTC_Demo_Setup or like page would be good. If this thread has taught me anything it's that there needs to be a complete wiki page, just

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-20 Thread Joshua Colp
- Original Message - On Fri, Aug 17, 2012 at 7:04 PM, Juan Castro jcas...@instant.com.br wrote: On Fri, Aug 17, 2012 at 5:45 PM, Juan Castro jcas...@instant.com.br wrote: I still get unauthorized from sipml5 with these modifications. I used port 80 instead of 8088 (no other

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-20 Thread Joshua Colp
- Original Message - On Fri, Aug 17, 2012 at 7:04 PM, Juan Castro jcas...@instant.com.br wrote: On Fri, Aug 17, 2012 at 5:45 PM, Juan Castro jcas...@instant.com.br wrote: I still get unauthorized from sipml5 with these modifications. I used port 80 instead of 8088 (no other

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-20 Thread Andrew Latham
On Mon, Aug 20, 2012 at 10:52 AM, Joshua Colp jc...@digium.com wrote: - Original Message - Joshua Can you copy and past into a wiki page for everyone's benefit? Maybe https://wiki.asterisk.org/wiki/display/~jcolp/WebRTC_Demo_Setup or like page would be good. If this thread has

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-20 Thread Juan Castro
On Mon, Aug 20, 2012 at 11:53 AM, Joshua Colp jc...@digium.com wrote: - Original Message - On Fri, Aug 17, 2012 at 7:04 PM, Juan Castro jcas...@instant.com.br wrote: On Fri, Aug 17, 2012 at 5:45 PM, Juan Castro jcas...@instant.com.br wrote: I still get unauthorized from sipml5

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-20 Thread Joshua Colp
- Original Message - The complete URL to use is http://asterisk IP address or host:8088/ws Note the /ws at the end. WebSocket support is only available there. Doing otherwise would have required core HTTP server changes, which I wanted to avoid. Depending on what you are

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-20 Thread Juan Castro
Hoo-hah. It registers. Progress! Now... media. Or not. On Mon, Aug 20, 2012 at 12:51 PM, Joshua Colp jc...@digium.com wrote: - Original Message - The complete URL to use is http://asterisk IP address or host:8088/ws Note the /ws at the end. WebSocket support is only available

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-20 Thread Andrew Latham
On Mon, Aug 20, 2012 at 2:58 PM, Juan Castro jcas...@instant.com.br wrote: Hoo-hah. It registers. Progress! Now... media. Or not. On Mon, Aug 20, 2012 at 12:51 PM, Joshua Colp jc...@digium.com wrote: - Original Message - The complete URL to use is http://asterisk IP address or

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-20 Thread Juan Castro
Put my sipml5 changes there. By the way, this is what happens when I try to call a X-Lite extension from a sipml5 extension: jcvmasterisk1*CLI == Using SIP RTP CoS mark 5 [Aug 20 17:24:02] ERROR[22737][C-0009]: chan_sip.c:32140 setup_srtp: No SRTP module loaded, can't setup SRTP session.

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-20 Thread mailsvb
Hi, you need to build Asterisk with SRTP support... *wget http://sourceforge.net/projects/srtp/files/latest/download -O srtp-latest.tgz tar -zxvf srtp-latest.tgz ./configure --prefix=/libsrtp make make install* *And for Asterisk...* *./configure --with-srtp=/libsrtp* * * *this should work...* *

[asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-17 Thread Juan Castro
I see no indication of how to do this in sip.conf, and when I start Asterisk, it doesn't wait on port 80. Greetings, -- Juan Carlos Castro y Castro Instant Solutions - Telefonia Gerando Resultado http://www.instant.com.br Principais capitais: 4063-6100 Demais regiƵes: (11)4063-6100 --

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-17 Thread Andrew Latham
On Fri, Aug 17, 2012 at 2:45 PM, Juan Castro jcas...@instant.com.br wrote: I see no indication of how to do this in sip.conf, and when I start Asterisk, it doesn't wait on port 80. Greetings, -- Juan Carlos Castro y Castro Instant Solutions - Telefonia Gerando Resultado

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-17 Thread Joshua Colp
- Original Message - On Fri, Aug 17, 2012 at 2:45 PM, Juan Castro jcas...@instant.com.br wrote: I see no indication of how to do this in sip.conf, and when I start Asterisk, it doesn't wait on port 80. Websocket support is being actively worked on. HTTP support should be

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-17 Thread Andrew Latham
On Fri, Aug 17, 2012 at 4:01 PM, Joshua Colp jc...@digium.com wrote: - Original Message - On Fri, Aug 17, 2012 at 2:45 PM, Juan Castro jcas...@instant.com.br wrote: I see no indication of how to do this in sip.conf, and when I start Asterisk, it doesn't wait on port 80.

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-17 Thread Andrew Latham
On Fri, Aug 17, 2012 at 4:07 PM, Andrew Latham lath...@gmail.com wrote: On Fri, Aug 17, 2012 at 4:01 PM, Joshua Colp jc...@digium.com wrote: - Original Message - On Fri, Aug 17, 2012 at 2:45 PM, Juan Castro jcas...@instant.com.br wrote: I see no indication of how to do this in

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-17 Thread Juan Castro
On Fri, Aug 17, 2012 at 5:01 PM, Joshua Colp jc...@digium.com wrote: - Original Message - On Fri, Aug 17, 2012 at 2:45 PM, Juan Castro jcas...@instant.com.br wrote: I see no indication of how to do this in sip.conf, and when I start Asterisk, it doesn't wait on port 80.

Re: [asterisk-users] How to test Websocket support in SIP in Asterisk trunk?

2012-08-17 Thread Juan Castro
On Fri, Aug 17, 2012 at 5:45 PM, Juan Castro jcas...@instant.com.br wrote: I still get unauthorized from sipml5 with these modifications. I used port 80 instead of 8088 (no other webserver listening on 80), was that wrong? Correction. It's actually Failed to connect to the server. I set the