Re: [SR-Users] Removing parameters from user part of URI

2015-06-15 Thread Alex Balashov
‎I was under the impression that as long as the parameters have a value (key=value), they can appear anywhere. But I should double-check before making that proclamation. -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel

Re: [SR-Users] Removing parameters from user part of URI

2015-06-15 Thread Daniel-Constantin Mierla
On 15/06/15 15:18, Alex Hermann wrote: > On Monday 15 June 2015, Alex Balashov wrote: >> On 06/15/2015 04:20 AM, Alex Hermann wrote: >>> $(rU{select,0,;}) will always select the username with all parameters >>> stripped. >> Will it? What if the parameters precede the username, i.e. >> >> sip:

Re: [SR-Users] Removing parameters from user part of URI

2015-06-15 Thread Alex Hermann
On Monday 15 June 2015, Alex Balashov wrote: > On 06/15/2015 04:20 AM, Alex Hermann wrote: > > $(rU{select,0,;}) will always select the username with all parameters > > stripped. > > Will it? What if the parameters precede the username, i.e. > > sip:param1=hyz;param2;abc;user@host I have nev

Re: [SR-Users] Removing parameters from user part of URI

2015-06-15 Thread Alex Balashov
On 06/15/2015 04:20 AM, Alex Hermann wrote: On Friday 12 June 2015, Alex Balashov wrote: Sure, but that presumes that I know the position of the parameter and the number of parameters. Why would you need to know that? I'm looking for a generic approach to lob off all parameters. $(rU{sele

Re: [SR-Users] Removing parameters from user part of URI

2015-06-15 Thread Alex Hermann
On Friday 12 June 2015, Alex Balashov wrote: > Sure, but that presumes that I know the position of the parameter and the > number of parameters. Why would you need to know that? > I'm looking for a generic approach to lob off all parameters. $(rU{select,0,;}) will always select the username wit

Re: [SR-Users] Removing parameters from user part of URI

2015-06-12 Thread Alex Balashov
There's nothing to apologise for, but I am curious for grammatical clarification.  What does one call such parameters? They're neither URI parameters nor header parameters. And how does one refer to the core user particle in this case? -- Alex Balashov | Principal | Evariste Systems LLC 303 Per

Re: [SR-Users] Removing parameters from user part of URI

2015-06-12 Thread Fred Posner
Even tel2sip shows it as a valid uri. http://kamailio.org/docs/modules/4.2.x/modules/siputils.html#siputils.f.tel2sip I again apologize. Fred Posner The Palner Group, Inc. http://www.palner.com (web) +1-503-914-0999 (direct) On 06/12/2015 02:52 PM, Alex Balashov wrote: > > On 06/12/2015 02:43

Re: [SR-Users] Removing parameters from user part of URI

2015-06-12 Thread Alex Balashov
On 06/12/2015 02:43 PM, Fred Posner wrote: I stand corrected. I'm not sure if these artefacts are an idiosyncrasy of conversion of tel: URIs to sip:, as 'cic' is also part of the ABNF layout in RFC 4694, which The following syntax specification uses the Augmented Backus-Naur Form (A

Re: [SR-Users] Removing parameters from user part of URI

2015-06-12 Thread Fred Posner
I stand corrected. Fred Posner The Palner Group, Inc. http://www.palner.com (web) +1-503-914-0999 (direct) On 06/12/2015 02:41 PM, Alex Balashov wrote: > Another example: > > http://www.dialogic.com/webhelp/IMG1010/10.3.3ER2/WebHelp/Description/Interworking/SIP_Carrier_Identification_Code.htm >

Re: [SR-Users] Removing parameters from user part of URI

2015-06-12 Thread Alex Balashov
Another example: http://www.dialogic.com/webhelp/IMG1010/10.3.3ER2/WebHelp/Description/Interworking/SIP_Carrier_Identification_Code.htm -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-800-250-5920 (toll-free) / +1

Re: [SR-Users] Removing parameters from user part of URI

2015-06-12 Thread Fred Posner
> Sent: Friday, June 12, 2015 14:07 > To: sr-users@lists.sip-router.org > Reply To: Kamailio (SER) - Users Mailing List > Subject: Re: [SR-Users] Removing parameters from user part of URI > >> could, grammatically speaking, precede the user. > > So now that I re-read your exampl

Re: [SR-Users] Removing parameters from user part of URI

2015-06-12 Thread Alex Balashov
: Re: [SR-Users] Removing parameters from user part of URI > could, grammatically speaking, precede the user. So now that I re-read your example... of a bad uri... I apologize for not reading it well the first time. > INVITE sip:4045551212;param=xyz@domain:port SIP/2.0 I think the only way

Re: [SR-Users] Removing parameters from user part of URI

2015-06-12 Thread Fred Posner
671 (direct) > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ > > Sent from my BlackBerry. > Original Message > From: Juha Heinanen > Sent: Friday, June 12, 2015 12:37 > To: Kamailio (SER) - Users Mailing List > Reply To: Kamailio (SER) - Users Mailing Li

Re: [SR-Users] Removing parameters from user part of URI

2015-06-12 Thread Alex Balashov
(direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ Sent from my BlackBerry.   Original Message   From: Juha Heinanen Sent: Friday, June 12, 2015 12:37 To: Kamailio (SER) - Users Mailing List Reply To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Removing parameters from

Re: [SR-Users] Removing parameters from user part of URI

2015-06-12 Thread Juha Heinanen
Alex Balashov writes: > Sure, but that presumes that I know the position of the parameter and > the number of parameters. I'm looking for a generic approach to lob > off all parameters. ok, i just thought about your example. in that case perhaps you need to use one of regexp functions in textops

Re: [SR-Users] Removing parameters from user part of URI

2015-06-12 Thread Alex Balashov
Could.,.. was just hoping for something less involved. -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

Re: [SR-Users] Removing parameters from user part of URI

2015-06-12 Thread Fred Posner
You could always to a search replace for the uri based on {uri.params} (replacing with nothing). Fred Posner The Palner Group, Inc. http://www.palner.com (web) +1-503-914-0999 (direct) On 06/12/2015 12:24 PM, Alex Balashov wrote: > Sure, but that presumes that I know the position of the parameter

Re: [SR-Users] Removing parameters from user part of URI

2015-06-12 Thread Alex Balashov
Sure, but that presumes that I know the position of the parameter and the number of parameters. I'm looking for a generic approach to lob off all parameters. -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-800-250