[SR-Users] Re: Assistance Needed: Converting 11-Digit US Numbers to E.164 in Kamailio

2024-05-31 Thread Pavan Kumar via sr-users
Thank you, everyone, for your responses. Benoît, thank you for providing the sample code. My concern is that the code may become complex as it needs to be both transaction and dialog aware. For example, it needs to be transaction-aware when sending a 100 or 200 response back and conversion from

[SR-Users] Re: Assistance Needed: Converting 11-Digit US Numbers to E.164 in Kamailio

2024-05-31 Thread Ben Kaufman via sr-users
> the phonenum module is pretty decent for helping with NANP numbers and deciphering if one is let’s say US vs Canada vs Jamaica, etc. Absolutely. And if his use case is to actually get the political country, it's a great choice. With that said, I'm guessing that in his case the vendor wants

[SR-Users] Re: Parsing Error with SIP 607 Response

2024-05-31 Thread Who AmI via sr-users
Ah ok, think I misunderstood what you were asking here. You can use the PV $rs in a condition for the 607 (or anything >400 etc) to hit rtpengine_manage() block, just put it in your failure route. The block can be used in any route:

[SR-Users] Re: Parsing Error with SIP 607 Response

2024-05-31 Thread Alex Balashov via sr-users
RTPEngine will time out a call if it ceases to receive RTP from both endpoints. You can lower this timeout to something much more stringent, and that will help shorten the life cycle of ports. > On May 31, 2024, at 9:49 AM, Ghulam Mustafa via sr-users > wrote: > > I'm wondering how to handle

[SR-Users] Re: Assistance Needed: Converting 11-Digit US Numbers to E.164 in Kamailio

2024-05-31 Thread Greg Troxel via sr-users
Ben Kaufman via sr-users writes: >> US numbers are fixed lenght 11 digits? > > The USA is in the North American Numbering Plan (NANP). This includes USA, > Canada, much of the > Caribbean (Cuba, Jamaica, Barbados for example), some US territories in the > Pacific (Guam, > American

[SR-Users] Re: Parsing Error with SIP 607 Response

2024-05-31 Thread Ghulam Mustafa via sr-users
I'm wondering how to handle situations where downstream send invalid messages. In this case, Kamailio is not able to send DELETE commands to rtpengine due to parsing errors, as a result rtpengine is consuming all available ports and causing instability in our VoIP infrastructure. Do you have any

[SR-Users] Re: Parsing Error with SIP 607 Response

2024-05-31 Thread Who AmI via sr-users
Hi, Nothing is jumping out to me here in the Invite, if this is working for other destinations but not this one then the SIP response might truly be the answer here: 607 - Unwanted - " The user agent(UA) of the called party, based on input from the called party or some UA-internal logic, uses

[SR-Users] Re: Parsing Error with SIP 607 Response

2024-05-31 Thread Muhammad Shafi via sr-users
The Response Reason Phrase is missing in status line, see RFC 3261 section 7.2. Hope this helps. -- Muhammad Shahzad Shafi Tel: +49 176 99 83 10 85 On Fri, May 31, 2024 at 2:57 PM Ghulam Mustafa via sr-users < sr-users@lists.kamailio.org> wrote: > Hello Kamailio Community, > > I'm

[SR-Users] Re: Assistance Needed: Converting 11-Digit US Numbers to E.164 in Kamailio

2024-05-31 Thread Fred Posner via sr-users
> On May 31, 2024, at 9:20 AM, Ben Kaufman via sr-users > wrote: > > Answered in order of easiest answer to most complex: > >> Does it start with a 0? > No. I've never encountered any US number requiring a prefix of "0" nor a US > number being > written that way. > > >> US numbers are

[SR-Users] Re: Parsing Error with SIP 607 Response

2024-05-31 Thread Ghulam Mustafa via sr-users
Yes, it's in response to an INVITE. Here is the complete flow U 10.x.x.xx:5060 -> 21x.xx.x.x:5060 #132 INVITE sip:44x...@21x.xx.x.x;transport=udp SIP/2.0. Record-Route: . Record-Route: . Via: SIP/2.0/UDP 134.xxx.xxx.xx:5060;branch=z9hG4bK344e.71c27ecd75bd8bf9c9a971e5ec472e16.0;i=2. Via:

[SR-Users] Re: Assistance Needed: Converting 11-Digit US Numbers to E.164 in Kamailio

2024-05-31 Thread Ben Kaufman via sr-users
Answered in order of easiest answer to most complex: > Does it start with a 0? No. I've never encountered any US number requiring a prefix of "0" nor a US number being written that way. > US numbers are fixed lenght 11 digits? The USA is in the North American Numbering Plan (NANP).

[SR-Users] Re: Assistance Needed: Converting 11-Digit US Numbers to E.164 in Kamailio

2024-05-31 Thread Ben Kaufman via sr-users
A few points, and reasons why the issue is both more simple and more complex than indicated: 1. The definition of E.164 isn’t clear here. My assumption is that you mean a digit string that starts with a plus character. There is no requirement in the E.164 specification that a leading

[SR-Users] Re: Parsing Error with SIP 607 Response

2024-05-31 Thread Who AmI via sr-users
Hi Mustafa, Ideally we would need the Invite to better understand this, the 607 is in response to the Invite. Whether this is something in the Invite itself or something at the called end we don't know. Thanks, John. On Fri, 31 May 2024 at 13:57, Ghulam Mustafa via sr-users <

[SR-Users] Re: Access avp vars in a cancel? How to pass information from an INVITE to a CANCEL?

2024-05-31 Thread Fred Posner via sr-users
> On May 31, 2024, at 8:35 AM, Alex Balashov via sr-users > wrote: > > >> On May 31, 2024, at 8:09 AM, Benoît Panizzon via sr-users >> wrote: >> >> This would also solve another problem. We have some CPE with limited >> memory which struggle with a long record-route list. > > Indeed, and

[SR-Users] Re: Parsing Error with SIP 607 Response

2024-05-31 Thread Alex Balashov via sr-users
> On May 31, 2024, at 8:39 AM, Ghulam Mustafa via sr-users > wrote: > > SIP/2.0 607. Well, that seems clear enough. ;-) -- Alex Balashov Principal Consultant Evariste Systems LLC Web: https://evaristesys.com Tel: +1-706-510-6800 __

