[SR-Users] xlogl and pseudo variables

2011-01-29 Thread Bucur Marius
Hello, From my opinion, the logging itself will be a performance killer, not appending the pseudo variables to the log string - which should consist just in fast memory operations. Make sure you have "-" before the filename though for asynchronous writing to the log file (syslog.conf). Finally

[SR-Users] xlogl and pseudo variables

2011-01-29 Thread Bernhard Suttner
Hi, I am using xlogl for debugging and logging the most important actions within the kamailio script. Does it take much resources if I use the pseudo variables with the xlogl statements? Example: xlogl("L_NOTICE", "Route $rm to destination! F=$fu T=$tu IP=$si \n"); I´m planning to do this in a

Re: [SR-Users] onreply_route and failure_route

2011-01-29 Thread Bernhard Suttner
Hi, that was _really_ fast. Thanks. :-) One more question: Could I somehow test with the route[NAT] for example, if the request was from the main route { ... } or from the onreply_route[] ? Best regards, Bernhard - Original Message - From: Alex Balashov [mailto:abalas...@evaristesys.c

Re: [SR-Users] onreply_route and failure_route

2011-01-29 Thread Alex Balashov
Yes. -- Alex Balashov - Principal Evariste Systems LLC 260 Peachtree Street NW Suite 2200 Atlanta, GA 30303 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/ On Jan 29, 2011, at 3:35 PM, "Bernhard Suttner" > wrote: Hi, is it possible to call a route within onreply_ a

[SR-Users] onreply_route and failure_route

2011-01-29 Thread Bernhard Suttner
Hi, is it possible to call a route within onreply_ and failure_route? I mean, within the main route { ... } its possible to call the route[NAT]. Is this also possible for this "special" routes? If this is possible, is it also allowed to call a route which will normally called from the main rout

Re: [SR-Users] [sr-dev] planning release of v3.1.2

2011-01-29 Thread Bernhard Suttner
Hi, whats about: http://sip-router.org/tracker/index.php?do=details&task_id=108 I think that some users are trying to register to an asterisk system. Or does somebody have a solution for that? A new release would be nice!!! Thanks in advance. Best regards, Bernhard - Original Message -

Re: [SR-Users] Joining strings

2011-01-29 Thread Lee Archer
Thanks for the help. I thought I had tried this way but I will try again. Regards Lee From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Sat 29/01/2011 17:16 To: Lee Archer Cc: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Joining strings

Re: [SR-Users] Can you use a bigint with Kamailio?

2011-01-29 Thread Lee Archer
Thanks for the help. I decided to cut the number down further instead. Regards Lee From: Brandon Armstead [mailto:bran...@cryy.com] Sent: Sat 29/01/2011 17:32 To: Lee Archer Cc: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Can you use a bigint with K

Re: [SR-Users] LCR next_gw() - certain GW, source from other IP address

2011-01-29 Thread Alex Balashov
Also, I don't believe force_send_socket() accepts PVs as arguments. But $fs accomplishes the same end, and is a mutable PV. -- Alex Balashov - Principal Evariste Systems LLC 260 Peachtree Street NW Suite 2200 Atlanta, GA 30303 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys

Re: [SR-Users] LCR next_gw() - certain GW, source from other IP address

2011-01-29 Thread Graham Wooden
Ah ­ I didn’t have the same routine in branch_route ­ I think that’s the key. Seems to be working now. I see now that I am sourcing out the IP addy that I need to be. Thanks for that extra hint Stagg. -graham On 1/29/11 11:45 AM, "Stagg Shelton" wrote: >I have the force send socket in the

Re: [SR-Users] LCR next_gw() - certain GW, source from other IP address

2011-01-29 Thread Stagg Shelton
I have the force send socket in the branch route too. So assume the first attempt fails and the call makes it to the failure route that I setup. Once it gets to the branch route then it executes the following where you can perform your logic again. branch_route[2] { xlog("new branch at $ru\n"); if

Re: [SR-Users] Can you use a bigint with Kamailio?

2011-01-29 Thread Brandon Armstead
Lee, You will need to cast this to a string / varchar. Sincerely, Brandon Armstead On Sat, Jan 29, 2011 at 5:54 AM, Lee Archer wrote: > Hi, I am trying to run dispatcher based on the inbound number called. > This works fine for some numbers but not all. Is there a bigint string > function a

Re: [SR-Users] LCR next_gw() - certain GW, source from other IP address

2011-01-29 Thread Graham Wooden
Well, ran into another wall I can’t seem to do the force_send_socket at the point of when next_gw() is called in the failure route. Is there anyway to clear and/or re-assign the data that is making it where I can’t re-write the transaction to come from another IP addy? On 1/29/11 11:01 AM,

Re: [SR-Users] Joining strings

2011-01-29 Thread Daniel-Constantin Mierla
Hello, On 1/29/11 6:26 AM, Lee Archer wrote: Hi, is it possible to join strings? I'd like toprepend a number to a string prior to processing it to an int? using + with variables/values holding strings results in concatenation: $var(x) = "123"; $var(y) = "abc" + $var(x); Then the $var(y

Re: [SR-Users] LCR next_gw() - certain GW, source from other IP address

2011-01-29 Thread Graham Wooden
Stagg, While the Ips are the same, the suggestion to use “rd” along with an entry in the “hostname” column appears to be what I want. I assigned in my DNS some testing hostnames to the single IP in question. When debugging, I see that rd contains the hostname, not the IP. I believe with that, I

Re: [SR-Users] LCR next_gw() - certain GW, source from other IP address

2011-01-29 Thread GP Wooden
Same destination IP for both rate decks, so I need to go by something else, like the gw_name. - Reply message - From: "Stagg Shelton" Date: Sat, Jan 29, 2011 8:27 am Subject: [SR-Users] LCR next_gw() - certain GW, source from other IP address To: Do the provider gateways have the same

Re: [SR-Users] LCR next_gw() - certain GW, source from other IP address

2011-01-29 Thread Stagg Shelton
Do the provider gateways have the same IP address for the different rate plans? If the gateways are different then the following may be relevant. if (next_gw()) { # prepare for lcr failover t_on_failure("2"); if($rd=="aaa.aaa.aaa.aaa")

[SR-Users] Joining strings

2011-01-29 Thread Lee Archer
Hi, is it possible to join strings? I'd like to prepend a number to a string prior to processing it to an int? Thanks Lee ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.

[SR-Users] LCR next_gw() - certain GW, source from other IP address

2011-01-29 Thread Graham Wooden
Hi there, I have a requirement now that for one of my GW¹s in my LCR, needs to be sourced from another IP address (two different rate-decks with the carrier). This ratedeck will always be at least 2nd inline ... I was thinking something along the sorts ... Some pseudo code: failure_route [2] { .

[SR-Users] Can you use a bigint with Kamailio?

2011-01-29 Thread Lee Archer
Hi, I am trying to run dispatcher based on the inbound number called. This works fine for some numbers but not all. Is there a bigint string function as this would solve my problems? The numbers I am receiving are 14 digits long which s.int is returning as something completely different to what i