Re: [OpenSIPS-Users] remove_hf does not remove header

2015-02-12 Thread Podrigal, Aron
in the script to the SIP message will get propagated. Best Regards, Vlad Paiu OpenSIPS Developerhttp://www.opensips-solutions.com On 12.02.2015 11:22, Podrigal, Aron wrote: Hi, I'm want to remove the Remote-Party_ID header, but it does not work. if (is_present_hf(Remote-Party-ID

Re: [OpenSIPS-Users] remove_hf does not remove header

2015-02-12 Thread Podrigal, Aron
/sbin/opensips[41305]: not removed Feb 12 15:05:35 aron /usr/local/opensips_outbound/sbin/opensips[41305]: Remote-Party-ID is present And still shows the header in the capture On Thu, Feb 12, 2015 at 2:57 PM, Podrigal, Aron ar...@guaranteedplus.com wrote: I thought so, but it does show

[OpenSIPS-Users] remove_hf does not remove header

2015-02-12 Thread Podrigal, Aron
Hi, I'm want to remove the Remote-Party_ID header, but it does not work. if (is_present_hf(Remote-Party-ID)) { xlog(removing Remote-Party-ID); remove_hf(Remote-Party-ID); } if (is_present_hf(Remote-Party-ID)) xlog(Remote-Party-ID is still present); I tried this in several places,

Re: [OpenSIPS-Users] WebSocket Support in OpenSIPS 2.1

2015-03-17 Thread Podrigal, Aron
Thanks, great news! On Mar 17, 2015 3:00 PM, Răzvan Crainea raz...@opensips.org wrote: Hello, all! Aaand, we're finally making it official: OpenSIPS 2.1 will have *WebSockets* support! Are you planning to use (or perhaps you're already using) WebRTC based SIP clients, but you are having

Re: [OpenSIPS-Users] mail regarding the opensips startup.

2015-03-23 Thread Podrigal, Aron
Do you have spaces in the db dsn? On Mar 23, 2015 8:10 AM, Komal Sharma komal.sha...@aricent.com wrote: Hi, I am getting the following error while starting the opensips: root@cdrtool:/etc/opensips# opensipsctl start database engine 'MYSQL' loaded Control engine 'FIFO' loaded

Re: [OpenSIPS-Users] default value for timerec column in dialplan table

2015-02-22 Thread Podrigal, Aron
You should be able to have this successful with a empty value. Can you post your config and values you have for this column? On Fri, Feb 20, 2015 at 4:01 PM, Jayesh Nambiar jayesh1...@gmail.com wrote: Hi, I recently upgraded to 2.1.0 from 1.11 and my dialplans wouldn't load because of the

Re: [OpenSIPS-Users] How to create certificates for TLS?

2015-02-22 Thread Podrigal, Aron
#1 You should compile opensips with TLS=1. You can create those certificates with openssl and use some cipher with Diffie–Hellman so that will and configure the corresponding tls_dh_params setting in opensips config in order to use PFS. opensips provides some easy commands to create certificates

Re: [OpenSIPS-Users] Presence route[handle_presence]

2015-02-22 Thread Podrigal, Aron
The reason for the transaction is because of re-transmission. Otherwise, In the case where the original reply from opensips has been lost on the network. the client will re-transmit the SUBSCRIBE and will be seen as duplicate CSEQ by presence module with 412 error code. On Sat, Feb 21, 2015 at

Re: [OpenSIPS-Users] Run as other user than root?

2015-02-22 Thread Podrigal, Aron
From what I remember out of my head , the user and group are specified in the init script /etc/init.d/opensips On Sun, Feb 22, 2015 at 5:21 AM, Karl Karpfen karlkarpfe...@gmail.com wrote: Hi, how can I configure OpenSIPS to run with the privileges of a different user than root? The method

Re: [OpenSIPS-Users] Boolean values from DB and avp

2015-02-23 Thread Podrigal, Aron
just as a side note, in postgres boolean values maybe stored as either case 't' 'T' 'f' 'F' , in most cases it will be the lower case version. On Feb 23, 2015 9:59 AM, Vlad Paiu vladp...@opensips.org wrote: Hello, In OpenSIPS, AVPs can have either integer or string values. For boolean

Re: [OpenSIPS-Users] How to create certificates for TLS?

2015-02-23 Thread Podrigal, Aron
does not create this file and opensips userCERT requires a username that also does not correspond to this file. 2015-02-22 13:00 GMT+01:00 Podrigal, Aron ar...@guaranteedplus.com: #1 You should compile opensips with TLS=1. You can create those certificates with openssl and use some cipher

Re: [OpenSIPS-Users] transformation on uri

2015-02-25 Thread Podrigal, Aron
it to 1.11 if needed. Let us know if does the trick for you. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developerhttp://www.opensips-solutions.com On 24.02.2015 23:13, Podrigal, Aron wrote: Thanks, the construct_uri() function is very helpful. But how would I extract the sip|sips

[OpenSIPS-Users] transformation on uri

