Re: [SR-Users] websockets

2021-01-11 Thread Daniel-Constantin Mierla
Hello,


look at websocket module, there are some snippets of config:


  * https://www.kamailio.org/docs/modules/stable/modules/websocket.html


Also, searching on the web about kamailio and websocket/webrtc should
reveal more configs that can be used as starting point.


Once you try and get stuck on some specific part, you can ask here for
further assistance.


Cheers,
Daniel


On 08.01.21 11:06, Daniel Hermann N'don wrote:
> Hello everyone,
> I'm a beginner in kamailio technology, and i want to use websockets
> module in kamailio 5.4 to exchange from the web to kamailio, but i
> don't know how to use it?
> Can someone help me please?🙏
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Websockets Configuration

2022-08-29 Thread Mahmood Alkhalil
Hi,

I'm trying to configure kamailio to register users over websockets, but i am 
not able to find any working configuration around, am new to kamailio.

as far as i understand now, xhttp will handle the HTTP GET requests, i am not 
sure how to configure xhttp port number, cannot find parameters in the module 
manual, i found multiple sample configs but none of them is working, am using 
JsSip client.

if someone can guide me with a link to a working config and that i can start 
from.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] websockets questions

2019-01-02 Thread Henning Westerholt
Am Mittwoch, 2. Januar 2019, 17:24:49 CET schrieb Geovanny de Jesús García 
Rojas:
> estoy haciendo un trabajo con websockts y kamailio. Me gustaría saber  como
> puedo vincular mi sevidor Kamailio instalado en una maquina virtual en el
> sistema operativo Ubuntu, como podria vincularlo con los websockets creados
> , me gustaria saber como es ese proceso. no tengo mucho conocimiento de
> ello.. espero su respuesta gracias

Hello Geovanny,

this list uses English as language, please consider joining the Spanish Users 
list at https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users-es

That said, have you already tried to look in the internet about websocket 
implementation? There is e.g. this talk from a past Kamailio World conference 
about this topic:

https://www.youtube.com/watch?v=rXsVSaRuv20

Best regards,

Henning

-- 
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
Kamailio security assessment - https://skalatan.de/de/assessment

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Websockets Configuration

2022-08-29 Thread Alex Balashov
Hi,

I think these will be useful to you:

https://github.com/kamailio/kamailio/tree/master/misc/examples/webrtc

— Alex

> On Aug 29, 2022, at 9:04 AM, Mahmood Alkhalil  
> wrote:
> 
> Hi,
> 
> I'm trying to configure kamailio to register users over websockets, but i am 
> not able to find any working configuration around, am new to kamailio.
> 
> as far as i understand now, xhttp will handle the HTTP GET requests, i am not 
> sure how to configure xhttp port number, cannot find parameters in the module 
> manual, i found multiple sample configs but none of them is working, am using 
> JsSip client.
> 
> if someone can guide me with a link to a working config and that i can start 
> from.
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>  * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Websockets Configuration

2022-08-30 Thread Mahmood Alkhalil
Hi Alex,

Thanks for the link, I've tried both of them, the old config which is 5 years 
old now is not working and i think it contains old config parameters that are 
not valid on latest Kamailio, the second file which is 17 months old which 
seems to be written with kamailio 5.x in mind seems ok but i cannot work out 
where is the websocket port number actually defined, would really appreciate a 
small guidance about that,

Mahmood Alkhalil.

From: sr-users  on behalf of Alex Balashov 

Sent: Monday, August 29, 2022 5:08 PM
To: Kamailio (SER) - Users Mailing List 
Subject: Re: [SR-Users] Websockets Configuration

Hi,

I think these will be useful to you:

https://github.com/kamailio/kamailio/tree/master/misc/examples/webrtc

— Alex

> On Aug 29, 2022, at 9:04 AM, Mahmood Alkhalil  
> wrote:
>
> Hi,
>
> I'm trying to configure kamailio to register users over websockets, but i am 
> not able to find any working configuration around, am new to kamailio.
>
> as far as i understand now, xhttp will handle the HTTP GET requests, i am not 
> sure how to configure xhttp port number, cannot find parameters in the module 
> manual, i found multiple sample configs but none of them is working, am using 
> JsSip client.
>
> if someone can guide me with a link to a working config and that i can start 
> from.
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>  * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Websockets Configuration

2022-08-30 Thread Alex Balashov
Hi Mahmood,

xhttp doesn’t have a distinct socket; it rides on top of existing TLS (or, I 
suppose, insecure TCP) listeners:

https://www.kamailio.org/wikidocs/cookbooks/5.6.x/core/#listen

The Kamailio core detects that the incoming request is an HTTP request rather 
than a SIP request and sends the message to the event_route exposed by xhttp.

In general, the HTTP handling inside Kamailio mostly makes use of the existing 
SIP parser, since there two protocols are grammatically similar.

