Re: [OpenSIPS-Users] determining interstate or intrastate

2011-12-12 Thread Brad Bendy
Hey Kent, Ive been using memcache for years to do this, just store all the NPAs and have it return the state abbreviation code and then compare, has worked very well for me. On Mon, 2011-12-12 at 13:51 -0500, Kpirlo wrote: > Hey guys, > I was wondering what the best way to determine if an inc

[OpenSIPS-Users] Multiple response codes being sent

2010-08-22 Thread Brad Bendy
Hi, Im having a heck of a time figuring this out: INVITE comes to our switch, we send a INVITE to another proxy that responds with a 302, we parse that 302 in failure route then use a route() command to go to another route block which does some other processing (will send out more INVITE's, do ce

Re: [OpenSIPS-Users] Multiple response codes being sent

2010-08-24 Thread Brad Bendy
your case, but opensips is not sending a > 302 after 200 OK...Maybe you can post the call flow (a SIP trace) from > the SIP server showing the entire scenario. > > Regards, > Bogdan > > Brad Bendy wrote: > > Hi, > > > > Im having a heck of a time figuring this

Re: [OpenSIPS-Users] Multiple response codes being sent

2010-08-24 Thread Brad Bendy
+0300, Bogdan-Andrei Iancu wrote: > Hi Brad, > > I guess you are doing something funny in the script like allowing the > 302 reply to be relaid out, but having the 503 generated by opensips - > by chance, do you send the 503 in stateless mode ? > > Regards, > Bogdan >

Re: [OpenSIPS-Users] Hunt Group with Opensips

2010-08-24 Thread Brad Bendy
I just setup serial hunting and it was pretty easy. We stored the list of users to be called in memcached, counted how many total users need to be called and advanced to the next one in failure_route as needed, set a ring timeout and then have it go to a voicemail server or wherever it needed to g

Re: [OpenSIPS-Users] Hunt Group with Opensips

2010-08-25 Thread Brad Bendy
> > would you be so kind and show a sample config for how you setup the > serial fork? > > > I have to set this up but have no idea where to start. > > > Some sort of template would be great just to give an idea of how this > is done. > > > I should

[OpenSIPS-Users] Loosing DB connection

2010-08-25 Thread Brad Bendy
Hi, Sometimes OpenSIPS losses connection to our database server and starts writing acc entries via flat file. It appears to happen when the DB server is under heavy load. It seems like some sort of timeout or something. Is there a way to have OpenSIPS re connect to the database without having to

Re: [OpenSIPS-Users] Loosing DB connection

2010-08-25 Thread Brad Bendy
I should probably add that im using db_virtual with a single DB server then flat file in failover mode. Ive had this on 1.6.2 and 1.6.1 (using 1.6.2 currently) On Wed, 2010-08-25 at 07:04 -0700, Brad Bendy wrote: > Hi, > > Sometimes OpenSIPS losses connection to our database server a

Re: [OpenSIPS-Users] Hunt Group with Opensips

2010-08-25 Thread Brad Bendy
That would my late night testing and copying code twice :) On Wed, 2010-08-25 at 20:05 -0700, osiris123d wrote: > Deon, > > Just wondering why you set the next hunt number twice in your else > condition?? > > > } else { > #Not the 1st time, let's pull the next in order > $avp(s:hunt_n

Re: [OpenSIPS-Users] Loosing DB connection

2010-08-27 Thread Brad Bendy
perform any testing. Thanks On Fri, 2010-08-27 at 11:00 +0300, Bogdan-Andrei Iancu wrote: > Hi Brad, > > strange, as the db_virtual should try to reconnect to primary DB URL > from time to time. > > I need to run some tests on this... > > Thanks and regards,

Re: [OpenSIPS-Users] Multiple response codes being sent

2010-08-27 Thread Brad Bendy
.so" module and replace the sl_send_reply() for 503 with a > send_reply. > > Regards, > Bogdan > > Brad Bendy wrote: > > Hi Bogdan, > > > > In this case the 503 is being sent from a route block via > > sl_send_reply, then with a exit() after the

[OpenSIPS-Users] rtpproxy in bridge mode

2011-10-11 Thread Brad Bendy
Hi list, Im trying to get a opensips 1.6.4-2 with rtpproxy 1.2.1 to work in bridge mode, calls will get a INVITE from a private network then opensips needs to forward that invite out upstream via a public interface. It appears the issue right now im seeing is the c= in SDP has the IP address twic

Re: [OpenSIPS-Users] rtpproxy in bridge mode

2011-10-12 Thread Brad Bendy
On Tue, 2011-10-11 at 09:20 -0500, Brett Nemeroff wrote: > On Tue, Oct 11, 2011 at 8:39 AM, Brad Bendy > wrote: > > Hi list, > > Im trying to get a opensips 1.6.4-2 with rtpproxy 1.2.1 to > work in bridge mode, calls will get a

[OpenSIPS-Users] acc with MySQL

2009-10-05 Thread Brad Bendy
Hello all, I noticed this morning that it appears when the acc transaction hits MySQL it uses the NOW() function for the date/time fields, BUT that function is the true timestamp when it get committed to the database, I noticed this when running some alter tables this morning and the table was

Re: [OpenSIPS-Users] check_source_address() failures

2009-10-13 Thread Brad Bendy
I know on mine I had to set port to 5060 (5068 in your case) or whatever you want, otherwise it would not work for me. Im sure you can use a * for any port number as well, but I have not tried that. Jeff Pyle wrote: > Hello, > > A request arrives at Opensips 1.6 from address 175.88.228.19:5068

[OpenSIPS-Users] Memcache and increment/decrement

2009-10-19 Thread Brad Bendy
Hi, I know memcache itself has options for to increment and decrement values, does openSIPs have this? Ive looked everywhere and can not find anything, this could be very useful for many types of custom scripts. Thanks ___ Users mailing list Users@

Re: [OpenSIPS-Users] Memcache and increment/decrement

2009-10-19 Thread Brad Bendy
-- Brad Bendy Chief Technical Officer brad.be...@benganetworks.com Benga Networks, LLC. 10115 E. Bell Rd, Ste. 107-451 Scottsdale, AZ 85260-2189 Toll Free:877-44-BENGA Local: 480-970-5200 Cell: 602-550-4004 Fax: 866-852-4468

[OpenSIPS-Users] 1.6 core dump uac_replace_to and uac_replace_from

2009-10-21 Thread Brad Bendy
Hi, Running 1.6 non SVN we are getting random crashes, it appears this is from the uac_replace_from and uac_replace_to, we did not have this problem until we started using these function. Below is the bt from gdb. The only errors we get in the logs are from memcache, which I think are unrelate

Re: [OpenSIPS-Users] 1.6 core dump uac_replace_to and uac_replace_from

2009-10-21 Thread Brad Bendy
, branch=1, request=0x801647020) at t_fwd.c:132 Thanks Bogdan-Andrei Iancu wrote: Hi Brad, Do you use both replace_to and replace_from in the same time ? Do you still have the core file ? could you check in frame 0 for "request" and "request->dst_uri" ? Thanks and