[SR-Users] Re: Parsing Error with SIP 607 Response

2024-05-31 Thread Benoît Panizzon via sr-users
Hi Mustafa > SIP/2.0 607. I didn't check the RFC. But doesnt a reply need to be in the format SIP/2.0 XXX AA Is the text missing after the numerical error code? -- Mit freundlichen Grüssen -Benoît Panizzon- @ HomeOffice und normal erreichbar -- I m p r o W a r e A G-Leiter

[SR-Users] Parsing Error with SIP 607 Response

2024-05-31 Thread Ghulam Mustafa via sr-users
Hello Kamailio Community, I'm encountering a parsing error in Kamailio when receiving a SIP 607 "Unwanted" response. The relevant log entries are: May 31 12:32:09 k-proxy1 /usr/sbin/kamailio[320898]: ERROR: [core/receive.c:378]: receive_msg(): core parsing of SIP message failed

[SR-Users] Re: Access avp vars in a cancel? How to pass information from an INVITE to a CANCEL?

2024-05-31 Thread Alex Balashov via sr-users
> On May 31, 2024, at 8:09 AM, Benoît Panizzon via sr-users > wrote: > > This would also solve another problem. We have some CPE with limited > memory which struggle with a long record-route list. Indeed, and this is why I recommended it. It would solve a larger class of problems, above and

[SR-Users] Re: Access avp vars in a cancel? How to pass information from an INVITE to a CANCEL?

2024-05-31 Thread Benoît Panizzon via sr-users
Hi > > > > > > >data="[sip_h_X-PGPX=${uuid}]sofia/internal/$1@${sendto}"/> application="hangup"/> > > I was not aware it was that simple. Thank you for the education! Indeed. I was considering asterisk as I tend to use what I know. But with Asterisk I would have to add

[SR-Users] Re: Access avp vars in a cancel? How to pass information from an INVITE to a CANCEL?

2024-05-31 Thread Alex Balashov via sr-users
Fred, This is beautiful: I was not aware it was that simple. Thank you for the education! -- Alex > On May 30, 2024, at 6:24 PM, Fred Posner via sr-users > wrote: > > >> On May 30, 2024, at 5:49 PM, Alex Balashov via sr-users >> wrote: >> >> Benoit, >> >>> Snip

[SR-Users] Re: [sr-dev] core dump on AWS with ~4000 TCP sockets

2024-05-31 Thread Henning Westerholt via sr-users
Hello David, please share the usual details, e.g.: * Kamailio version * Operating system version * OpenSSL version Furthermore please try to enable core dumping and have a look to the backtrace. Cheers, Henning Westerholt -- Henning Westerholt – https://skalatan.de/blog/

[SR-Users] Re: Assistance Needed: Converting 11-Digit US Numbers to E.164 in Kamailio

2024-05-31 Thread Supreeth Herle via sr-users
Hi Kumar, Not sure whether this is of any help but you can check out https://kamailio.org/docs/modules/5.9.x/modules/phonenum.html module. BR, Supreeth On Fri, 31 May 2024 at 10:27, Benoît Panizzon via sr-users < sr-users@lists.kamailio.org> wrote: > Hi Kumar > > > Before writing the code, I

[SR-Users] Re: Assistance Needed: Converting 11-Digit US Numbers to E.164 in Kamailio

2024-05-31 Thread Benoît Panizzon via sr-users
Hi Kumar > Before writing the code, I want to know if there is already a > solution to this problem in one of the modules, so that I won't > reinvent the wheel. US numbers are fixed lenght 11 digits? What is the usual representation of a 'local' US number? Does it start with a 0? I do this (to