[SR-Users] Carrier Route Module

2017-04-07 Thread Tyler Preder
I am new to Kamailio. I've got the Carrier Route module up and running, but I'd like to match on scan_prefix length and not just the scan_prefix digits. Stated a little differently, I would like to define the scan_prefix and how many digits to expect after the scan_prefix. I am hoping that wi

[SR-Users] How do i build MSRP chat bot?

2017-04-07 Thread Pranathi Venkatayogi
I would like to place the customer connecting via SIP/MSRP on hold until I find the right destination. What is the best way to do this? One idea is to write a MSRP bot. Does anyone know how to go about this? Other smart ideas? Thanks, Pranathi Venkatayogi System Developer II (520) 745-9447 x44

Re: [SR-Users] Using $var inside textops function

2017-04-07 Thread Daniel-Constantin Mierla
Hello, great! Btw, check also diaplan module, it can be used for matching only if substitution/replacement expressions are not provided -- I think there were enhancements to allow variables in matching expressions and you can keep everything in database, but with caching at runtime for speeding u

Re: [SR-Users] Using $var inside textops function

2017-04-07 Thread Olli Attila
Hello, Yes, this does the trick. Thank you. --Olli Daniel-Constantin Mierla kirjoitti 2017-04-07 15:42: Hello, I asked because some headers can appear more than once. For From header, try directly with regexp operator '=~', like: if($hdr(From) =~ $var(MYVARIABLE)) { } It should work, if

Re: [SR-Users] Using $var inside textops function

2017-04-07 Thread Daniel-Constantin Mierla
Hello, I asked because some headers can appear more than once. For From header, try directly with regexp operator '=~', like: if($hdr(From) =~ $var(MYVARIABLE)) { } It should work, if not let me know. Cheers, Daniel On 07.04.17 14:36, Olli Attila wrote: > Hello, > > In this case From header

Re: [SR-Users] Using $var inside textops function

2017-04-07 Thread Olli Attila
Hello, In this case From header only but it might also be handy to compare to other headers as well. --Olli Daniel-Constantin Mierla kirjoitti 2017-04-07 15:33: Hello, the search_hf() is accepting only static regexp as parameter at this moment. Do you want to match only the From header

Re: [SR-Users] Using $var inside textops function

2017-04-07 Thread Daniel-Constantin Mierla
Hello, the search_hf() is accepting only static regexp as parameter at this moment. Do you want to match only the From header in this case, or there could be the case of another header as well? Cheers, Daniel On 07.04.17 14:25, Olli Attila wrote: > Hello, > > Is it possible to use variables in

[SR-Users] Using $var inside textops function

2017-04-07 Thread Olli Attila
Hello, Is it possible to use variables inside a textops search_hf function? I am trying to compare variable content against From header content and return true or false. I tried the following statement but with no luck: search_hf("From", "$var(MYVARIABLE)", "f") { ... } If this cannot be do

[SR-Users] Planning next IRC devel meeting - Apr 20, 2017

2017-04-07 Thread Daniel-Constantin Mierla
Hello, probably it is the time to have another IRC devel meeting to discuss the plans for the project and the roadmap to next major release, v5.1. First proposed date would be Apr 20, with secondary options for Apr 24 or 25, but other dates can be taken in consideration if more convenient for a c

Re: [SR-Users] Via header with i attribute

2017-04-07 Thread Daniel-Constantin Mierla
On 07.04.17 10:29, Daniel Tryba wrote: > On Thu, Apr 06, 2017 at 06:52:55PM +0200, DanB wrote: >> Many thanks again for premium support as always ;). >> Will get back to them since I understand Kamailio is RFC compatible on this >> one. > Out of curiosity, what type of Avaya PBX are youy having p

Re: [SR-Users] Via header with i attribute

2017-04-07 Thread Daniel Tryba
On Thu, Apr 06, 2017 at 06:52:55PM +0200, DanB wrote: > Many thanks again for premium support as always ;). > Will get back to them since I understand Kamailio is RFC compatible on this > one. Out of curiosity, what type of Avaya PBX are youy having problems with? I only have seen IP Offices on my