Re: [OpenSIPS-Users] 1.6 core dump uac_replace_to and uac_replace_from

2009-10-21 Thread Brad Bendy
print request print request->dst_uri Regards, Bogdan Brad Bendy wrote: Hi Bogdan, Well, sometimes we do, sometimes we only call or the other, 90% of the time we use both on the same call. I do still have the core, inside of gdb do I need to run a command? When I run "

Re: [OpenSIPS-Users] 1.6 core dump uac_replace_to and uac_replace_from

2009-10-22 Thread Brad Bendy
Hi, Patched is installed now, going to push some load and see if I can crash it. Thanks and ill keep you updated. Bogdan-Andrei Iancu wrote: Brad, Please apply the attached patch and see if it's fixing the problem for you. Regards, Bogdan Brad Bendy wrote: #0 0x000801517b

[OpenSIPS-Users] Memcached errors

2009-11-17 Thread Brad Bendy
Hi list, Ive had these errors since day one when we use memcached, nothing bad happens and memcached works fine, just wondering if anyone else has seen this. ERROR:memcached:wrap_memcached_insert: Failed to insert: ACTION QUEUED ERROR:memcached:wrap_memcached_get: Failed to get: SUCCESS Both in

Re: [OpenSIPS-Users] Memcached errors

2009-11-17 Thread Brad Bendy
wondering :) Thanks On Tue, 2009-11-17 at 08:51 -0600, Brett Nemeroff wrote: > Brad, > > Not sure if it's relevant, but are you calling memcache direct from > your script? and how hard are you hitting it? > > > On Tue, Nov 17, 2009 at 8:19 AM, Brad Bendy >

Re: [OpenSIPS-Users] Memcached errors

2009-11-17 Thread Brad Bendy
Even with that commented out same thing. I upgrade to .34 of libmemcached, no dice still. Bit weird, it works so I guess ill leave it alone! Andrei Dragus wrote: Brad Bendy wrote: ERROR:memcached:wrap_memcached_insert: Failed to insert: ACTION QUEUED

