[SR-Users] Re: replies using the wrong protocol

2024-06-19 Thread smartin114--- via sr-users
I replaced IPs, FYI

200 OK from carrier
SIP/2.0 200 OK
Via:  SIP/2.0/TLS 
KAM_PUB_IP:5061;branch=z9hG4bK18ff.3d856b8b0b007414ab2dec09cbabd574.0;i=a2
Via:  SIP/2.0/TLS 
FS_PUB_IP:5061;received=FS_PUB_IP;rport=56403;branch=z9hG4bKKaee61yyZ98De
From:  "+14388006102" ;tag=XjQ5g4Ze5UaZp
To:  ;tag=gK04d33797
Call-ID: b99c2b65-a827-123d-1984-4201c0a80193
CSeq:  84807919 INVITE
Record-Route:  

Accept:  application/sdp, application/isup, application/dtmf, 
application/dtmf-relay, multipart/mixed
Contact:  
Allow:  
INVITE,ACK,CANCEL,BYE,REGISTER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTIONS,MESSAGE,PUBLISH
Require:  timer
Supported:  timer
Session-Expires:  1800;refresher=uac
Content-Length:324
Content-Disposition:  session; handling=required
Content-Type:  application/sdp

v=0
o=Sonus_UAC 913845 351585 IN IP4 CARRIER_PUB_IP
s=SIP Media Capabilities
c=IN IP4 206.146.100.22
t=0 0
m=audio 33168 RTP/SAVP 0 101
a=crypto:1 AES_CM_128_HMAC_SHA1_80 
inline:LfSgFSVqhXNWMSziOtwpEeYmNu0/kGiyuMVS8VXy
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=ptime:20


ACK Kam is sending

ACK sip:933@CARRIER_PUB_IP:5061 SIP/2.0
Via:  SIP/2.0/UDP 
KAM_PUB_IP:5060;branch=z9hG4bK18ff.f8c56ea9cad44dc10408188224b923cf.0;i=a2
Via:  SIP/2.0/TLS 
FS_PUB_IP:5061;received=FS_PUB_IP;rport=56403;branch=z9hG4bKmK767vF2vjZ0S
Max-Forwards:  69
From:  "+14388006102" ;tag=XjQ5g4Ze5UaZp
To:  ;tag=gK04d33797
Call-ID: b99c2b65-a827-123d-1984-4201c0a80193
CSeq:  84807919 ACK
Contact:  
Content-Length:  0
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: replies using the wrong protocol

2024-06-19 Thread Jon Bonilla (Manwe) via sr-users
El Wed, 19 Jun 2024 19:54:26 -
"sarah.martin--- via sr-users"  escribió:

> I am extremely new at this, but trying to set up TLS with a carrier.  TLS
> connection is good, Invite goes out, we get the 100 and the 200, but
> subsequent messages (ACK and BYE) are being sent with UDP and I cannot figure
> out how to get them to maintain the TLS transport.  Any suggestions?  I think
> this is the section I'm looking for.
> 


What's your contact look like?




-- 
PekePBX, the multitenant PBX solution
https://pekepbx.com


pgpCXco3udTI4.pgp
Description: Firma digital OpenPGP
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] replies using the wrong protocol

2024-06-19 Thread sarah.martin--- via sr-users
I am extremely new at this, but trying to set up TLS with a carrier.  TLS 
connection is good, Invite goes out, we get the 100 and the 200, but subsequent 
messages (ACK and BYE) are being sent with UDP and I cannot figure out how to 
get them to maintain the TLS transport.  Any suggestions?  I think this is the 
section I'm looking for.

# Manage incoming replies in transaction context
onreply_route[MANAGE_REPLY] {
xdbg("incoming reply\n");

if(status=~"[12][0-9][0-9]") {
route(NATMANAGE);
}
if (has_body("application/sdp")) {
xdbg("rtpengine_manage loop-protect MANAGE_REPLY");
#rtpengine_manage("loop-protect");
}
}
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Possibility to print values of Core Keywords in Kamailio configuration file

2024-06-19 Thread sadik.oualla.mohamed--- via sr-users
Hello everyone,

