[SR-Users] RR balance kamailio

Gokan Atmaca linux.gokan at gmail.com
Sun Jan 16 07:46:18 CET 2022


Hello

Thanks for the answer. Kamailio and I have two sip servers. Kamailio
regularly health checks both servers.
I entered a rule as follows for incoming invitation messages. When I
receive a call, I get a 404 error.
What could be the problem? What should the Kamailio topology be like?

I understand as below. Is this true?

                        Asterisks-udp-1

                     /
Voip-ISP --- (ip_trunk-udp) --- Kamailio ---(balance-rr)---

                    \

                      Asterisk-udp-2

-% Log:
09:35:22.454828 IP 78.X.X.X.5060 > 157.X.X.X.5060: SIP: INVITE
sip:902X.X.X. at 157.X.X.X.X:5060 SIP/2.0
09:35:22.456939 IP 157.X.X.X..5060 > 78.X.X.X.5060: SIP: SIP/2.0 404 Not Found
09:35:22.515906 IP 78.X.X.X.X.5060 > 157.X.X.X.X.5060: SIP: ACK
sip:902X.X.X.X at 157.X.X.X:5060 SIP/2.0

-% Kamailio_rule:

route[DISPATCH] {
if(method=="INVITE")
   xlog("ben bir komandoyum");
  ds_select_dst("1","4");
  sl_send_reply("100","Trying");
  forward();
  exit();
}

On Thu, Jan 13, 2022 at 9:37 AM Henning Westerholt <hw at gilawa.com> wrote:
>
> Hello,
>
> the log you've quoted below is not an error log. The first part "INFO" indicates that is is an informational message. If it would be an error, it would indicate "ERROR". So you can ignore it if you do not need the outbound module (probably not).
>
> Err_log:
> Jan 12 12:15:11 kamailio /usr/sbin/kamailio[21241]: INFO: rr
> [../outbound/api.h:52]: ob_load_api(): unable to import bind_ob - maybe module is not loaded Jan 12 12:15:11 kamailio /usr/sbin/kamailio[21241]: INFO: rr
> [rr_mod.c:188]: mod_init(): outbound module not available
>
> Cheers,
>
> Henning
>
> --
> Henning Westerholt – https://skalatan.de/blog/
> Kamailio services – https://gilawa.com
>
> -----Original Message-----
> From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Gokan Atmaca
> Sent: Wednesday, January 12, 2022 9:52 PM
> To: sr-users at lists.kamailio.org
> Subject: [SR-Users] RR balance kamailio
>
> Hello
>
> I installed kamailio on Ubuntu. The version information is as follows.
> (0) I added two dispatcher sip servers. (1) When I enter the parameter as below in the configuration file , I get an error as follows. (2) I am getting RR module not available error. Packages installed are "kamailio-berkeley-modules, kamailio-tls-modules, kamailio-presence-modules"
>
> How can I solve the problem?
>
> (0) version:
> version: kamailio 5.5.3 (x86_64/linux)
> flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> id: unknown
> compiled with gcc 9.3.0
>
> (1) Dispatcher list:
>
> {
>     NRSETS: 1
>     RECORDS: {
>         SET: {
>             ID: 1
>             TARGETS: {
>                 DEST: {
>                     URI: sip:X.X.X.X
>                     FLAGS: AP
>                     PRIORITY: 0
>                     LATENCY: {
>                         AVG: 0.000000
>                         STD: 0.000000
>                         EST: 0.000000
>                         MAX: 0
>                         TIMEOUT: 0
>                     }
>                 }
>                 DEST: {
>                     URI: sip:Y.Y.Y.Y
>                     FLAGS: AP
>                     PRIORITY: 0
>                     LATENCY: {
>                         AVG: 0.000000
>                         STD: 0.000000
>                         EST: 0.000000
>                         MAX: 0
>                         TIMEOUT: 0
>                     }
>                 }
>             }
>         }
>     }
> }
>
>
> (2)
>
> if ( method=="INVITE" ) {
> ds_select_dst("1","4");
> sl_send_reply("100","Trying");
> forward();
> exit();
> }
>
> Err_log:
> Jan 12 12:15:11 kamailio /usr/sbin/kamailio[21241]: INFO: rr
> [../outbound/api.h:52]: ob_load_api(): unable to import bind_ob - maybe module is not loaded Jan 12 12:15:11 kamailio /usr/sbin/kamailio[21241]: INFO: rr
> [rr_mod.c:188]: mod_init(): outbound module not available
>
> --
> ⢀⣴⠾⠻⢶⣦⠀
> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄⠀⠀⠀⠀
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



More information about the sr-users mailing list