2015-02-23 Thread Podrigal, Aron
Hi all, When doing transformations on a uri, how can I efficiently get the type of uri 'sip|sips|tel' ? usually my transformations involve stripping/prepending digits from/to the user part of the uri. I don't want to rewrite the entire uri. because I want to preserve the sips|sip part as it was

[OpenSIPS-Users] Opensips complaints error non-existent line number

2015-02-24 Thread Podrigal, Aron
Something weird. opensips complaints about my config file makes sense :) but reports the lie numbers that is totally out of scope and does not exist Feb 24 22:33:44 [43929] CRITICAL:core:yyerror: parse error in config file /usr/local/opensips_outbound/etc/opensips/opensips.cfg, line 443745,

Re: [OpenSIPS-Users] opensips 1.11 postgress DB BUG

2015-04-21 Thread Podrigal, Aron
It executes a series of sql files ( I don't remember the dir location where its stored I think somewhere in the share dir) for each file it asks for the password. On Tue, Apr 21, 2015 at 1:44 PM, Satish Patel satish@gmail.com wrote: I am installing opensips 1.11.3 with postgress DB but i

Re: [OpenSIPS-Users] does dispatcher use cache?

2015-04-21 Thread Podrigal, Aron
Yes, it does have cache. and there is a opensipsctl dispatcher reload to reload from db. On Tue, Apr 21, 2015 at 4:28 PM, Satish Patel satish@gmail.com wrote: Does dispatcher module use internal cache? Because we have many group and i don't want opensips hit everytime SQL table to read IP

Re: [OpenSIPS-Users] opensips 1.11 postgress DB BUG

2015-04-21 Thread Podrigal, Aron
: can't we make password less? just like MySQL? On Tue, Apr 21, 2015 at 1:56 PM, Podrigal, Aron ar...@guaranteedplus.com wrote: It executes a series of sql files ( I don't remember the dir location where its stored I think somewhere in the share dir) for each file it asks for the password

Re: [OpenSIPS-Users] opensips-cp dispatcher issue

2015-04-21 Thread Podrigal, Aron
status can be either Enabled, Disabled, Probing so what you see in the web interface is I guess that it is not disabled. Correct me if I'm wrong. On Tue, Apr 21, 2015 at 6:44 PM, Satish Patel satish@gmail.com wrote: In command line it is showing root@dispatcher1:/var/www# opensipsctl

Re: [OpenSIPS-Users] In dialog failure route

2015-04-24 Thread Podrigal, Aron
Thanks. On Fri, Apr 24, 2015 at 2:01 PM, Eric Tamme e...@uphreak.com wrote: As I said, failure route is transaction based, so any transaction failure will trigger it. see http://www.opensips.org/Documentation/Script-Routes-2-2#toc3 On 04/24/2015 11:57 AM, Podrigal, Aron wrote

Re: [OpenSIPS-Users] In dialog failure route

2015-04-24 Thread Podrigal, Aron
code =300 failure route will be called on receipt of the response. -Eric On 04/24/2015 11:22 AM, Podrigal, Aron wrote: Hi, What is the right way to handle failures for sequential requests. So if Media Server #1 hangs, I wanna create a new transaction route to Media Server #2

Re: [OpenSIPS-Users] In dialog failure route

2015-04-24 Thread Podrigal, Aron
I guess I need to set fr_timer . On Fri, Apr 24, 2015 at 1:57 PM, Podrigal, Aron ar...@guaranteedplus.com wrote: The problem is that there is no response coming back, media server 1 crashed. On Fri, Apr 24, 2015 at 1:54 PM, Eric Tamme e...@uphreak.com wrote: failure_route is called based

[OpenSIPS-Users] In dialog failure route

2015-04-24 Thread Podrigal, Aron
Hi, What is the right way to handle failures for sequential requests. So if Media Server #1 hangs, I wanna create a new transaction route to Media Server #2. -- Aron Podrigal - //Be happy :-) ___ Users mailing list Users@lists.opensips.org

Re: [OpenSIPS-Users] ANIs check for source number

2015-04-30 Thread Podrigal, Aron
You can use the dialplan module to check against valid ANIs and reply with a 403. On Thu, Apr 30, 2015 at 12:09 PM, Satish Patel satish@gmail.com wrote: Question: what happen if client send call using random string in RPID/PAI/From header (non-standard ANIs) How to verify ANIs for those

Re: [OpenSIPS-Users] ANIs check for source number

2015-04-30 Thread Podrigal, Aron
/From: header? On Thu, Apr 30, 2015 at 12:30 PM, Podrigal, Aron ar...@guaranteedplus.com wrote: You can use the dialplan module to check against valid ANIs and reply with a 403. On Thu, Apr 30, 2015 at 12:09 PM, Satish Patel satish@gmail.com wrote: Question: what happen if client

Re: [OpenSIPS-Users] ANIs check for source number

2015-04-30 Thread Podrigal, Aron
yes of course you can use just a regex. That would need to match any standard ^\+?[1-9]\d{1,14}$ BTW, 011 (as countrycode plus number) I think is invalid form, the stranded allows ANI to be up to 15 digit and does not have a min length. ___ Users

Re: [OpenSIPS-Users] ANIs check for source number

2015-04-30 Thread Podrigal, Aron
: Podrigal, Aron Reply-To: OpenSIPS users mailling list Date: Thursday, April 30, 2015 at 1:20 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] ANIs check for source number yes of course you can use just a regex. That would need to match any standard ^\+?[1-9]\d{1,14}$ BTW, 011

Re: [OpenSIPS-Users] Opensips restart and hanging process (dialogs?)

2015-05-07 Thread Podrigal, Aron
What distro are u using? This sounds more like a problem in the init script, where it tries to restart opensips before the last process has existed, which then fails to start. Try adding - - retry option to start-stop-daemon. On May 7, 2015 4:01 AM, Max Mühlbronner m...@42com.com wrote:

Re: [OpenSIPS-Users] regex in if statement

2015-04-15 Thread Podrigal, Aron
Yes. http://www.opensips.org/Documentation/Script-Statements On Apr 15, 2015 10:30 PM, Terrance Devor ter.de...@gmail.com wrote: Hello Everyone, Is it possible to do regex in conditional statements (ie, if). What I am trying to do is something like: if($si=~192\.168\.1\.*) To get all

[OpenSIPS-Users] Share database between opensips instances

2015-06-08 Thread Podrigal, Aron
Can I use the same dialog tables for 2 seperate opensips instances one proxying in front of the other? -- Aron Podrigal - //Be happy :-) ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

[OpenSIPS-Users] Drop SIP 407 / 401 / 403 reply

2015-06-03 Thread Podrigal, Aron
Hi, When I receive a 407 / 401 / 403 response from my carrier, I want to handle that as a failure and trigger the failure route without fowarding the 40x reply upstream. How would I do that? -- Aron Podrigal - //Be happy :-) ___ Users mailing list

Re: [OpenSIPS-Users] Route_to_gw not pushing gw_id to the first index of avp

2015-07-01 Thread Podrigal, Aron
I guess pushing to the last index of the avp is what's expected. But how did you retrieve the gw_id from is_from_gw, did you use an explicit index? On Jul 1, 2015 8:16 AM, Patrick Wakano pwak...@gmail.com wrote: Hello Opensips list, When using the route_to_gw() function, I noticed that the

Re: [OpenSIPS-Users] Manually self generate failure

2015-06-30 Thread Podrigal, Aron
30, 2015 at 8:14 PM, Podrigal, Aron ar...@guaranteedplus.com wrote: Is there a way i can manually make a request fail so that my failure route would be invoked? I know this may sound weird, but i encountered some scenarios that this implementation came to my mind. So i want to know

[OpenSIPS-Users] Manually self generate failure

2015-06-30 Thread Podrigal, Aron
Is there a way i can manually make a request fail so that my failure route would be invoked? I know this may sound weird, but i encountered some scenarios that this implementation came to my mind. So i want to know if this is possible. ___ Users mailing

Re: [OpenSIPS-Users] Route_to_gw not pushing gw_id to the first index of avp

2015-07-01 Thread Podrigal, Aron
(dr_gw_id)[1]) or I set $avp(dr_gw_id) to null before calling route_to_gw() (which is what I am doing now). On Wed, Jul 1, 2015 at 9:50 AM, Podrigal, Aron ar...@guaranteedplus.com wrote: I guess pushing to the last index of the avp is what's expected. But how did you retrieve the gw_id

Re: [OpenSIPS-Users] ERROR:core:tls_accept: New TLS connection from IP failed to accept: rejected by client

2015-07-05 Thread Podrigal, Aron
Just a teaser. The client has rejected to provide a certificate as requested by opensips :) On Jul 5, 2015 3:37 AM, Nabeel nabeelshik...@gmail.com wrote: This error was resolved by setting 'tls_require_client_certificate = 0'. My SIP client does not send any client certificate, so this option

[OpenSIPS-Users] $var(NAME) = NULL; what is the value ?

2015-07-02 Thread Podrigal, Aron
According to the documentation here [1] the value of $var(NAME) = NULL; should be the integer 0. However when I test it with xlog, it does print null. [1] http://www.opensips.org/Documentation/Script-CoreVar#toc1 -- Aron Podrigal - //Be happy :-) ___

Re: [OpenSIPS-Users] $var(NAME) = NULL; what is the value ?

2015-07-02 Thread Podrigal, Aron
from a database or something else. Jarrod On Jul 2, 2015, at 9:20 PM, Podrigal, Aron ar...@guaranteedplus.com wrote: According to the documentation here [1] the value of $var(NAME) = NULL; should be the integer 0. However when I test it with xlog, it does print null. [1] http

Re: [OpenSIPS-Users] Report Log Level for xlog() statements

2015-07-02 Thread Podrigal, Aron
://www.opensips-solutions.com On 02.07.2015 20:00, Podrigal, Aron wrote: Is there a param to set that all syslog messages written by xlog() statements should be prefixed with the LOG_LEVEL:msg just like all core logging ? -- Aron Podrigal - //Be happy

Re: [OpenSIPS-Users] Route_to_gw not pushing gw_id to the first index of avp

2015-07-02 Thread Podrigal, Aron
by the route_to_gw function. Perhaps this is a bug. On Jul 2, 2015 8:34 AM, Newlin, Ben ben.new...@inin.com wrote: Yes, accessing the AVP without an index returns the same value as accessing with index 0. Ben Newlin From: Podrigal, Aron Reply-To: OpenSIPS users mailling list Date: Wednesday

[OpenSIPS-Users] Report Log Level for xlog() statements

2015-07-02 Thread Podrigal, Aron
Is there a param to set that all syslog messages written by xlog() statements should be prefixed with the LOG_LEVEL:msg just like all core logging ? -- Aron Podrigal - //Be happy :-) ___ Users mailing list Users@lists.opensips.org

Re: [OpenSIPS-Users] send_reply vs t_reply

2015-07-02 Thread Podrigal, Aron
-solutions.com On 30.06.2015 19:35, Podrigal, Aron wrote: I would like to get some details on the difference if one uses send_reply or t_reply for a sip message. Is there any major differences where the reply sent from, and what function is used? Thank you. -- Aron Podrigal - //Be happy

[OpenSIPS-Users] mi command to show dr rules

2015-07-06 Thread Podrigal, Aron
Assuming opensips drouting module caches the dr rules, how can I get the current cached rules? I only see dr gw_status dr carrier_status Tnx -- Aron Podrigal - //Be happy :-) ___ Users mailing list Users@lists.opensips.org

Re: [OpenSIPS-Users] mi command to show dr rules

2015-07-06 Thread Podrigal, Aron
On 06.07.2015 20:44, Podrigal, Aron wrote: Assuming opensips drouting module caches the dr rules, how can I get the current cached rules? I only see dr gw_status dr carrier_status Tnx -- Aron Podrigal - //Be happy :-) ___ Users mailing

[OpenSIPS-Users] ACC account failed incoming calls

2015-07-06 Thread Podrigal, Aron
Hi, How can I have accounting for incoming requests which get a failure response like 404? I've set the modparam(acc, failed_transaction_flag, DO_ACC) and it is set in REQUEST_ROUTE, but I see no records in db. -- Aron Podrigal - //Be happy :-) ___

Re: [OpenSIPS-Users] ACC account failed incoming calls

2015-07-06 Thread Podrigal, Aron
I can use acc_db_request() to manually do accounting before exiting the script. But is this the only way? On Mon, Jul 6, 2015 at 8:19 PM, Podrigal, Aron ar...@guaranteedplus.com wrote: Hi, How can I have accounting for incoming requests which get a failure response like 404? I've set

[OpenSIPS-Users] Script Flags or Variables

2015-07-02 Thread Podrigal, Aron
When should I use Script Flags and when should I use Pseudo Variables? Rather what I would like to know, is there any performance difference whether a Script Flag is used or a Var? -- Aron Podrigal - //Be happy :-) ___ Users mailing list

Re: [OpenSIPS-Users] Route_to_gw not pushing gw_id to the first index of avp

2015-07-01 Thread Podrigal, Aron
] Route_to_gw not pushing gw_id to the first index of avp No, that is wrong. If no index is given, the first value will be returned.” [1] [1] http://www.opensips.org/Documentation/Script-CoreVar-1-11#toc2 Ben Newlin From: Podrigal, Aron Reply-To: OpenSIPS users mailling list Date

Re: [OpenSIPS-Users] fifo t_uac_dlg syntax

2015-08-20 Thread Podrigal, Aron
are u sure about the syntax errors not caused by your shell? On Aug 20, 2015 11:10 AM, Ralf_Neumann_hgw ralf_neumann_...@web.de wrote: Hi Bogdan, the NOTIFY is used to switch on/off different services (warmline/hotline) on the SIP client. I get syntax errors if i use the characters like

[OpenSIPS-Users] send_reply vs t_reply

2015-06-30 Thread Podrigal, Aron
I would like to get some details on the difference if one uses send_reply or t_reply for a sip message. Is there any major differences where the reply sent from, and what function is used? Thank you. -- Aron Podrigal - //Be happy :-) ___ Users

Re: [OpenSIPS-Users] Route_to_gw not pushing gw_id to the first index of avp

2015-07-29 Thread Podrigal, Aron
and we should not touch it. Is that right? Any reason for that? Regards, Patrick On Thu, Jul 2, 2015 at 1:27 PM, Podrigal, Aron ar...@guaranteedplus.com wrote: This is more for the dev people. But I would assume that there is some pointer set to the current avp index and thats the slot which

Re: [OpenSIPS-Users] OpenSIPS 2.1 on Gcloud

2015-07-29 Thread Podrigal, Aron
Do you have load loadmodule proto_udp.so ? On Sun, Jul 12, 2015 at 2:02 AM, Asheem Parikh ash...@outlook.com wrote: Hi, I'm writing to request help to deploy OpenSIPS on a Gcloud instance with a regular softphone app. All has been installed using a minimal residential script as shown in the

Re: [OpenSIPS-Users] OpenSIPS 2.1 on Gcloud

2015-07-29 Thread Podrigal, Aron
ngrep -tqd any -W byline port 5060 can help you here. On Wed, Jul 29, 2015 at 11:18 AM, Podrigal, Aron ar...@guaranteedplus.com wrote: Do you have load loadmodule proto_udp.so ? On Sun, Jul 12, 2015 at 2:02 AM, Asheem Parikh ash...@outlook.com wrote: Hi, I'm writing to request help

Re: [OpenSIPS-Users] TLS - How exactly decide to use require_cert equals to 1 or 0 ? The SIP client must trust the SIP server, not vice-versa.

2015-07-29 Thread Podrigal, Aron
0 means *do not* force the client to present a certificate where as 1 means *do* ask the client to present a cert. rejected by client interprets as so, Opensips asks the client I need you to present a certificate and the client rejects that request. Cheers. On Wed, Jul 29, 2015 at 9:51 AM,

Re: [OpenSIPS-Users] Setting up TLS on 2.1

2015-07-21 Thread Podrigal, Aron
Can you post the log output when log level debug=4 ? On Tue, Jul 21, 2015 at 11:33 AM, Venkatesh Macha linuxven...@gmail.com wrote: HI Sebastian, Are you able to fix the above issue(*/cakey.pem #012Retry (2 left) (check password case) ). I am also facing same problem. Thanks, Venkatesh

Re: [OpenSIPS-Users] Problem: INVITE port mismatch

2015-07-13 Thread Podrigal, Aron
for the answer 2015-07-13 13:39 GMT+02:00 Podrigal, Aron ar...@guaranteedplus.com: Have you tried using force_send_socket()? On Jul 13, 2015 5:35 AM, Albert Vallespi Ofertas avallespi.ofer...@gmail.com wrote: Hello again, We have re-checked the case, and I think there is no relation

Re: [OpenSIPS-Users] Problem: INVITE port mismatch

2015-07-13 Thread Podrigal, Aron
Have you tried using force_send_socket()? On Jul 13, 2015 5:35 AM, Albert Vallespi Ofertas avallespi.ofer...@gmail.com wrote: Hello again, We have re-checked the case, and I think there is no relation with user=phone parameter in the r-uri. We have verified that in our scenario, forwarding

Re: [OpenSIPS-Users] Can I use 'UPDATE' in avp_db_query ?

2015-11-03 Thread Podrigal, Aron
Try removing the second argument *"$avp(CallMaxDuration)"* from avp_db_query() Because the database backend does not return any results. On Tue, Nov 3, 2015 at 8:50 AM, Rodrigo Pimenta Carvalho wrote: > Dear OpenSIPS-users, > > > In the OpenSIPS database I have created some

Re: [OpenSIPS-Users] Can I use 'UPDATE' in avp_db_query ?

2015-11-03 Thread Podrigal, Aron
Try applying this patch [1]. I also created a pull request for this, However, I did not test this in any way. Please report back how that worked. On Tue, Nov 3, 2015 at 1:11 PM, Podrigal, Aron <ar...@guaranteedplus.com> wrote: > Here [1] is where your issue is. That it simply executes

Re: [OpenSIPS-Users] Can I use 'UPDATE' in avp_db_query ?

2015-11-03 Thread Podrigal, Aron
>> RODRIGO PIMENTA CARVALHO >> Inatel Competence Center >> Software >> Ph: +55 35 3471 9200 RAMAL 979 >> >> >> -- >> *De:* users-boun...@lists.opensips.org <users-boun...@lists.opensips.org> >> em nome de P

Re: [OpenSIPS-Users] Can I use 'UPDATE' in avp_db_query ?

2015-11-03 Thread Podrigal, Aron
/opensips/pull/689 On Tue, Nov 3, 2015 at 1:31 PM, Podrigal, Aron <ar...@guaranteedplus.com> wrote: > Try applying this patch [1]. I also created a pull request for this, > However, I did not test this in any way. Please report back how that worked. > > On Tue, Nov 3, 2015 at 1:11

Re: [OpenSIPS-Users] Can I use 'UPDATE' in avp_db_query ?

2015-11-03 Thread Podrigal, Aron
GO PIMENTA CARVALHO > Inatel Competence Center > Software > Ph: +55 35 3471 9200 RAMAL 979 > > > -- > *De:* users-boun...@lists.opensips.org <users-boun...@lists.opensips.org> > em nome de Podrigal, Aron <ar...@guaranteedplus.com> > *Enviado:* te

Re: [OpenSIPS-Users] Can I use 'UPDATE' in avp_db_query ?

2015-11-03 Thread Podrigal, Aron
Here is how to compile and install cd /usr/local/src/ git clone https://github.com/ar45/opensips -b fix_sqlite_delete_update_avp_query cd opensips make menuconfig Then configure your compile options and install location and compile it. On Tue, Nov 3, 2015 at 2:25 PM, Podrigal, Aron <

Re: [OpenSIPS-Users] Can I use 'UPDATE' in avp_db_query ?

2015-11-03 Thread Podrigal, Aron
gt; > > RODRIGO PIMENTA CARVALHO > Inatel Competence Center > Software > Ph: +55 35 3471 9200 RAMAL 979 > > > -- > *De:* users-boun...@lists.opensips.org <users-boun...@lists.opensips.org> > em nome de Podrigal, Aron <ar...@guaran

Re: [OpenSIPS-Users] compile error in OpenSips 2.1.1

2015-10-18 Thread Podrigal, Aron
Add your db url config for dialog module modparam("dialog", "db_url", "dbdriver://username:password@dbhost/dbname") On Oct 17, 2015 6:28 PM, "Dragomir Haralambiev" wrote: > Hello, > > I install Opensios 2.1.1 and setup Mysql DB with > ./opensipsdbctl create > > when setup: >

Re: [OpenSIPS-Users] session flag

2015-10-08 Thread Podrigal, Aron
If you use avp db write back = 2 the avp's are kept in memory and are syncd to the database on demand or when process is idle. Avp's is does exactly that, and is across the entire dialog. Can you explain why avp's are inefficient for your use case? On Oct 8, 2015 7:35 PM, "Tito Cumpen"

Re: [OpenSIPS-Users] Using AVP_DB_Querry

2015-10-07 Thread Podrigal, Aron
Oh, actually, I see now. Change your query to avp_db_query("select PBX from pbx where CustomerContext like '%" + $tu + "%' ", "$avp(PBX)"); In addition to that, you may consider using $tu{s.escape_common} to avoid sql injections. On Oct 7, 2015 4:38 AM, "Podrig

Re: [OpenSIPS-Users] /tmp/opensips_fifo error , massive error message

2015-10-07 Thread Podrigal, Aron
This error message means that you exceeded the max open file descriptors allowed on your system. Check your kernel configs and why you are exceeding your current limit. On Oct 7, 2015 4:22 AM, "chiu ching cheng" wrote: > Dear man : > > I install opensips 2.1.1 , and I fix

Re: [OpenSIPS-Users] Using AVP_DB_Querry

2015-10-07 Thread Podrigal, Aron
The syntax looks ok. Can you confirm that avp_db_query actually returned a value. Also what is the value stored in the avp(PBX) maybe you got NULL. On Oct 6, 2015 4:41 PM, "Travis Manson-Drake" wrote: > Hello Everyone, > > > > Hope you’re all doing well, > > > > As per

[OpenSIPS-Users] avp_db_query empty string results in NULL [BUG?]

2015-10-13 Thread Podrigal, Aron
Hi there, I noticed some unexpected behavior with avp_db_query which is, if a varchar column has a empty string the avp value will be NULL. Has anyone experienced such behavior or a workaround. I use db_mysql driver. Regards -- Aron Podrigal - '101', '1110010', '110', '1101110'

Re: [OpenSIPS-Users] avp_db_query empty string results in NULL [BUG?]

2015-10-13 Thread Podrigal, Aron
avp_val.s.len<0) goto next_avp; break; case DB_INT: On Tue, Oct 13, 2015 at 4:10 PM, Podrigal, Aron <ar...@guaranteedplus.com> wrote: > Hi there, > > I noticed some unexpected behavior with avp_

[OpenSIPS-Users] (uri==myself)

2015-07-08 Thread Podrigal, Aron
I wasn't able to find satisfactory documentation on what exactly this check does. So here is my questions about it 1. Does it check user name in uri? 2. Does it check the host and port or only host part? 3. if the above is true, then what would happen if I have another proxy

[OpenSIPS-Users] Strange behavior when changing acc db params

2015-07-09 Thread Podrigal, Aron
Hi, I noticed strange data (column data swapped into wrong columns) in acc table after making a change to modparam(acc,db_extra,) and modparam(acc,multi_leg_info,). After analyzing the data it turned out to be happening to all calls that were in dialog at the time I restarted opensips. Is this

Re: [OpenSIPS-Users] No Route headers found

2015-07-10 Thread Podrigal, Aron
Can you provide a sip capture? On Jul 10, 2015 3:04 AM, Nabeel nabeelshik...@gmail.com wrote: Hi, I am able to register my SIP clients to OpenSIPS, but when I attempt to make a call, the call does not connect to the other client. I see the call screen open and close briefly on the dialling

Re: [OpenSIPS-Users] No Route headers found

2015-07-11 Thread Podrigal, Aron
Hello Nabeel, I was expecting to get a textual file with all sip headers like the output of ngrep -tqd any -W byline I did not have a pc to be able to decode this pcap with tshark. I'll try to give a look at it tomorrow. Just a note, try adding a transport=tls to contact. On Jul 11, 2015 2:59

[OpenSIPS-Users] More details on core variables

2015-07-07 Thread Podrigal, Aron
I am looking for details on core variables for when (in which route) to expect it to have what value, for example $du in failure_route I've got always it to be null (I use dispatcher module). The documentation only says what type of value a pv has, but does not say what contexts they might

Re: [OpenSIPS-Users] Opensips 1.11 on Centos 6.6, running but not listening?

2015-07-12 Thread Podrigal, Aron
From what I have seen in the past, I believe that your client has some garbage in the beginning of the message, so opensips would say that it could't parse the first line. Whereas wireshark is a bit smarter to skip over it. On Sun, Jul 12, 2015 at 2:30 PM, John Nash john.nash...@gmail.com wrote:

Re: [OpenSIPS-Users] Unable to parse msg -- weird

2015-07-12 Thread Podrigal, Aron
Yes, opensips is a bit strict on the message received. Opensips does not try to fix broken messages (just like broken xml, throw fire) as soon as it is not what it should really look like, it will error. More specifically this is what bites you

Re: [OpenSIPS-Users] Restart=always and After=mysql.service

2015-09-07 Thread Podrigal, Aron
Opensips still uses sysv LSB init scripts. So there won't be any .service installed automatically. However I think you can generate a .service file for opensips after installing the sysv init script by issuing the following command. systemctl daemon-reload On Sep 7, 2015 2:15 PM, "Nabeel"

Re: [OpenSIPS-Users] Restart=always and After=mysql.service

2015-09-07 Thread Podrigal, Aron
/OpenSIPS/opensips/blob/master/packaging/debian/opensips.service On Mon, Sep 7, 2015 at 5:45 PM, Podrigal, Aron <ar...@guaranteedplus.com> wrote: > Opensips still uses sysv LSB init scripts. So there won't be any .service > installed automatically. However I think you can generate a .

[OpenSIPS-Users] How to get the line number in script

2015-09-10 Thread Podrigal, Aron
Hi, Is there a way to get the line number within the opensips script. I want to use that in xlog statements and in replies. Thanks -- Aron Podrigal - '101', '1110010', '110', '1101110' '101', '110', '1100100', '1110010', '1101001', '1100111', '111', '1101100' P: '2b',

Re: [OpenSIPS-Users] Restart=always and After=mysql.service

2015-09-15 Thread Podrigal, Aron
Does restoring your selinux context solve the problem. chcon --type=bin_t /usr/sbin/opensips If that helps make it permanent by restorecon -R -v /usr/sbin/opensips On Sep 15, 2015 9:47 PM, "Nabeel" wrote: > I tried that service file on CentOS 7 but got the following

Re: [OpenSIPS-Users] Flexible daemon name for logging

2015-10-01 Thread Podrigal, Aron
Yes have a look here http://www.opensips.org/Documentation/Script-CoreParameters-2-1#toc64 Hello, I will have multiple Opensips instances running on one box. Is it possible to indicate the daemon name Opensips uses when logging? Can I specify something other than, or in addition to, the default

Re: [OpenSIPS-Users] How to convert acc table in a kind of circular buffer?

2015-10-01 Thread Podrigal, Aron
Use database triggers for that. On Oct 1, 2015 7:44 AM, "Rodrigo Pimenta Carvalho" wrote: > > > Dear OpenSIPS-users, > > > A requirement of my current project says that the list of registered > calls, from table acc, must have no more than X records. So, I need an way > of

Re: [OpenSIPS-Users] GDB error: opensips: No such file or directory.

2015-10-01 Thread Podrigal, Aron
Because can wasn't able to locate the file as you got the first error no such file or directory, of course it can't find any debuting symbols too. On Oct 1, 2015 11:30 AM, "surya" wrote: > I deployed from source (1.8.4). > > Regards, > Surya > > > > -- > View this

Re: [OpenSIPS-Users] Restart=always and After=mysql.service

2015-09-19 Thread Podrigal, Aron
gt;> -- >> -- Unit opensips.service has failed. >> -- >> -- The result is failed. >> Sep 20 05:21:45 server1.sipdomain.com systemd[1]: Unit opensips.service >> entered failed state. > > > > On 20 September 2015 at 05:12, Podrigal, Aron <ar...@g

Re: [OpenSIPS-Users] Restart=always and After=mysql.service

2015-09-19 Thread Podrigal, Aron
Can you post the strace output by running sudo strace -ff -o /tmp/opensips_strace_output systemctl start opensips.service cat /tmp/opensips_strace_output* That will help see where the error occurs. On Sat, Sep 19, 2015 at 11:21 PM, Nabeel wrote: > Why can't the

Re: [OpenSIPS-Users] Multiple sockets and force_send_socket

2015-09-24 Thread Podrigal, Aron
This issue has been raised on this list a number of times, either it is a bug or a feature. However, you need to explicitly provide the `proto` to force_send_socket (based on `transport=tls` and direction of your message). I know this has been documented and will even give you an error in versions

Re: [OpenSIPS-Users] Restart=always and After=mysql.service

2015-09-19 Thread Podrigal, Aron
pastebin.com/gnesw4tW > > On 20 September 2015 at 04:30, Podrigal, Aron <ar...@guaranteedplus.com> > wrote: > >> Can you post the strace output by running >> >> sudo strace -ff -o /tmp/opensips_strace_output systemctl start >> opensips.service >> cat

Re: [OpenSIPS-Users] A doubt on count of child processes, children parameter in cfg.

2016-02-11 Thread Podrigal, Aron
Hint: Do you listen on more then one ip or proto? On Feb 11, 2016 7:44 PM, "surya" wrote: > Hi, > > My understanding about the *children* parameter in the cfg file is that the > same number of child process will be created. For ex: if I write > *children=1* only 1

Re: [OpenSIPS-Users] [NEW] Share data in your distributed platform using the clusterer module

2016-03-29 Thread Podrigal, Aron
Congrats!! You guys are amazing! On Tue, Mar 29, 2016 at 2:48 PM, Răzvan Crainea wrote: > Hello everybody! > > Sharing dialog information, ratelimit values, or user location information > in an OpenSIPS-based distributed platform can now be done in a very easy > and

[OpenSIPS-Users] Escape literal dollar sign $ in xlog

2017-02-16 Thread Podrigal, Aron
Hi all, How can I escape a literal $ inside a string in a xlog statement (Or in any place where strings get transformed) ? Thanks! -- - Aron Podrigal ___ Users mailing list Users@lists.opensips.org

Re: [OpenSIPS-Users] Escape literal dollar sign $ in xlog

2017-02-16 Thread Podrigal, Aron
OK, I got it just duplicating it, using 2 dollar signs as "This is a literal $$\n". Cheers! On Thu, Feb 16, 2017 at 4:08 PM, Podrigal, Aron <ar...@guaranteedplus.com> wrote: > Hi all, > > How can I escape a literal $ inside a string in a xlog statement (Or in >

[OpenSIPS-Users] Recover TCP Connections after restart

2018-05-01 Thread Podrigal, Aron
Hi everyone I hope you are having a good time @opensipsSummit I wish I would be able to attend. Can anyone suggest how to handle graceful restart of opensips without effecting mid dialog transactions over TCP? Evert time I restart opensips I have at least a few clients that fail to send their

[OpenSIPS-Users] Forking sip MESSAGE to multiple endpoints

2018-11-14 Thread Podrigal, Aron
Hi. I want to fork a MESSAGE request to multiple endpoints and handle the delivery status for each on reply. currently I append_branch() for each additional destination. But the problem is, that if any branch received a 200 reply, any other branch which did not relay the request yet (ie socket

[OpenSIPS-Users] async() with postgres

2018-11-29 Thread Podrigal, Aron
Hi Seems like the db_postgres module does not support async operations. Any plans for that? -- - Aron Podrigal ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Re: [OpenSIPS-Users] Forking sip MESSAGE to multiple endpoints

2018-11-16 Thread Podrigal, Aron
tp://www.opensips.org/html/docs/modules/2.4.x/tm.html#func_t_relay > but it works only for INVITEs :D > > Regards, > > Bogdan-Andrei Iancu > > OpenSIPS Founder and Developer > http://www.opensips-solutions.com > OpenSIPS Bootcamp 2018 > http://opensips.org/training/OpenS

Re: [OpenSIPS-Users] IMPORTANT: OpenSIPS Summit 2020 - what's next ?

2020-03-18 Thread Podrigal, Aron
I wouldn't be able to join if it is between September 13 and October 13  On Wed, Mar 18, 2020, 2:33 PM Bogdan-Andrei Iancu wrote: > May I ask why? :) > > Bogdan-Andrei Iancu > > OpenSIPS Founder and Developer > https://www.opensips-solutions.com > OpenSIPS Summit, Amsterdam, May 2020 >

Re: [OpenSIPS-Users] is this a bug? acc module setting empty string for unset fields

2021-05-10 Thread Podrigal, Aron
Hi Liviu, I have had the same issue for a long time. I opened a github issue/request for this [1]. Using integer columns has benefit for me since I am using extra fields for stats and I am doing arithmetic on them. Casting those text columns to integers is not efficient. With the empty strings it

Re: [OpenSIPS-Users] Opensips segfault after adding acc_extra field

2021-11-17 Thread Podrigal, Aron
ash > > Regards, > > Bogdan-Andrei Iancu > > OpenSIPS Founder and Developer > https://www.opensips-solutions.com > OpenSIPS eBootcamp 2021 > https://opensips.org/training/OpenSIPS_eBootcamp_2021/ > > On 11/10/21 9:57 PM, Podrigal, Aron wrote: > > Hi

Re: [OpenSIPS-Users] Opensips segfault after adding acc_extra field

2021-11-10 Thread Podrigal, Aron
difficult to deploy changes to acc... On Wed, Nov 3, 2021, 8:17 PM Podrigal, Aron wrote: > Hi > > I added another field to my acc_extra and after restarting opensips, it > kept crashing right away after the restart. > > Here are the relevant log lines > > I got a thousa

  1   2   >