Single web socket for multiple verto clients
Hi, Does FreeSWITCH require each Verto client to have a separate web socket connection? I am trying to see if it is possible to open single web socket connection to FS and send verto login and invite messages for different clients on the same web socket? Does verto/FS have the ability to distinguish several clients on the same web socket based on say session Id or equivalent unique identifier? Any input on this question is greatly appreciated Thanks Sowmya
it is one per client. On Fri, Apr 5, 2019 at 4:24 PM Sowmya Venkat <sowmyatv@gmail.com> wrote:
Hi, Does FreeSWITCH require each Verto client to have a separate web socket connection? I am trying to see if it is possible to open single web socket connection to FS and send verto login and invite messages for different clients on the same web socket? Does verto/FS have the ability to distinguish several clients on the same web socket based on say session Id or equivalent unique identifier?
Any input on this question is greatly appreciated
Thanks Sowmya _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
Thanks a lot for the reply Mike. Sorry, the word Verto in my previous email seems little ambiguous, I am trying to write my own client (not using verto.js). I am trying to talk to mod_verto on FS directly sending messages on websocket using JSON RPC. Based on your response, can you pls confirm if mod_verto does impose a restriction that each client connecting to it should have a separate web socket or can it support multiple clients on a single web socket and track each client based on some identifier? Thanks Sowmya On Sat 6 Apr, 2019, 4:34 AM Mike Jerris, <mike@freeswitch.com> wrote:
it is one per client.
On Fri, Apr 5, 2019 at 4:24 PM Sowmya Venkat <sowmyatv@gmail.com> wrote:
Hi, Does FreeSWITCH require each Verto client to have a separate web socket connection? I am trying to see if it is possible to open single web socket connection to FS and send verto login and invite messages for different clients on the same web socket? Does verto/FS have the ability to distinguish several clients on the same web socket based on say session Id or equivalent unique identifier?
Any input on this question is greatly appreciated
Thanks Sowmya _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
Every client need a websocket connection to communicate with you FS. Let say you have 1000 client you need a 1000 connection for communicate with your FS. You can use verto or SIP-WSS for WebRTC browser based communication. If you want to develope your own client side you can't do it in mod_verto because it's done by freeswitch team using their own json Flow. but you can develope you own SIP over websocket libaray using https://tools.ietf.org/html/rfc7118 like JSSIP, SipJS Again you can't able to use single connection multiple client, Each and every client need one websocket connection to communicate with FS. On Sun, 7 Apr, 2019, 7:34 AM Sowmya Venkat, <sowmyatv@gmail.com> wrote:
Thanks a lot for the reply Mike. Sorry, the word Verto in my previous email seems little ambiguous, I am trying to write my own client (not using verto.js). I am trying to talk to mod_verto on FS directly sending messages on websocket using JSON RPC. Based on your response, can you pls confirm if mod_verto does impose a restriction that each client connecting to it should have a separate web socket or can it support multiple clients on a single web socket and track each client based on some identifier?
Thanks Sowmya
On Sat 6 Apr, 2019, 4:34 AM Mike Jerris, <mike@freeswitch.com> wrote:
it is one per client.
On Fri, Apr 5, 2019 at 4:24 PM Sowmya Venkat <sowmyatv@gmail.com> wrote:
Hi, Does FreeSWITCH require each Verto client to have a separate web socket connection? I am trying to see if it is possible to open single web socket connection to FS and send verto login and invite messages for different clients on the same web socket? Does verto/FS have the ability to distinguish several clients on the same web socket based on say session Id or equivalent unique identifier?
Any input on this question is greatly appreciated
Thanks Sowmya _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
You can looks kamailio config for kazoo project 1) config https://github.com/2600hz/kazoo-configs-kamailio/blob/master/kamailio 2) websocket part https://github.com/2600hz/kazoo-configs-kamailio/blob/master/kamailio/websoc... Kamailio is proxies websocket connections from endusers to FreeSwitch. Think kamailio establish one connection for all proxyed users. Sergey On Sun, Apr 7, 2019 at 5:32 AM Sowmya Venkat <sowmyatv@gmail.com> wrote:
Thanks a lot for the reply Mike. Sorry, the word Verto in my previous email seems little ambiguous, I am trying to write my own client (not using verto.js). I am trying to talk to mod_verto on FS directly sending messages on websocket using JSON RPC. Based on your response, can you pls confirm if mod_verto does impose a restriction that each client connecting to it should have a separate web socket or can it support multiple clients on a single web socket and track each client based on some identifier?
Thanks Sowmya
On Sat 6 Apr, 2019, 4:34 AM Mike Jerris, <mike@freeswitch.com> wrote:
it is one per client.
On Fri, Apr 5, 2019 at 4:24 PM Sowmya Venkat <sowmyatv@gmail.com> wrote:
Hi, Does FreeSWITCH require each Verto client to have a separate web socket connection? I am trying to see if it is possible to open single web socket connection to FS and send verto login and invite messages for different clients on the same web socket? Does verto/FS have the ability to distinguish several clients on the same web socket based on say session Id or equivalent unique identifier?
Any input on this question is greatly appreciated
Thanks Sowmya _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
I can’t figure out how he wants to use only one websocket for multiple clients? Websockets are tcp (thus connection-oriented) and you can’t (afaik) establish one-to-many. On Mon, 8 Apr 2019 at 04:47, Sergey Safarov <s.safarov@gmail.com> wrote:
You can looks kamailio config for kazoo project 1) config https://github.com/2600hz/kazoo-configs-kamailio/blob/master/kamailio 2) websocket part https://github.com/2600hz/kazoo-configs-kamailio/blob/master/kamailio/websoc...
Kamailio is proxies websocket connections from endusers to FreeSwitch. Think kamailio establish one connection for all proxyed users.
Sergey
On Sun, Apr 7, 2019 at 5:32 AM Sowmya Venkat <sowmyatv@gmail.com> wrote:
Thanks a lot for the reply Mike. Sorry, the word Verto in my previous email seems little ambiguous, I am trying to write my own client (not using verto.js). I am trying to talk to mod_verto on FS directly sending messages on websocket using JSON RPC. Based on your response, can you pls confirm if mod_verto does impose a restriction that each client connecting to it should have a separate web socket or can it support multiple clients on a single web socket and track each client based on some identifier?
Thanks Sowmya
On Sat 6 Apr, 2019, 4:34 AM Mike Jerris, <mike@freeswitch.com> wrote:
it is one per client.
On Fri, Apr 5, 2019 at 4:24 PM Sowmya Venkat <sowmyatv@gmail.com> wrote:
Hi, Does FreeSWITCH require each Verto client to have a separate web socket connection? I am trying to see if it is possible to open single web socket connection to FS and send verto login and invite messages for different clients on the same web socket? Does verto/FS have the ability to distinguish several clients on the same web socket based on say session Id or equivalent unique identifier?
Any input on this question is greatly appreciated
Thanks Sowmya
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
-- Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
Hi Geeks, When I join a call to echo application with H264 as video codec there is no video sent back from FreeSWITCH while with VP8 it sends video. I am using Linphone on iPhone 6 as SIP client I am using FreeSWITCH Version 1.8.4+git~20181227T011058Z~749a6e108b~64bit (git 749a6e1 2018-12-27 01:10:58Z 64bit) on Debian Release 9.6 stretch. mod_h26x is enabled and and it show it loaded, freeswitch@Dev-Togee-media-fra-16> module_exists mod_h26x true it enabled as only video codec in var.xml, <X-PRE-PROCESS cmd="set" data="global_codec_prefs=OPUS,PCMU,PCMA,H264"/> <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=OPUS,PCMU,PCMA,H264"/> Linphone client send H264 in SDP offer, v=0 o=USR1001 3576 2398 IN IP4 10.0.0.106 s=Talk c=IN IP4 10.0.0.106 t=0 0 a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics m=audio 7212 RTP/AVP 96 0 8 101 97 a=rtpmap:96 opus/48000/2 a=fmtp:96 useinbandfec=1 a=rtpmap:101 telephone-event/48000 a=rtpmap:97 telephone-event/8000 a=rtcp-fb:* trr-int 1000 a=rtcp-fb:* ccm tmmbr m=video 9236 RTP/AVP 96 a=rtpmap:96 H264/90000 a=fmtp:96 profile-level-id=42801F a=rtcp-fb:* trr-int 1000 a=rtcp-fb:* ccm tmmbr a=rtcp-fb:96 nack pli a=rtcp-fb:96 ccm fir but FreeSWITCH replies SDP without video , v=0 o=FreeSWITCH 1554713996 1554713997 IN IP4 178.33.144.18 s=FreeSWITCH c=IN IP4 178.33.144.18 t=0 0 m=audio 754 RTP/AVP 96 101 a=rtpmap:96 opus/48000/2 a=fmtp:96 useinbandfec=1 a=rtpmap:101 telephone-event/48000 a=fmtp:101 0-16 a=ptime:20 m=video 0 RTP/AVP 19 It is really strange behavior, I really appreciate any suggestion and help on it. Regards, Faisal
Hi, 1. You need mod_av, not mod_h26x 2. Don't forget to set echo_encode_video=true Regards, Alex Alex Sibyakin | Support Engineer SignalWire | 228 Hamilton Ave 3rd Floor, Palo Alto, CA 94303 Email: alex@freeswitch.com Website: https://www.signalwire.com On Tue, Apr 9, 2019 at 7:01 AM Faisal Hanif <imfanee@gmail.com> wrote:
Hi Geeks,
When I join a call to echo application with H264 as video codec there is no video sent back from FreeSWITCH while with VP8 it sends video. I am using Linphone on iPhone 6 as SIP client I am using FreeSWITCH Version 1.8.4+git~20181227T011058Z~749a6e108b~64bit (git 749a6e1 2018-12-27 01:10:58Z 64bit) on Debian Release 9.6 stretch.
mod_h26x is enabled and and it show it loaded,
freeswitch@Dev-Togee-media-fra-16> module_exists mod_h26x true
it enabled as only video codec in var.xml,
<X-PRE-PROCESS cmd="set" data="global_codec_prefs=OPUS,PCMU,PCMA,H264"/> <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=OPUS,PCMU,PCMA,H264"/>
Linphone client send H264 in SDP offer,
v=0 o=USR1001 3576 2398 IN IP4 10.0.0.106 s=Talk c=IN IP4 10.0.0.106 t=0 0 a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics m=audio 7212 RTP/AVP 96 0 8 101 97 a=rtpmap:96 opus/48000/2 a=fmtp:96 useinbandfec=1 a=rtpmap:101 telephone-event/48000 a=rtpmap:97 telephone-event/8000 a=rtcp-fb:* trr-int 1000 a=rtcp-fb:* ccm tmmbr m=video 9236 RTP/AVP 96 a=rtpmap:96 H264/90000 a=fmtp:96 profile-level-id=42801F a=rtcp-fb:* trr-int 1000 a=rtcp-fb:* ccm tmmbr a=rtcp-fb:96 nack pli a=rtcp-fb:96 ccm fir
but FreeSWITCH replies SDP without video ,
v=0 o=FreeSWITCH 1554713996 1554713997 IN IP4 178.33.144.18 s=FreeSWITCH c=IN IP4 178.33.144.18 t=0 0 m=audio 754 RTP/AVP 96 101 a=rtpmap:96 opus/48000/2 a=fmtp:96 useinbandfec=1 a=rtpmap:101 telephone-event/48000 a=fmtp:101 0-16 a=ptime:20 m=video 0 RTP/AVP 19
It is really strange behavior, I really appreciate any suggestion and help on it.
Regards,
Faisal
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
Thank a lot Alex you are always life lifesaver :) one more favor please, conference video-mode mux works fine with H264 and send all participant's video perfectly but blank when I switch to codec VP8 it sends blank canvas always. any clue ? With great regards, Faisal On Tue, 9 Apr 2019 at 09:17, Alexey Sibyakin <alex@freeswitch.com> wrote:
Hi,
1. You need mod_av, not mod_h26x 2. Don't forget to set echo_encode_video=true
Regards,
Alex
Alex Sibyakin | Support Engineer SignalWire | 228 Hamilton Ave 3rd Floor, Palo Alto, CA 94303 Email: alex@freeswitch.com Website: https://www.signalwire.com
On Tue, Apr 9, 2019 at 7:01 AM Faisal Hanif <imfanee@gmail.com> wrote:
Hi Geeks,
When I join a call to echo application with H264 as video codec there is no video sent back from FreeSWITCH while with VP8 it sends video. I am using Linphone on iPhone 6 as SIP client I am using FreeSWITCH Version 1.8.4+git~20181227T011058Z~749a6e108b~64bit (git 749a6e1 2018-12-27 01:10:58Z 64bit) on Debian Release 9.6 stretch.
mod_h26x is enabled and and it show it loaded,
freeswitch@Dev-Togee-media-fra-16> module_exists mod_h26x true
it enabled as only video codec in var.xml,
<X-PRE-PROCESS cmd="set" data="global_codec_prefs=OPUS,PCMU,PCMA,H264"/> <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=OPUS,PCMU,PCMA,H264"/>
Linphone client send H264 in SDP offer,
v=0 o=USR1001 3576 2398 IN IP4 10.0.0.106 s=Talk c=IN IP4 10.0.0.106 t=0 0 a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics m=audio 7212 RTP/AVP 96 0 8 101 97 a=rtpmap:96 opus/48000/2 a=fmtp:96 useinbandfec=1 a=rtpmap:101 telephone-event/48000 a=rtpmap:97 telephone-event/8000 a=rtcp-fb:* trr-int 1000 a=rtcp-fb:* ccm tmmbr m=video 9236 RTP/AVP 96 a=rtpmap:96 H264/90000 a=fmtp:96 profile-level-id=42801F a=rtcp-fb:* trr-int 1000 a=rtcp-fb:* ccm tmmbr a=rtcp-fb:96 nack pli a=rtcp-fb:96 ccm fir
but FreeSWITCH replies SDP without video ,
v=0 o=FreeSWITCH 1554713996 1554713997 IN IP4 178.33.144.18 s=FreeSWITCH c=IN IP4 178.33.144.18 t=0 0 m=audio 754 RTP/AVP 96 101 a=rtpmap:96 opus/48000/2 a=fmtp:96 useinbandfec=1 a=rtpmap:101 telephone-event/48000 a=fmtp:101 0-16 a=ptime:20 m=video 0 RTP/AVP 19
It is really strange behavior, I really appreciate any suggestion and help on it.
Regards,
Faisal
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
-- Regards, Faisal Hanif
participants (7)
-
Alexey Sibyakin
-
David Villasmil
-
Faisal Hanif
-
Mike Jerris
-
Murugan Pandian
-
Sergey Safarov
-
Sowmya Venkat