Re: [SR-Users] Parsing Contact Port Field

2019-11-19 Thread Henning Westerholt
services – https://gilawa.com Kamailio Merchandising – https://skalatan.de/merchandising -Original Message- From: sr-users On Behalf Of Alex Balashov Sent: Monday, November 18, 2019 4:12 PM To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] Parsing Contact Port Field I looked here

Re: [SR-Users] Parsing Contact Port Field

2019-11-18 Thread Michael Iedema
> Oops. No, it’s not a bug, it’s just that the URI isn’t the only value present > in $ct. > > Try $(ct{nameaddr.uri}{uri.host}) Yup, that fixed it. Thanks again! I have another question about how I’m applying these to some routing logic but I’ll start a new thread for that in a bit.

Re: [SR-Users] Parsing Contact Port Field

2019-11-18 Thread Alex Balashov
:13 PM > To: Henning Westerholt > Cc: Kamailio (SER) - Users Mailing List > Subject: Re: [SR-Users] Parsing Contact Port Field > > Ah, okay. Sorry, I didn’t know! > > And yes, the select docs are in the wiki, but they are not linked from > /w/documentation, right? I too

Re: [SR-Users] Parsing Contact Port Field

2019-11-18 Thread Henning Westerholt
mailio Merchandising – https://skalatan.de/merchandising From: Alex Balashov Sent: Monday, November 18, 2019 3:13 PM To: Henning Westerholt Cc: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Parsing Contact Port Field Ah, okay. Sorry, I didn’t know! And yes, the select docs are in th

Re: [SR-Users] Parsing Contact Port Field

2019-11-18 Thread Alex Balashov
bably also necessary. >>> >>> You are somehow wrong about the documentation, it is also in the wiki, but >>> documented without much explanations.  >>> >>> https://www.kamailio.org/wiki/cookbooks/devel/selects >>> >>> Cheers, >>

Re: [SR-Users] Parsing Contact Port Field

2019-11-18 Thread Michael Iedema
; >> https://www.kamailio.org/wiki/cookbooks/devel/selects >> >> Cheers, >> >> Henning >> >> -- >> Henning Westerholt – https://skalatan.de/blog/ >> Kamailio services – https://gilawa.com >> Kamailio Merchandising – https://skalatan.d

Re: [SR-Users] Parsing Contact Port Field

2019-11-18 Thread Alex Balashov
gt; > Henning > > -- > Henning Westerholt – https://skalatan.de/blog/ > Kamailio services – https://gilawa.com > Kamailio Merchandising – https://skalatan.de/merchandising > > From: sr-users On Behalf Of Alex > Balashov > Sent: Monday, November 18, 2019 2:37 PM >

Re: [SR-Users] Parsing Contact Port Field

2019-11-18 Thread Henning Westerholt
com/> Kamailio Merchandising – https://skalatan.de/merchandising From: sr-users On Behalf Of Alex Balashov Sent: Monday, November 18, 2019 2:37 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Parsing Contact Port Field Just be careful with selects as they are a construct importe

Re: [SR-Users] Parsing Contact Port Field

2019-11-18 Thread Alex Balashov
Just be careful with selects as they are a construct imported from SER as part of the sip-router integration of 2010 (what a fascinating time to have been alive!) Like some other SER constructs, they are not widely used and so I am not sure what the maintenance and support commitment to them

Re: [SR-Users] Parsing Contact Port Field

2019-11-18 Thread Michael Iedema
Hi Sergiu, > @contact.uri.hostport might be what you are looking for. > > For more: > http://www.kamailio.org/wiki/cookbooks/devel/selects That worked perfectly, thanks! For the other beginners out there, here are two snippets for posterity: == TO LOG == xlog("L_INFO", "contact.uri.host =

Re: [SR-Users] Parsing Contact Port Field

2019-11-12 Thread Sergiu Pojoga
Hi Michael, *@contact.uri.hostport* might be what you are looking for. For more: http://www.kamailio.org/wiki/cookbooks/devel/selects Cheers. --Sergiu On Tue, Nov 12, 2019 at 8:32 AM Michael Iedema wrote: > Hello everyone, > > I have a potentially silly beginners question: how can I parse

[SR-Users] Parsing Contact Port Field

2019-11-12 Thread Michael Iedema
Hello everyone, I have a potentially silly beginners question: how can I parse the contact port field and act on it in my routing logic? I know that the $ct variable contains the entire contact header and I can print it in an xlog() call. However, I’d like to do something like the following