[OpenSIPS-Users] Milisecond precision?

2009-11-22 Thread Brad Bendy
Hi, We use the $Ts function to gather PDD for each call, problem with this is that the number is either high or low. A call could have a PDD of really 775ms but we end up showing 1 when you do the subtraction on the timestamps. Is their anyways to get a more precise timestamp that I am not seeing?

[OpenSIPS-Users] Detecting RPID

2009-11-24 Thread Brad Bendy
Hi list, Im trying to find the best way to detect RPID and then check to see if privacy has been set. Ive checked the $re headers and they return: sip:1234569...@x.x.x.x Their is a function is_privacy() but your suppose to pass a privacy type to it, from what I can tell their is no way to check i

Re: [OpenSIPS-Users] Detecting RPID

2009-11-25 Thread Brad Bendy
iv) == "full" || $var(rpidpriv) == "uri") { > setflag(10);# Privacy flag > } > > Later in my script can check flag 10, and if it's set, I know it¹s a private > call. > > > > - Jeff > > > On 11/24/09 6:37 PM, "Brad Bendy&q

[OpenSIPS-Users] Mediaproxy benchmarks?

2009-11-28 Thread Brad Bendy
Hi list, Does anyone have benchmarks on Mediaproxy? Im trying to see what kind of throughput I can get on say a dual Quad Core 55xx system. From what Ive read I need to run one instance per core because Python can't really multithread. Has anyone done this, or tried running several instances under

Re: [OpenSIPS-Users] Mediaproxy benchmarks?

2009-11-28 Thread Brad Bendy
If it's all done on the kernel level, then RAM won't really matter either correct? No need for massive amounts, just good NIC cards and a decent processor id assume, correct? Thanks Raúl Alexis Betancor Santana wrote: On Saturday 28 November 2009 14:55:36 Brad Bendy wrote:

[OpenSIPS-Users] INVITE as a variable?

2010-01-06 Thread Brad Bendy
Hi list, Im trying to find a way to extract and the re-write the number in the INVITE itself, Mera and a few other switch manufacturers are all of a sudden are trying to route on INVITE and not the To field, when the INVITE has a prefix in it they fail to complete the call then. I can't seem to fi

[OpenSIPS-Users] Modify Invite

2010-02-21 Thread Brad Bendy
Hi list, I need to add npdi=yes;rn=xx when I send a INVITE out. Ive looked and don't really see any way to do this exactly. Is their a module im missing to do this, or some sort of method? I thought this would be in textops maybe but I do not see it in that module either. Any help or poin

Re: [OpenSIPS-Users] Modify Invite

2010-02-21 Thread Brad Bendy
Feb 21, 2010, at 12:24 PM, Brad Bendy > wrote: > > > Hi list, > > > > I need to add npdi=yes;rn=xx when I send a INVITE out. Ive > > looked and don't really see any way to do this exactly. Is their a > > module im missing to do this, or some sort of

Re: [OpenSIPS-Users] Modify Invite

2010-02-22 Thread Brad Bendy
Mon, 2010-02-22 at 10:45 +0200, Bogdan-Andrei Iancu wrote: > Hi Brad, > > Maybe http://www.opensips.org/html/docs/modules/1.6.x/uri.html#id270649 ? > > Regards, > Bogdan > > Brad Bendy wrote: > > Hi list, > > > > I need to add npdi=yes;rn=xx

Re: [OpenSIPS-Users] Modify Invite

2010-02-22 Thread Brad Bendy
t; Brad, > > the function does not support variables as parameters :(. > > But a simple workaround, if you want to add a parameter to the RURI is: > $ru = $ru + ";rn=" + $avp(s:foo) ; > > Regards, > Bogdan > > Brad Bendy wrote: > > Hi Bogdan, > >

[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 Brad Bendy
ssignment 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 tried a few differ

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:

[OpenSIPS-Users] ACC extra variables

2010-03-19 Thread Brad Bendy
Hi List, I ran into something interesting today (have not noticed this in the past anyways). We set a extra variable in the acc table for the gatewayId, we pull these values from a memcache store, with some recent changes in our code we now sometimes hit memcache twice for a gatewayId the second

[OpenSIPS-Users] Core Dump with db_http and avp_db_query

2010-04-17 Thread Brad Bendy
Hi List, I wanted to test some things using the db_http driver and using avp_db_query to perform db queries. This happens on 1.6.1 and 1.6.2 both no-tls on 32bit BSD. When we load db_http and assign the db_url for avpops to it we get a core dump on startup, ive tried this: modparam("avpops","db_

Re: [OpenSIPS-Users] OpenSIPS with MySQL Cluster NDBCLUSTER

2010-04-20 Thread Brad Bendy
Hi, Master-master works very well, if you have that much traffic you can write to both at the same time and then you should be able to load balance your billing processes between the two, one master would use even keys one would use odd keys so you never have a overlapping primary id. >From our e

[OpenSIPS-Users] Using acc_db_request to log a sip_code as well

2010-04-24 Thread Brad Bendy
Hi List, Im trying to see if acc can save replies that are user generated, for example if we send a 503 downstream for a trunkgroup not being active. acc_db_request will let me put a sip_reason in whatever table I specify but not a sip_code, is that just the way it works? Is this possible someho

Re: [OpenSIPS-Users] Using acc_db_request to log a sip_code as well

2010-04-26 Thread Brad Bendy
est(), if you put in the first param a reply code, you > will get the code in DB record -> > > acc_log_request("503 Server Failure", "acc"); > > Regards, > Bogdan > > Brad Bendy wrote: > > Hi List, > > > > Im trying

Re: [OpenSIPS-Users] avoid down time caused by mysql server connection lost

2010-04-28 Thread Brad Bendy
Hi, Use db_virtual and have it write to a second mysql box or flat file, works VERY well. Then import the entries from flat file into mysql once it's back up and your back in business, the switch will not crash if it loses connection to mysql then. On Wed, 2010-04-28 at 14:21 +0100, Julien Chav

Re: [OpenSIPS-Users] Modify Invite

2010-04-30 Thread Brad Bendy
.0. Any ideals why just the positions of the AVPs and the other text would matter? I think it's weird when I use xlog() to print what $ru is set to it shows the correct value just OpenSIPs does not modify the INVITE. Not sure if anyone else has ran into this on the list or not. Thanks!

Re: [OpenSIPS-Users] Modify Invite

2010-05-01 Thread Brad Bendy
Laszlo wrote: > > > > > 2010/4/30 Brad Bendy > > > > Hi, > > Im bringing this back up again. > > Ive had to

Re: [OpenSIPS-Users] Modify Invite

2010-05-02 Thread Brad Bendy
at's going on as to maybe why it's not ever modifying the INVITE? When I do print the contents of $ru it shows correctly with no errors or anything, so $ru is actually getting set. Any ideals? Thanks On Sat, 2010-05-01 at 16:22 -0700, Brad Bendy wrote: > The $avp(s:lrn) is not null,

Re: [OpenSIPS-Users] Sorting Lists of Data

2010-05-13 Thread Brad Bendy
I've done this I'm the past at around 150 cps we ran into problems, maybe running partitioning it would be ok. If you could cache enough RAM you might be able to push it well past that. My concern would be can avp_db_query hogging the system down, soon I am going to test with db_http and see how

[OpenSIPS-Users] Anyway to count the numbers of entires in a AVP?

2010-06-19 Thread Brad Bendy
Hi list, Ive got a AVP that gets a value from a memcached store, it's a set of integers separated by commas , ex: 4,34,1,10 Is there a way to return the number of entries? In this case id like to have a 4 returned. I cannot get {param.count} to work, but im not sure if it works like this or mayb

Re: [OpenSIPS-Users] Anyway to count the numbers of entires in a AVP?

2010-06-19 Thread Brad Bendy
d* make the first element in your list the > number of values to expect. Not sure if that's even an option in your > case.. > > > -Brett > > > > > On Sat, Jun 19, 2010 at 8:34 PM, Brad Bendy > wrote: > Hi list, > >

Re: [OpenSIPS-Users] Anyway to count the numbers of entires in a AVP?

2010-06-21 Thread Brad Bendy
ils.html#id228574 > > > Regards, > Bogdan > > > -- > Bogdan-Andrei Iancu > OpenSIPS Bootcamp > 20 - 24 September 2010, Frankfurt, Germany > www.voice-system.ro > > > >

Re: [OpenSIPS-Users] arrays in memcache key implementation

2010-07-14 Thread Brad Bendy
Hi, We wanted the same sort of thing, we ended up having a single key and a value with a delimiter, not the prettiest but it ended up working pretty without to much extreme work. On Wed, 2010-07-14 at 19:56 +0530, Jayesh Nambiar wrote: > Hello All, > > I tried out the memcache module and it wor

[OpenSIPS-Users] Adding param to contact header / rewriting contact header

2010-07-27 Thread Brad Bendy
Hi List, Im trying to send a 302 but with a different contact header, the 302 sends correctly, but I cannot get the format correct. I know im breaking loose routing and im sure other things but for this purpose we need to have the Contact header in a specified format with more then the normal head