[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 it should be.

Thanks

Lee
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[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] {
.
.
if (next_gw()) {
if ( name = 'gw_name') {
force_send_socket(udp:ip.address.of.certain.ip:5060);
} else {
# just dummy, as we will send out our default IP for everyone
else.
}
t_on_failure(2);
route(19);
}
.
.
.
}

What variable will have the value that's in the gw_name column? I can't go
by the IP address in $ru because the destination IP is the same between the
two ratedecks.

Overall, Is that the best way to handle this requirement?

Thanks all,

-graham



___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


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)
{
  xlog (L_INFO, This is a request for Some Rate Plan);
  force_send_socket(udp:xxx.xxx.xxx.xxx:5060);
}
else
{
  xlog (L_INFO, This is a request for another rate 
plan);

  force_send_socket(udp:yyy.yyy.yyy.yyy:5060);
};
route(2);
  } else {
xlog(No gateways found!);


Stagg

On 1/29/11 9:10 AM, Graham Wooden wrote:

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] {
.
.
 if (next_gw()) {
 if ( name = 'gw_name') {
 force_send_socket(udp:ip.address.of.certain.ip:5060);
 } else {
 # just dummy, as we will send out our default IP for everyone
else.
 }
 t_on_failure(2);
 route(19);
 }
.
.
.
}

What variable will have the value that's in the gw_name column? I can't go
by the IP address in $ru because the destination IP is the same between the
two ratedecks.

Overall, Is that the best way to handle this requirement?

Thanks all,

-graham



___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


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 st...@vocalcloud.com
Date: Sat, Jan 29, 2011 8:27 am
Subject: [SR-Users] LCR next_gw() - certain GW, source from other IP address
To: sr-users@lists.sip-router.org

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)
 {
   xlog (L_INFO, This is a request for Some Rate Plan);
   force_send_socket(udp:xxx.xxx.xxx.xxx:5060);
 }
 else
 {
   xlog (L_INFO, This is a request for another rate 
plan);
   force_send_socket(udp:yyy.yyy.yyy.yyy:5060);
 };
 route(2);
   } else {
 xlog(No gateways found!);


Stagg

On 1/29/11 9:10 AM, Graham Wooden wrote:
 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] {
 .
 .
  if (next_gw()) {
  if ( name = 'gw_name') {
  force_send_socket(udp:ip.address.of.certain.ip:5060);
  } else {
  # just dummy, as we will send out our default IP for everyone
 else.
  }
  t_on_failure(2);
  route(19);
  }
 .
 .
 .
 }

 What variable will have the value that's in the gw_name column? I can't go
 by the IP address in $ru because the destination IP is the same between the
 two ratedecks.

 Overall, Is that the best way to handle this requirement?

 Thanks all,

 -graham



 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


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 can differentiate between the two... And when I see hostname of
blah.blah.tld, then go ahead and do the force_send_socket.

This definitely solves the issue for the time being. However, I am wondering
if/when call volume increases if the call-setup time be delayed because of
these look ups.  Everything that I have read so far is that the gw_name is
just information, the module doesn’t actually have access to it. Boo.

-graham


On 1/29/11 8:36 AM, GP Wooden gra...@g-rock.net wrote:

 Same destination IP for both rate decks, so I need to go by something else,
 like the gw_name.
 
 - Reply message -
 From: Stagg Shelton st...@vocalcloud.com
 Date: Sat, Jan 29, 2011 8:27 am
 Subject: [SR-Users] LCR next_gw() - certain GW, source from other IP address
 To: sr-users@lists.sip-router.org
 
 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)
  {
xlog (L_INFO, This is a request for Some Rate Plan);
force_send_socket(udp:xxx.xxx.xxx.xxx:5060);
  }
  else
  {
xlog (L_INFO, This is a request for another rate
 plan);
force_send_socket(udp:yyy.yyy.yyy.yyy:5060);
  };
  route(2);
} else {
  xlog(No gateways found!);
 
 
 Stagg
 
 On 1/29/11 9:10 AM, Graham Wooden wrote:
  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] {
  .
  .
   if (next_gw()) {
   if ( name = 'gw_name') {
   force_send_socket(udp:ip.address.of.certain.ip:5060);
   } else {
   # just dummy, as we will send out our default IP for everyone
  else.
   }
   t_on_failure(2);
   route(19);
   }
  .
  .
  .
  }
 
  What variable will have the value that's in the gw_name column? I can't go
  by the IP address in $ru because the destination IP is the same between the
  two ratedecks.
 
  Overall, Is that the best way to handle this requirement?
 
  Thanks all,
 
  -graham
 
 
 
  ___
  SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
  sr-users@lists.sip-router.org
  http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
 
 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
 
 
 
 
 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


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) will be abc123;