— Alex

> On Aug 30, 2022, at 3:38 AM, Mahmood Alkhalil  
> wrote:
> 
> Hi Alex,
> 
> Thanks for the link, I've tried both of them, the old config which is 5 years 
> old now is not working and i think it contains old config parameters that are 
> not valid on latest Kamailio, the second file which is 17 months old which 
> seems to be written with kamailio 5.x in mind seems ok but i cannot work out 
> where is the websocket port number actually defined, would really appreciate 
> a small guidance about that,
> 
> Mahmood Alkhalil.
> From: sr-users  on behalf of Alex 
> Balashov 
> Sent: Monday, August 29, 2022 5:08 PM
> To: Kamailio (SER) - Users Mailing List 
> Subject: Re: [SR-Users] Websockets Configuration
>  
> Hi,
> 
> I think these will be useful to you:
> 
> https://github.com/kamailio/kamailio/tree/master/misc/examples/webrtc
> 
> — Alex
> 
> > On Aug 29, 2022, at 9:04 AM, Mahmood Alkhalil 
> >  wrote:
> > 
> > Hi,
> > 
> > I'm trying to configure kamailio to register users over websockets, but i 
> > am not able to find any working configuration around, am new to kamailio.
> > 
> > as far as i understand now, xhttp will handle the HTTP GET requests, i am 
> > not sure how to configure xhttp port number, cannot find parameters in the 
> > module manual, i found multiple sample configs but none of them is working, 
> > am using JsSip client.
> > 
> > if someone can guide me with a link to a working config and that i can 
> > start from.
> > __
> > Kamailio - Users Mailing List - Non Commercial Discussions
> >  * sr-users@lists.kamailio.org
> > Important: keep the mailing list in the recipients, do not reply only to 
> > the sender!
> > Edit mailing list options or unsubscribe:
> >  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> 
> -- 
> Alex Balashov | Principal | Evariste Systems LLC
> 
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
> 
> 
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>  * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Websockets Configuration

2022-08-30 Thread Mahmood Alkhalil
Thanks for the clarification, Alex. it confused me that there is no place to 
define xhttp port at the beginning , but now that i understand it i got it to 
work and am able to register over WSS

Get Outlook for iOS<https://aka.ms/o0ukef>

From: sr-users  on behalf of Alex Balashov 

Sent: Tuesday, August 30, 2022 2:11:34 PM
To: Kamailio (SER) - Users Mailing List 
Subject: Re: [SR-Users] Websockets Configuration

Hi Mahmood,

xhttp doesn’t have a distinct socket; it rides on top of existing TLS (or, I 
suppose, insecure TCP) listeners:

https://www.kamailio.org/wikidocs/cookbooks/5.6.x/core/#listen

The Kamailio core detects that the incoming request is an HTTP request rather 
than a SIP request and sends the message to the event_route exposed by xhttp.

In general, the HTTP handling inside Kamailio mostly makes use of the existing 
SIP parser, since there two protocols are grammatically similar.

— Alex

> On Aug 30, 2022, at 3:38 AM, Mahmood Alkhalil  
> wrote:
>
> Hi Alex,
>
> Thanks for the link, I've tried both of them, the old config which is 5 years 
> old now is not working and i think it contains old config parameters that are 
> not valid on latest Kamailio, the second file which is 17 months old which 
> seems to be written with kamailio 5.x in mind seems ok but i cannot work out 
> where is the websocket port number actually defined, would really appreciate 
> a small guidance about that,
>
> Mahmood Alkhalil.
> From: sr-users  on behalf of Alex 
> Balashov 
> Sent: Monday, August 29, 2022 5:08 PM
> To: Kamailio (SER) - Users Mailing List 
> Subject: Re: [SR-Users] Websockets Configuration
>
> Hi,
>
> I think these will be useful to you:
>
> https://github.com/kamailio/kamailio/tree/master/misc/examples/webrtc
>
> — Alex
>
> > On Aug 29, 2022, at 9:04 AM, Mahmood Alkhalil 
> >  wrote:
> >
> > Hi,
> >
> > I'm trying to configure kamailio to register users over websockets, but i 
> > am not able to find any working configuration around, am new to kamailio.
> >
> > as far as i understand now, xhttp will handle the HTTP GET requests, i am 
> > not sure how to configure xhttp port number, cannot find parameters in the 
> > module manual, i found multiple sample configs but none of them is working, 
> > am using JsSip client.
> >
> > if someone can guide me with a link to a working config and that i can 
> > start from.
> > __
> > Kamailio - Users Mailing List - Non Commercial Discussions
> >  * sr-users@lists.kamailio.org
> > Important: keep the mailing list in the recipients, do not reply only to 
> > the sender!
> > Edit mailing list options or unsubscribe:
> >  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
>
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>  * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users