Re: [SR-Users] [Kamailio-users] Weight based routing

2010-07-27 Thread marius zbihlei

Alex Balashov wrote:
Simplest thing to do would be to use 'dispatcher' with round-robin 
strategy and enter the servers in the table or list file in duplicate, 
in proportion to the weight allocation they have.


On 07/27/2010 01:55 AM, Chandrakant Solanki wrote:

  

Hello

Also the carrierroute module has this capability.

Cheers
Marius

Hello,

I have setup 3 SIP server. It should be Kamailio, Asterisk or Any SIP
Server.

I have setup 3 server say Server A, Server B and Server C and each has
weight like 50, 30, 20 in percentage.

And I taken 10 calls and try to forward call based on weight.

Is this possible in kamailio's module.. and if yes then which module
will help me?

Any Idea..

--
Regards,

Chandrakant Solanki



___
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] [Kamailio-users] Weight based routing

2010-07-27 Thread Daniel-Constantin Mierla



On 7/27/10 9:43 AM, marius zbihlei wrote:

Alex Balashov wrote:
Simplest thing to do would be to use 'dispatcher' with round-robin 
strategy and enter the servers in the table or list file in 
duplicate, in proportion to the weight allocation they have.


just to note here that the devel version of dispatcher has dedicated 
weight-based load balancing algorithm - of course, will be available as 
stable with next major release - 3.1.0.


Cheers,
Daniel




On 07/27/2010 01:55 AM, Chandrakant Solanki wrote:


Hello

Also the carrierroute module has this capability.

Cheers
Marius

Hello,

I have setup 3 SIP server. It should be Kamailio, Asterisk or Any SIP
Server.

I have setup 3 server say Server A, Server B and Server C and each has
weight like 50, 30, 20 in percentage.

And I taken 10 calls and try to forward call based on weight.

Is this possible in kamailio's module.. and if yes then which module
will help me?

Any Idea..

--
Regards,

Chandrakant Solanki



___
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



--
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] Kamailio Transformation Assignment to an AVP

2010-07-27 Thread Daniel-Constantin Mierla

Hello,

interesting, when I troubleshooted before your previous report, I used 
this piece of cfg:


xlog(==\n);
$var(b) =
v=0\r\n
o=- 5 2 IN IP4 192.168.3.100\r\n
s=CounterPath Bria\r\n
c=IN IP4 174.37.XX.XXX\r\n
t=0 0\r\n
m=audio 64192 RTP/AVP 107 0 8 18 101\r\n
a=sendrecv\r\n
a=rtpmap:107 BV32/16000\r\n
a=rtpmap:18 G729/8000\r\n
a=fmtp:18 annexb=yes\r\n
a=rtpmap:101 telephone-event/8000\r\n
a=fmtp:101 0-15\r\n
a=nortpproxy:yes\r\n;

$var(c) = $(var(b){re.subst,|.*m=audio [0-9]+ RTP/AVP ([0-9 ]+).+|\1|s});
xlog(==: [$var(c)]\n);

And the xlog printed properly the value of $var(c) - meaning that it was 
assigned the right value. I will test with avps next time I have a chance.


Cheers,
Daniel


On 7/26/10 9:11 PM, Brandon Armstead wrote:

Hello,

I have the following transformation on the SDP Body:

$(rb{re.subst,/^(.*)m=audio ([0-9]+) RTP\/AVP ([0-9 
]+)\015\012(.*)$/\3/s})


However when I assign this to an AVP, i.e.

$avp(s:sdp-payloads) = $(rb{re.subst,/^(.*)m=audio ([0-9]+) RTP\/AVP 
([0-9 ]+)\015\012(.*)$/\3/s});


I receive back a NULL result / transformation regex does not match 
is what I receive with high verbose syslog on kamailio.


HOWEVER.

When I do something like this:

xlog(L_INFO, Payloads Available: $(rb{re.subst,/^(.*)m=audio 
([0-9]+) RTP\/AVP ([0-9 ]+)\015\012(.*)$/\3/s}));


It executes properly -- transformation regex matches and the payloads 
are displayed as expected.


If anyone can provide any insight as to what I may be doing wrong it 
would be greatly appreciated.


P.S. Kamailio SVN Revision # 2:5906M (1.5.2-notls).

Also I CC'ed devel list (as I do believe this may be a bug).

Thanks!

Sincerely,
Brandon Armstead


___
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
   


--
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] Kamailio 3.0.2 mysql create table domain definition

2010-07-27 Thread Henning Westerholt
On Monday 26 July 2010, Stagg Shelton wrote:
 The script in the source scripts/mysql/my_create.sql  uses the the
 following definition
 
 CREATE TABLE domain (
  did VARCHAR(64) NOT NULL,
 [..]
 );
 
 The script in the source utils/kamctl/mysql/domain-create.sql uses the
 following definition
 
 CREATE TABLE domain (
  id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
 [..]
 ) ENGINE=MyISAM;
 
 Which table definition is the correct definition to be used.

Hi Stagg,

the first one is the version for the domain module from sr (modules_s), the 
latter is the one for the kamailio (modules_k) domain module.

Cheers,

Henning

___
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] multiple instances on different ports

2010-07-27 Thread Uriel Rozenbaum
Hi,

As it is stated on the documentation, force_send_socket() can only
take a listening interface as an argument.

Try adding
listen=udp:192.168.1.111:5060

Cheers,
Uriel

On Tue, Jul 27, 2010 at 10:51 AM, Alex rsm alex-...@hotmail.com wrote:
 Hi,

 Thanks for your response: When using the function you suggested:

 listen=udp:192.168.1.111:5061
 listen=udp:192.168.1.111:5062
 .

 force_send_socket(192.168.1.111:5060);
 ...

 I am getting the following error message:

 Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]:
 ERROR:core:fix_actions: bad force_send_socket argument: 209.16.123.111:5060
 (ser doesn't listen on it)
 Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]:
 ERROR:core:fix_actions: fixing failed (code=-476) at cfg line 332
 Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]: ERROR:core:main:
 failed to fix configuration with err code -476


 As I mentioned I am trying to run multiple instances of openser with diff
 ports and proxy all traffic coming from diff ports to a fix port 5060.
 Domains are set within a perl script.


 PS: I am using openser 1.3 release within ubuntu OS.

 Thanks,
 R



 Date: Mon, 26 Jul 2010 17:55:54 -0300
 From: uriel.rozenb...@gmail.com
 To: rob1...@gmail.com
 CC: us...@lists.kamailio.org
 Subject: Re: [SR-Users] multiple instances on different ports

 Hi,

 try using force_send_socket but you'll have to declare the socket with
 5060 as well


 http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.0.x#force_send_socket

 Cheers,
 Uriel

 On Mon, Jul 26, 2010 at 5:38 PM, Robert R rob1...@gmail.com wrote:
  Hi,
 
  I am trying to run multiple different instances of openser on the same
  server using different ports.
  Regardless of receiving INVITE on any of the ports (5061, 5062, ...)  I
  want
  openser always to proxy the message to port 5060.
 
   invite:5061 --- openser -- invite:5060
   invite:5062 --- openser -- invite:5060
 
  By adding two listen ports as follow, openser sends the traffic to the
  same
  outgoing port as the incoming port:
 
  listen=udp:209.16.123.160:5061
  listen=udp:209.16.123.160:5062
 
  Is there a way to hard code the outgoing port? or I should overwrite the
  port?
 
  Thanks,
  R
 
 
 
  ___
  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

 
 Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
 Learn more.

___
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] Kamailio 3.0 cann't access the RTPProxy

2010-07-27 Thread JinKevin

Hi Daniel,
 
I use the rtpproxy 1.2.1. And seems loopback interface cann't be caputred on 
Solaris. I have tried the rtpproxy on other interface and tried the caputre, 
however didn't see anything on port 7722. 
 
One more thing like to mention is that I got some error like below:

 

if gcc -DHAVE_CONFIG_H -I. -I. -I.-std=gnu99 -Wall -Wno-uninitialized -g 
-O2 -MT rtpp_notify.o -MD -MP -MF .deps/rtpp_notify.Tpo -c -o rtpp_notify.o 
rtpp_notify.c; \
then mv -f .deps/rtpp_notify.Tpo .deps/rtpp_notify.Po; else rm -f 
.deps/rtpp_notify.Tpo; exit 1; fi
rtpp_notify.c: In function `reconnect_timeout_handler':
rtpp_notify.c:240: error: `AF_LOCAL' undeclared (first use in this function)
rtpp_notify.c:240: error: (Each undeclared identifier is reported only once
rtpp_notify.c:240: error: for each function it appears in.)
gmake[1]: *** [rtpp_notify.o] Error 1
gmake[1]: Leaving directory `/opt/csw/src/rtpproxy'
gmake: *** [all] Error 2



I search on internet and added the following in the beginnng of the 
rtpp_notify.c, and the make gets through. Not sure if this change has any issue.
 
#ifndef AF_LOCAL
#define AF_LOCAL AF_UNIX
#endif
 

Thanks,

Kevin






Date: Tue, 27 Jul 2010 11:53:21 +0200
From: mico...@gmail.com
To: kevin@hotmail.com
CC: sr-users@lists.sip-router.org
Subject: Re: [SR-Users] Kamailio 3.0 cann't access the RTPProxy

Hello,

can you sniff the loopback interface for communication on port 7722 (i.e., 
using ngrep/wireshark, etc...)?

What is the version of rtppproxy do you have?

Cheers,
Daniel


On 7/27/10 3:58 AM, JinKevin wrote: 



Guys,
 
Anyone has some feedback on this?
 
Thanks,
Kevin
 





 
Hi All,
 
 
 I have the kamailio configed as below on Solaris 10 (Sparc):
 
# - nathelper -
#!ifdef WITH_NAT
modparam(nathelper, rtpproxy_sock, udp:127.0.0.1:7722)
modparam(nathelper, natping_interval, 30)
modparam(nathelper, ping_nated_only, 1)
modparam(nathelper, sipping_bflag, 7)
modparam(nathelper, sipping_from, sip:pin...@kamailio.org)
modparam(registrar|nathelper, received_avp, $avp(i:80))
modparam(usrloc, nat_bflag, 6)
#!endif

and rtpproxy is started as 
AppSer01:ipunity@/opt/ipunity$ ps -ef |grep rtp
 ipunity  4687 1   0 12:58:20 ?   0:00 /usr/local/bin/rtpproxy -l 
210.xx.xx.xx -s udp:localhost:7722
 
AppSer01:ipunity@/opt/ipunity$ netstat -an |grep 7722
127.0.0.1.7722Idle
127.0.0.1.41509  127.0.0.1.7722   Connected
127.0.0.1.41510  127.0.0.1.7722   Connected
127.0.0.1.41511  127.0.0.1.7722   Connected
127.0.0.1.41512  127.0.0.1.7722   Connected
127.0.0.1.41513  127.0.0.1.7722   Connected
127.0.0.1.41514  127.0.0.1.7722   Connected
127.0.0.1.41515  127.0.0.1.7722   Connected
127.0.0.1.41516  127.0.0.1.7722   Connected
127.0.0.1.41517  127.0.0.1.7722   Connected
127.0.0.1.41518  127.0.0.1.7722   Connected
127.0.0.1.41519  127.0.0.1.7722   Connected
 
However, kamailio is not able to connect the rtpporxy, 
 
Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 
788202 local0.error] ERROR: nathelper [nathelper.c:2457]: can't send command to 
a RTP proxy
Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 
844113 local0.error] ERROR: nathelper [nathelper.c:2492]: proxy 
udp:127.0.0.1:7722 does not respond, disable it
Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 
582370 local0.error] ERROR: nathelper [nathelper.c:3144]: no available proxies
Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 
788202 local0.error] ERROR: nathelper [nathelper.c:2457]: can't send command to 
a RTP proxy
Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 
844113 local0.error] ERROR: nathelper [nathelper.c:2492]: proxy 
udp:127.0.0.1:7722 does not respond, disable it
Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 
582370 local0.error] ERROR: nathelper [nathelper.c:3144]: no available proxies
Jul 24 12:59:04 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22870]: [ID 
582370 local0.error] ERROR: nathelper [nathelper.c:2627]: no available proxies
Jul 24 12:59:04 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22870]: [ID 
582370 local0.error] ERROR: nathelper [nathelper.c:2627]: no available proxies

Any helps are appreciated.
 
 
Thanks,
Kevin



聊天+搜索+邮箱 想要轻松出游,手机MSN帮你搞定! 立刻下载! 


使用新一代 Windows Live Messenger 轻松交流和共享! 立刻下载! 
___
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
  
-- 
Daniel-Constantin Mierla
http://www.asipto.com/
  
_
MSN十年回馈,每位用户可免费获得价值25元的卡巴斯基反病毒软件2010激活码,快来领取!
http://kaba.msn.com.cn/?k=1___
SIP 

Re: [SR-Users] Kamailio Transformation Assignment to an AVP

2010-07-27 Thread brandon
Daniel,

I've also tried with script vars.  I think it has something to do with the 
actual dynamic psuedo variable $rb.  Var assignment and mangling does not work 
for me either.  I.e. Keep everything the same except $var(test) = $rb and so 
on.  Let me know if this makes sense.

Sincerely,
Brandon Armstead

*Forgot to reply to ALL (resending)
Sent from my Verizon Wireless BlackBerry

-Original Message-
From: Daniel-Constantin Mierla mico...@gmail.com
Date: Tue, 27 Jul 2010 11:50:36 
To: Brandon Armsteadbran...@cryy.com
Cc: us...@lists.kamailio.org; de...@lists.kamailio.org
Subject: Re: [SR-Users] Kamailio Transformation Assignment to an AVP

Hello,

interesting, when I troubleshooted before your previous report, I used 
this piece of cfg:

xlog(==\n);
$var(b) =
v=0\r\n
o=- 5 2 IN IP4 192.168.3.100\r\n
s=CounterPath Bria\r\n
c=IN IP4 174.37.XX.XXX\r\n
t=0 0\r\n
m=audio 64192 RTP/AVP 107 0 8 18 101\r\n
a=sendrecv\r\n
a=rtpmap:107 BV32/16000\r\n
a=rtpmap:18 G729/8000\r\n
a=fmtp:18 annexb=yes\r\n
a=rtpmap:101 telephone-event/8000\r\n
a=fmtp:101 0-15\r\n
a=nortpproxy:yes\r\n;

$var(c) = $(var(b){re.subst,|.*m=audio [0-9]+ RTP/AVP ([0-9 ]+).+|\1|s});
xlog(==: [$var(c)]\n);

And the xlog printed properly the value of $var(c) - meaning that it was 
assigned the right value. I will test with avps next time I have a chance.

Cheers,
Daniel


On 7/26/10 9:11 PM, Brandon Armstead wrote:
 Hello,

 I have the following transformation on the SDP Body:

 $(rb{re.subst,/^(.*)m=audio ([0-9]+) RTP\/AVP ([0-9 
 ]+)\015\012(.*)$/\3/s})

 However when I assign this to an AVP, i.e.

 $avp(s:sdp-payloads) = $(rb{re.subst,/^(.*)m=audio ([0-9]+) RTP\/AVP 
 ([0-9 ]+)\015\012(.*)$/\3/s});

 I receive back a NULL result / transformation regex does not match 
 is what I receive with high verbose syslog on kamailio.

 HOWEVER.

 When I do something like this:

 xlog(L_INFO, Payloads Available: $(rb{re.subst,/^(.*)m=audio 
 ([0-9]+) RTP\/AVP ([0-9 ]+)\015\012(.*)$/\3/s}));

 It executes properly -- transformation regex matches and the payloads 
 are displayed as expected.

 If anyone can provide any insight as to what I may be doing wrong it 
 would be greatly appreciated.

 P.S. Kamailio SVN Revision # 2:5906M (1.5.2-notls).

 Also I CC'ed devel list (as I do believe this may be a bug).

 Thanks!

 Sincerely,
 Brandon Armstead


 ___
 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


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