Cheers,
Daniel

--
Daniel-Constantin Mierla
http://www.asipto.com

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


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, Graham Wooden gra...@g-rock.net wrote:

 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 can differentiate between the two... And when I see hostname of
 blah.blah.tld, then go ahead and do the force_send_socket.
 
 This definitely solves the issue for the time being. However, I am wondering
 if/when call volume increases if the call-setup time be delayed because of
 these look ups.  Everything that I have read so far is that the gw_name is
 just information, the module doesn’t actually have access to it. Boo.
 
 -graham
 
 
 On 1/29/11 8:36 AM, GP Wooden gra...@g-rock.net wrote:
 
 Same destination IP for both rate decks, so I need to go by something else,
 like the gw_name.
 
 - Reply message -
 From: Stagg Shelton st...@vocalcloud.com
 Date: Sat, Jan 29, 2011 8:27 am
 Subject: [SR-Users] LCR next_gw() - certain GW, source from other IP address
 To: sr-users@lists.sip-router.org
 
 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)
  {
xlog (L_INFO, This is a request for Some Rate Plan);
force_send_socket(udp:xxx.xxx.xxx.xxx:5060);
  }
  else
  {
xlog (L_INFO, This is a request for another rate
 plan);
force_send_socket(udp:yyy.yyy.yyy.yyy:5060);
  };
  route(2);
} else {
  xlog(No gateways found!);
 
 
 Stagg
 
 On 1/29/11 9:10 AM, Graham Wooden wrote:
  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] {
  .
  .
   if (next_gw()) {
   if ( name = 'gw_name') {
   force_send_socket(udp:ip.address.of.certain.ip:5060);
   } else {
   # just dummy, as we will send out our default IP for everyone
  else.
   }
   t_on_failure(2);
   route(19);
   }
  .
  .
  .
  }
 
  What variable will have the value that's in the gw_name column? I can't go
  by the IP address in $ru because the destination IP is the same between
 the
  two ratedecks.
 
  Overall, Is that the best way to handle this requirement?
 
  Thanks all,
 
  -graham
 
 
 
  ___
  SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
  sr-users@lists.sip-router.org
  http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
 
 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
 
 
 
 
 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
 

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


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 lee.arc...@thebigword.comwrote:

  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 it should be.

 Thanks

 Lee

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


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($rd==aaa.aaa.aaa.aaa)
{
xlog (L_INFO, This is a request for A Plan);
force_send_socket(udp:xxx.xxx.xxx.xxx:5060);
}
else
{
xlog (L_INFO, This is a request for another plan);
force_send_socket(udp:yyy.yyy.yyy.yyy:5060);
};
}


Stagg


On 1/29/11 12:32 PM, Graham Wooden wrote:
 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, Graham Wooden gra...@g-rock.net wrote:

 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 can differentiate between the
 two... And when I see hostname of blah.blah.tld, then go ahead and
 do the force_send_socket.

 This definitely solves the issue for the time being. However, I am
 wondering if/when call volume increases if the call-setup time be
 delayed because of these look ups. Everything that I have read so
 far is that the gw_name is just information, the module doesn’t
 actually have access to it. Boo.

 -graham


 On 1/29/11 8:36 AM, GP Wooden gra...@g-rock.net wrote:

 Same destination IP for both rate decks, so I need to go by
 something else, like the gw_name.

 - Reply message -
 From: Stagg Shelton st...@vocalcloud.com
 Date: Sat, Jan 29, 2011 8:27 am
 Subject: [SR-Users] LCR next_gw() - certain GW, source from
 other IP address
 To: sr-users@lists.sip-router.org

 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)
 {
 xlog (L_INFO, This is a request for Some Rate Plan);
 force_send_socket(udp:xxx.xxx.xxx.xxx:5060);
 }
 else
 {
 xlog (L_INFO, This is a request for another rate
 plan);
 force_send_socket(udp:yyy.yyy.yyy.yyy:5060);
 };
 route(2);
 } else {
 xlog(No gateways found!);


 Stagg

 On 1/29/11 9:10 AM, Graham Wooden wrote:
  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] {
  .
  .
  if (next_gw()) {
  if ( name = 'gw_name') {
  force_send_socket(udp:ip.address.of.certain.ip:5060);
  } else {
  # just dummy, as we will send out our default IP for everyone
  else.
  }
  t_on_failure(2);
  route(19);
  }
  .
  .
  .
  }
 
  What variable will have the value that's in the gw_name
 column? I can't go
  by the IP address in $ru because the destination IP is the
 same between the
  two ratedecks.
 
  Overall, Is that the best way to handle this requirement?
 
  Thanks all,
 
  -graham
 
 
 
  ___
  SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
 mailing list
  sr-users@lists.sip-router.org
  http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
 mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



 
 
 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
 mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


___
SIP 

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.com/

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


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 Kamailio?


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 lee.arc...@thebigword.com 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 as this would solve my problems?  The numbers I am receiving are 14 
digits long which s.int http://s.int/  is returning as something completely 
different to what it should be.

Thanks

Lee


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


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


Hello,

On 1/29/11 6:26 AM, Lee Archer wrote: 

Hi, is it possible to join strings?  I'd like to prepend 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) will be abc123;

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com http://www.asipto.com/ 
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


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=detailstask_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 -
From: Daniel-Constantin Mierla [mailto:mico...@gmail.com]
To: kamailio [mailto:sr-users@lists.sip-router.org], sr-dev 
[mailto:sr-...@lists.sip-router.org]
Sent: Fri, 28 Jan 2011 20:15:50 +0100
Subject: [sr-dev] planning release of v3.1.2


 Hello,
 
 I think it is time to release v3.1.2, first date that comes in my mind 
 is next Thursday if everyone feels it is enough time to take care of 
 backporting any fix he/she did and it is not yet there. That will 
 provide us a fresh release for the FOSDEM event. If not, then maybe the 
 other week, Tuesday, so the participants at the Kamailio Devel training 
 in Barcelona can practice on it.
 
 Soon after we should plan also a release for previous stable, branch 3.0.
 
 Anyone having other options?
 
 Thanks,
 Daniel
 
 -- 
 Daniel-Constantin Mierla
 http://www.asipto.com
 
 
 ___
 sr-dev mailing list
 sr-...@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
 

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[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 route { ... }

Thanks in advance.

Best regards,
Bernhard

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


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.com]
To: Bernhard Suttner [mailto:bernhard.sutt...@winet.ch]
Cc: sr-users@lists.sip-router.org [mailto:sr-users@lists.sip-router.org]
Sent: Sat, 29 Jan 2011 21:37:34 +0100
Subject: Re: [SR-Users] onreply_route and failure_route


 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 bernhard.sutt...@winet.ch 
   wrote:
 
  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 route { ... }
 
  Thanks in advance.
 
  Best regards,
  Bernhard
 
  ___
  SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing  
  list
  sr-users@lists.sip-router.org
  http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
 

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[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 all the xlogl statements to be able to debug / see 
whats going on on the system.

Thanks in advance.

Best regard,
Bernhard

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users