Re: [SR-Users] regular expression question

2016-12-09 Thread Brandon Armstead
if(!($ua =~ "")){ On Fri, Dec 9, 2016 at 7:04 AM Satish Patel wrote: > I am trying to block SIP scanner so i am trying to use following logic > > only allow "My-UserAgent" and block rest but its throwing error, but > > if i use =~ regular expression which works! why negative match > > doesn't wo

[SR-Users] msilo timestamp

2016-12-09 Thread Slava Bendersky
Hello Everyone, What format stored inc_time in msilo module ? I am trying convert it to human readable format, but time looks UTC SELECT FROM_UNIXTIME($(xavp(dbquery[$var(i)]=>inc_time)), '%M %D %Y %h:%i:%s') Slava. ___ SIP Express Router (SER) an

Re: [SR-Users] Accessing SDP changes

2016-12-09 Thread Carsten Bock
Hi Pete, you could try the following: sdp_remove_transport("RTP/SAVP"); msg_apply_changes(); // from textopsx sdp_get("$avp(foo)"); xlog("$avp(foo)"); I believe, that should do the job. Thanks, Carsten 2016-12-09 16:17 GMT+01:00 Pete Kelly : > Hi > > I am using Kamailio 4.4. and calling the fu

[SR-Users] Accessing SDP changes

2016-12-09 Thread Pete Kelly
Hi I am using Kamailio 4.4. and calling the function sdp_remove_transport in order to remove some SRTP media lines. The function works (of course!) however I would like to get access to the modified SDP within the cfg. I thought this would do the trick: sdp_remove_transport("RTP/SAVP"); sdp_get

[SR-Users] regular expression question

2016-12-09 Thread Satish Patel
I am trying to block SIP scanner so i am trying to use following logic only allow "My-UserAgent" and block rest but its throwing error, but if i use =~ regular expression which works! why negative match doesn't work? if($ua !~ "(My-UserAgent") { xlog("L_INFO","On more scriptkid

Re: [SR-Users] Error using Siremis 4.3.0 with Kamailio 4.4 and PHP 7

2016-12-09 Thread Daniel-Constantin Mierla
The patch was committed -- try with latest master branch for siremis and see if works now Cheers, Daniel On 09/12/2016 11:00, Daniel-Constantin Mierla wrote: > > While testing, I found an issue with quoting the tables for sql > queries, as newer mysql versions introduced new set of reserved words

Re: [SR-Users] Kamailio TM - t_set_fr

2016-12-09 Thread Daniel-Constantin Mierla
Hello, hmm, strange -- so you say that in some cases when 100 is received the expiration timer works as expected, other times not? I am trying to identify a pattern of the situation, because there is nothing obvious I could spot being wrong. Cheers, Daniel On 08/12/2016 19:33, José Seabra wrote

Re: [SR-Users] Asterisk Security Advisory (AST-2016-009)

2016-12-09 Thread Daniel-Constantin Mierla
Hello, thanks, very useful! Cheers, Daniel On 09/12/2016 00:02, Matthew Jordan wrote: > Hey all - > > The Asterisk project just released a security advisory for a security > vulnerability in which Asterisk using chan_sip with a proxy can allow > for unauthenticated calls. This affects all suppo

Re: [SR-Users] Error using Siremis 4.3.0 with Kamailio 4.4 and PHP 7

2016-12-09 Thread Daniel-Constantin Mierla
While testing, I found an issue with quoting the tables for sql queries, as newer mysql versions introduced new set of reserved words, among them the 'group', which is used as table name by siremis. A patch is under way. Cheers, Daniel On 08/12/2016 21:30, Diogenes Aviles wrote: > I'm using Sir