I have a question regarding the usage of core keywords, specifically the 
possibility of printing their values in log messages. While I understand that 
core keywords such as 'dst_port' and 'af' etc... can be accessed directly in if 
conditions, I am interested to know if there is a way to print the values of 
these core keywords for logging purposes.

Thank you.
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Adding custom headers to HTTP server response xhttp

2024-06-19 Thread Sasivarunan via sr-users
HI Ihor
I've tried it already, It doesn't append this header in Http response.

KSR.hdr.*append_to_reply*("Strict-Transport-Security: max-age=63072000");
KSR.xhttp.xhttp_reply("200", "Ok", "text/plain", "working");


On Wed, Jun 19, 2024 at 3:12 PM Ihor Olkhovskyi via sr-users <
sr-users@lists.kamailio.org> wrote:

> Varunan,
>
> Have you tried
> https://www.kamailio.org/docs/modules/devel/modules/textops.html#textops.f.append_to_reply
> before calling * xhttp_reply*?
>
> Cheers,
> Ihor
>
> Le mer. 19 juin 2024 à 08:05, Sasivarunan via sr-users <
> sr-users@lists.kamailio.org> a écrit :
>
>> HI Team,
>> I use tls and xhttp module to enable websocket interface for webrtc
>> client to connect.
>> I wanted to add "Strict-Transport-Security" header to xhttp response to
>> add security. But currently I don't see a way to add it anywhere.
>>
>> I can see only server_header as an option, But this will get added to
>> SIP messages as well.
>> It 'd be great if anybody has a suggestion around this.
>>
>>
>> Thanks
>> Varunan
>> __
>> Kamailio - Users Mailing List - Non Commercial Discussions
>> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
>> Important: keep the mailing list in the recipients, do not reply only to
>> the sender!
>> Edit mailing list options or unsubscribe:
>>
>
>
> --
> Best regards,
> Ihor (Igor)
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Adding custom headers to HTTP server response xhttp

2024-06-19 Thread Ihor Olkhovskyi via sr-users
Varunan,

Have you tried
https://www.kamailio.org/docs/modules/devel/modules/textops.html#textops.f.append_to_reply
before calling * xhttp_reply*?

Cheers,
Ihor

Le mer. 19 juin 2024 à 08:05, Sasivarunan via sr-users <
sr-users@lists.kamailio.org> a écrit :

> HI Team,
> I use tls and xhttp module to enable websocket interface for webrtc client
> to connect.
> I wanted to add "Strict-Transport-Security" header to xhttp response to
> add security. But currently I don't see a way to add it anywhere.
>
> I can see only server_header as an option, But this will get added to SIP
> messages as well.
> It 'd be great if anybody has a suggestion around this.
>
>
> Thanks
> Varunan
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>


-- 
Best regards,
Ihor (Igor)
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: exec concurrency

2024-06-19 Thread Henning Westerholt via sr-users
Hello Jon,

the exec module implementation is not particular efficient. It basically 
creates a pipe to pass the commands to the shell and forks a new process.

I would not recommend it you have more then moderate load on your system, 
and/or need to deal with load spikes.

If you need to execute scripts in the Kamailio context, look to the KEMI 
modules. Otherwise, the asynchronous approach discussed previously is another 
way.

Cheers,

Henning

-- 
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com

> -Original Message-
> From: Jon Bonilla (Manwe) via sr-users 
> Sent: Dienstag, 18. Juni 2024 21:09
> To: Brett Nemeroff ; Kamailio (SER) - Users
> Mailing List 
> Cc: Jon Bonilla (Manwe) 
> Subject: [SR-Users] Re: exec concurrency
> 
> El Tue, 18 Jun 2024 13:54:41 -0500
> Brett Nemeroff  escribió:
> 
> > Just want to add that exec is heavy and slow. I would not recommend it.
> >
> > Is there a reason you want to do this over http-ifying your script and
> > using async?
> >
> >
> 
> Not really. The scripts are provided. Maybe I'm against "http all the things"
> which seems to be what everyone does nowadays.
> Why would http client be lighter than executing a script? That would be a
> design problem, right?
> 
> 
> 
> 
> --
> PekePBX, the multitenant PBX solution
> https://pekepbx.com
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe: