Re: [OpenSIPS-Users] Presence BLF with linksys SPA

2010-03-04 Thread Angel Marin
On 02/03/10 19:04, vallimamod abdullah wrote: I am trying to implement presence with opensips 1.6.0-notls and linksys spa942 firmware 6.1.5(a). On the phone side, I have configured an idle line with blf (fnc=blf;sub=2...@$proxy;nme=2036) On server side, I am using the presence_dialoginfo.so

Re: [OpenSIPS-Users] Access to statistics variables from within script

2010-03-04 Thread Bogdan-Andrei Iancu
Paweł, this can be simpler done with an external script that runs on cron and periodically fetch the stats you need (via opensipsctl fifo get_statistics), dump the values somewhere and resets them (via opensipsctl fifo reset_statistics - http://www.opensips.org/Resources/DocsCoreMi16#toc11).

[OpenSIPS-Users] Asterisk and OpenSIPS load_balancer selected destination

2010-03-04 Thread rajib deka
Hello all, We are using asterisk as an outbound dialer and OpenSIPS for load balancing the calls between different SIP Gateways. Is there anyway to get the selected destination (by load_balancer) at asterisk end or may be from asterisk Manager Intergace or dialplan. The scenario is as follows,

[OpenSIPS-Users] rewritehost using avp

2010-03-04 Thread Eldad Ran
I have to rewrite host by a value that I extract from a DB, stored in an $avp, but the rewritehost function won't accpet it as it expects a string, I've checked the $avp type and it is a string, is there any way to go around this? The Error: Mar 2 14:45:11 [16996] CRITICAL:core:yyerror: parse

Re: [OpenSIPS-Users] rewritehost using avp

2010-03-04 Thread Bogdan-Andrei Iancu
Hi Eldad, The rewritehost function does not accept variables. Better use directly the variables to set a new IP in RURI: $rd = $avp(s:IP); See: http://www.opensips.org/Resources/DocsCoreVar16#toc56 Regards, Bogdan Eldad Ran wrote: I have to rewrite host by a value that I extract from a

Re: [OpenSIPS-Users] Users Digest, Vol 19, Issue 80

2010-03-04 Thread Ahmed Munir
Hi, Thanks for your reply, I've copied dictionary.opensips to /etc/freeradius directory and added few lines in it after that when I make the call I'm getting this same error as mentioned in my previous mail earlier, I even copied the dictionary.freeradius to /etc/clientradius_ng directory as

Re: [OpenSIPS-Users] Getting Error When Configuring OpenSIPS + FreeRadius

2010-03-04 Thread Ahmed Munir
Hi, Thanks for your reply, I've copied dictionary.opensips to /etc/freeradius directory and added few lines in it after that when I make the call I'm getting this same error as mentioned in my previous mail earlier, I even copied the dictionary.freeradius to /etc/clientradius_ng directory as

Re: [OpenSIPS-Users] Access to statistics variables from within script

2010-03-04 Thread Richard Revels
Most likely this is where Bogdan is headed but, if you only want to increment and reset some variables in the script there are global vars available to do that with. cfgutils module. #first a var that is shared across all processes modparam(cfgutils, shvset, didtracker=i:0) #now one that will

Re: [OpenSIPS-Users] Access to statistics variables from within script

2010-03-04 Thread Richard Revels
Or you could do this too. : On Mar 4, 2010, at 5:48 AM, Bogdan-Andrei Iancu wrote: Paweł, this can be simpler done with an external script that runs on cron and periodically fetch the stats you need (via opensipsctl fifo get_statistics), dump the values somewhere and resets them (via

Re: [OpenSIPS-Users] Access to statistics variables from within script

2010-03-04 Thread Bogdan-Andrei Iancu
Hi Richard, 1 important comment here - the global vars are something more powerful than statistic vars. And of course, they come with more penalties. Operating with the global vars requires internal locking (over the variable) - this may lead to a general slowdown of opensips as all the procs

Re: [OpenSIPS-Users] Access to statistics variables from within script

2010-03-04 Thread Richard Revels
Good to remember. Thank you. I normally spend tons of time thinking about how and why I'm accessing the database and file system and no time thinking about how I'm manipulating variables in script. While we are on this subject, I've always wondered about something, but not enough to test

Re: [OpenSIPS-Users] [RFC] What repo to use for 2.0 ?

2010-03-04 Thread Brett Nemeroff
Bogdan, Thanks for the link. I have to say after looking it over, git does look very nice. I do wonder, however, if conflict resolution is a bigger deal with a DVCS? -Brett On Wed, Mar 3, 2010 at 12:27 PM, Bogdan-Andrei Iancu bog...@voice-system.ro wrote: Hi Brett, if you look here

Re: [OpenSIPS-Users] [RFC] What repo to use for 2.0 ?

2010-03-04 Thread Brett Nemeroff
Hey, I know this is outside of the scope of opensips.. but does git support keyword substitutions? Thanks, Brett On Tue, Mar 2, 2010 at 12:18 PM, Bogdan-Andrei Iancu bog...@voice-system.ro wrote: Hi everyone, As we are getting closed to first working code for OpenSIPS 2.0 (a proto core

Re: [OpenSIPS-Users] Presence BLF with linksys SPA

2010-03-04 Thread vallimamod abdullah
On March 3, 2010 6:44:25 PM CEST, Ovidiu Sas o...@voipembedded.com wrote: You need to create a dialog for calls between users involved in dialog presence *and* you will also need mark the dialogs that will generate PUBLISH: dialoginfo_set(). See:

[OpenSIPS-Users] Planning release 1.6.2

2010-03-04 Thread Bogdan-Andrei Iancu
Hi all, Following the new release policy (see http://www.opensips.org/Development/Development), the next release is 1.6.2 - it will not be minor as it will include new enhancement (relative to 1.6.1 ) and not only bug fixes. The plan is to have the 1.6.2 out next Thursday (11st of March). We

Re: [OpenSIPS-Users] Asterisk and OpenSIPS load_balancer selected destination

2010-03-04 Thread Bogdan-Andrei Iancu
Hi Rajib, First, if you send an email addressed to the list (with a new topic), please do not CC me personally ! Now, regarding to your question - Asterisk will see in the 200 OK that it will receive the IP of the GW in the contact hdr. This is by default, so nothing to change to have it.

Re: [OpenSIPS-Users] Getting Error When Configuring OpenSIPS + FreeRadius

2010-03-04 Thread Bogdan-Andrei Iancu
Hi Ahmed, Do you see in any RADIUS dictionary the Source-IP AVP ? if yes, please post here its definition. Regards, Bogdan Ahmed Munir wrote: Hi, Thanks for your reply, I've copied dictionary.opensips to /etc/freeradius directory and added few lines in it after that when I make the

Re: [OpenSIPS-Users] Access to statistics variables from within script

2010-03-04 Thread Bogdan-Andrei Iancu
Hi Richard, definitely there is a difference , but never tried to quantify it - of course, we can make a simple script to loop 10 times and search for an AVP in a list of 100 AVPs. But as searching for an AVP is pure CPU, the question is how relevant is this difference relative to a DB

Re: [OpenSIPS-Users] Getting Error When Configuring OpenSIPS + FreeRadius

2010-03-04 Thread Norman Brandinger
I've got the following (among other attributes) defined in a local.dictionary file: ATTRIBUTE Source-IP 214 string If it's added to opensips.dictionary, then it no longer needs to be in my local.dictionary. Regards, Norm Bogdan-Andrei Iancu wrote: Hi Ahmed, Do you

Re: [OpenSIPS-Users] [RFC] What repo to use for 2.0 ?

2010-03-04 Thread Brett Nemeroff
Yeah.. I tried looking around for it, but all I could find was a bunch of posts where people said it was a horrible idea. I understand the problems with keyword expansion, I'd still like to use it. The explanations of how to go around using keyword expansion with file hashes and post commit

[OpenSIPS-Users] Performing math functions in OpenSIPs

2010-03-04 Thread Brad Bendy
Hello List, Im trying to do some math functions, ive tried a few different ways and get either invalid string operands or no value in right expression, ive tried the following: $avp(i:70) is set to say .005 $avp(i:55) = $avp(i:70) * (6 / 100); $avp(i:55) = ($avp(i:70) * (6 / 100)); $avp(i:55) =

Re: [OpenSIPS-Users] Performing math functions in OpenSIPs

2010-03-04 Thread Bogdan-Andrei Iancu
Hi Brad, The arithmetic ops do work only with integer values (no floats). Also be sure that the assignment to the avp you use was done as integer: $avp(i:1) = 3 ; and not like: $avp(i:1) = 3 ; Regards, Bogdan Brad Bendy wrote: Hello List, Im trying to do some math functions, ive

Re: [OpenSIPS-Users] Performing math functions in OpenSIPs

2010-03-04 Thread Stanisław Pitucha
On 04.03.2010 20:05, Brad Bendy wrote: That makes since now, we had a float actually. At this time no way to work with floats at all right? There's always a workaround :) $avp(i:55) = $avp(i:70) * .006; $avp(i:55) = $avp(i:70) * 6; Just treat i:55 as if it was multiplied by 1000. It seems

Re: [OpenSIPS-Users] Performing math functions in OpenSIPs

2010-03-04 Thread Brad Bendy
Yeah, that's exactly what I just did. Works like a champ, little confusing on the eyes when your use to seeing 5 digit decimals, but it gets the job done! Thanks for the suggestion. On Thu, 2010-03-04 at 20:23 +, Stanisław Pitucha wrote: On 04.03.2010 20:05, Brad Bendy wrote: That makes

Re: [OpenSIPS-Users] RES: ERROR: Error opening OpenSIPS's FIFO /tmp/opensips_fifo

2010-03-04 Thread Alejandro Recarey
That fixed it, thanks for the help!!! Regards, Alex On Mon, Mar 1, 2010 at 8:46 PM, Flavio E. Goncalves fla...@voffice.com.br wrote: Add the following parameter modparam(mi_fifo, fifo_mode,0666) Just in case, check your opensipsctlrc file. This file controls where opensipsctl finds the

Re: [OpenSIPS-Users] [OpenSIPS-RLS Module] Cannot receive NOTIFY updates

2010-03-04 Thread Patrice Dalle
Hi, About the problem I reported earlier I made some progress and found out that there is an error in the method rls_handle_notify. That's probably why I do not see any NOTIFY with presence state information. I see the following error: DBG:rls:rls_handle_notify: no dialog match found in hash

Re: [OpenSIPS-Users] [RFC] What repo to use for 2.0 ?

2010-03-04 Thread Bogdan-Andrei Iancu
Hi Brett, you mean http://www.gelato.unsw.edu.au/archives/git/0610/28891.html To be honest I also like the keyword substitution (the ID stuff, as I can see quite fast how changed and when a file for the last time). On the other hand, I understand the reasons for not having such an idiotic