Re: [SR-Users] dispatcher lb

2022-01-22 Thread Gokan Atmaca
I have one more problem. I have two GSM phones. Simultaneous calls
from the GSM network also work properly.
However, only one of the GSM numbers appeared in the tests I made
repeatedly.  When I pick up the phone, my voice goes to both phones at
once.

How can I solve this problem?

On Sat, Jan 22, 2022 at 5:14 PM Gokan Atmaca  wrote:
>
> > Maybe a SIP capture can help.
> Thanks, The problem also appeared on the ip phone. I fixed it. it is
> working now. :)
>
> On Fri, Jan 21, 2022 at 11:05 PM Social Boh  wrote:
> >
> > Maybe a SIP capture can help.
> >
> > Regards
> >
> > ---
> > I'm SoCIaL, MayBe
> >
> > El 21/01/2022 a las 3:01 p. m., Gokan Atmaca escribió:
> > > Hello
> > >
> > > I'm load balancing with Dispatcher. The call comes in but hangs up
> > > without picking up the phone. What could be the problem? The settings
> > > are as follows.
> > >
> > >
> > > dispatcher.list
> > > 1 sip:18.X.X.X.X:5060 0 0 maxload=20
> > > 1 sip:67.X.X.X.X:5060 0 0 maxload=20
> > >
> > >
> > > # Dispatch requests
> > > route[DISPATCH] {
> > > # round robin dispatching on gateways group '1'
> > > if(!ds_select_dst("1", "4"))
> > >  {
> > > send_reply("404", "No destination");
> > > exit;
> > >  }
> > >  xlog("L_DBG", "--- SCRIPT: going to <$ru> via <$du>\n");
> > >  t_on_failure("RTF_DISPATCH");
> > >  route(RELAY);
> > >  exit;
> > > }
> > >
> > >
> > >
> > > {
> > >  NRSETS: 1
> > >  RECORDS: {
> > >  SET: {
> > >  ID: 1
> > >  TARGETS: {
> > >  DEST: {
> > >  URI: sip:X.X.X.X:5060
> > >  FLAGS: AP
> > >  PRIORITY: 0
> > >  ATTRS: {
> > >  BODY: maxload=20
> > >  DUID:
> > >  MAXLOAD: 20
> > >  WEIGHT: 0
> > >  RWEIGHT: 0
> > >  SOCKET:
> > >  }
> > >  LATENCY: {
> > >  AVG: 4.13
> > >  STD: 0.398000
> > >  EST: 4.006000
> > >  MAX: 6
> > >  TIMEOUT: 0
> > >  }
> > >  }
> > >  DEST: {
> > >  URI: sip:X.X.X.X:5060
> > >  FLAGS: AP
> > >  PRIORITY: 0
> > >  ATTRS: {
> > >  BODY: maxload=20
> > >  DUID:
> > >  MAXLOAD: 20
> > >  WEIGHT: 0
> > >  RWEIGHT: 0
> > >  SOCKET:
> > >  }
> > >  LATENCY: {
> > >  AVG: 22.282000
> > >  STD: 2.345000
> > >  EST: 23.075000
> > >  MAX: 42
> > >  TIMEOUT: 0
> > >  }
> > >  }
> > >  }
> > >  }
> > >  }
> > > }
> > >
> > >
> > >
> > > --
> > > ⢀⣴⠾⠻⢶⣦⠀
> > > ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> > > ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
> > > ⠈⠳⣄
> > >
> > > __
> > > Kamailio - Users Mailing List - Non Commercial Discussions
> > >* sr-users@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

__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@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


Re: [SR-Users] dispatcher lb

2022-01-22 Thread Gokan Atmaca
> Maybe a SIP capture can help.
Thanks, The problem also appeared on the ip phone. I fixed it. it is
working now. :)

On Fri, Jan 21, 2022 at 11:05 PM Social Boh  wrote:
>
> Maybe a SIP capture can help.
>
> Regards
>
> ---
> I'm SoCIaL, MayBe
>
> El 21/01/2022 a las 3:01 p. m., Gokan Atmaca escribió:
> > Hello
> >
> > I'm load balancing with Dispatcher. The call comes in but hangs up
> > without picking up the phone. What could be the problem? The settings
> > are as follows.
> >
> >
> > dispatcher.list
> > 1 sip:18.X.X.X.X:5060 0 0 maxload=20
> > 1 sip:67.X.X.X.X:5060 0 0 maxload=20
> >
> >
> > # Dispatch requests
> > route[DISPATCH] {
> > # round robin dispatching on gateways group '1'
> > if(!ds_select_dst("1", "4"))
> >  {
> > send_reply("404", "No destination");
> > exit;
> >  }
> >  xlog("L_DBG", "--- SCRIPT: going to <$ru> via <$du>\n");
> >  t_on_failure("RTF_DISPATCH");
> >  route(RELAY);
> >  exit;
> > }
> >
> >
> >
> > {
> >  NRSETS: 1
> >  RECORDS: {
> >  SET: {
> >  ID: 1
> >  TARGETS: {
> >  DEST: {
> >  URI: sip:X.X.X.X:5060
> >  FLAGS: AP
> >  PRIORITY: 0
> >  ATTRS: {
> >  BODY: maxload=20
> >  DUID:
> >  MAXLOAD: 20
> >  WEIGHT: 0
> >  RWEIGHT: 0
> >  SOCKET:
> >  }
> >  LATENCY: {
> >  AVG: 4.13
> >  STD: 0.398000
> >  EST: 4.006000
> >  MAX: 6
> >  TIMEOUT: 0
> >  }
> >  }
> >  DEST: {
> >  URI: sip:X.X.X.X:5060
> >  FLAGS: AP
> >  PRIORITY: 0
> >  ATTRS: {
> >  BODY: maxload=20
> >  DUID:
> >  MAXLOAD: 20
> >  WEIGHT: 0
> >  RWEIGHT: 0
> >  SOCKET:
> >  }
> >  LATENCY: {
> >  AVG: 22.282000
> >  STD: 2.345000
> >  EST: 23.075000
> >  MAX: 42
> >  TIMEOUT: 0
> >  }
> >  }
> >  }
> >  }
> >  }
> > }
> >
> >
> >
> > --
> > ⢀⣴⠾⠻⢶⣦⠀
> > ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> > ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
> > ⠈⠳⣄
> >
> > __
> > Kamailio - Users Mailing List - Non Commercial Discussions
> >* sr-users@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

__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@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


[SR-Users] dispatcher lb

2022-01-21 Thread Gokan Atmaca
Hello

I'm load balancing with Dispatcher. The call comes in but hangs up
without picking up the phone. What could be the problem? The settings
are as follows.


dispatcher.list
1 sip:18.X.X.X.X:5060 0 0 maxload=20
1 sip:67.X.X.X.X:5060 0 0 maxload=20


# Dispatch requests
route[DISPATCH] {
# round robin dispatching on gateways group '1'
   if(!ds_select_dst("1", "4"))
{
   send_reply("404", "No destination");
   exit;
}
xlog("L_DBG", "--- SCRIPT: going to <$ru> via <$du>\n");
t_on_failure("RTF_DISPATCH");
route(RELAY);
exit;
}



{
NRSETS: 1
RECORDS: {
SET: {
ID: 1
TARGETS: {
DEST: {
URI: sip:X.X.X.X:5060
FLAGS: AP
PRIORITY: 0
ATTRS: {
BODY: maxload=20
DUID:
MAXLOAD: 20
WEIGHT: 0
RWEIGHT: 0
SOCKET:
}
LATENCY: {
AVG: 4.13
STD: 0.398000
EST: 4.006000
MAX: 6
TIMEOUT: 0
}
}
DEST: {
URI: sip:X.X.X.X:5060
FLAGS: AP
PRIORITY: 0
ATTRS: {
BODY: maxload=20
DUID:
MAXLOAD: 20
WEIGHT: 0
RWEIGHT: 0
SOCKET:
}
LATENCY: {
AVG: 22.282000
STD: 2.345000
EST: 23.075000
MAX: 42
TIMEOUT: 0
}
}
}
}
}
}



--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄

__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@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


Re: [SR-Users] RR balance kamailio

2022-01-15 Thread Gokan Atmaca
Sorry, diagram e-mail also slipped. The truth is as follows.

Voip-ISP --- (ip_trunk-udp) --- Kamailio ---(balance-rr)--- sip1/2
On Sun, Jan 16, 2022 at 9:46 AM Gokan Atmaca  wrote:
>
> 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.@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@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  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  On Behalf Of Gokan 
> > Atmaca
> > Sent: Wednesday, January 12, 2022 9:52 PM
> > To: sr-users@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.00
> > STD: 0.00
> > EST: 0.00
> > MAX: 0
> > TIMEOUT: 0
> > }
> > }
> > DEST: {
> > URI: sip:Y.Y.Y.Y
> > FLAGS: AP
> > PRIORITY: 0
> > LATENCY: {
> > AVG: 0.00
> > STD: 0.00
> > EST: 0.00
> > MAX: 0
> > TIMEOUT: 0
> > }
> &

Re: [SR-Users] RR balance kamailio

2022-01-15 Thread Gokan Atmaca
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.@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@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  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  On Behalf Of Gokan Atmaca
> Sent: Wednesday, January 12, 2022 9:52 PM
> To: sr-users@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.00
> STD: 0.00
> EST: 0.00
> MAX: 0
> TIMEOUT: 0
> }
> }
> DEST: {
> URI: sip:Y.Y.Y.Y
> FLAGS: AP
> PRIORITY: 0
> LATENCY: {
> AVG: 0.00
> STD: 0.00
> EST: 0.00
> 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 - Use

[SR-Users] RR balance kamailio

2022-01-12 Thread Gokan Atmaca
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.00
STD: 0.00
EST: 0.00
MAX: 0
TIMEOUT: 0
}
}
DEST: {
URI: sip:Y.Y.Y.Y
FLAGS: AP
PRIORITY: 0
LATENCY: {
AVG: 0.00
STD: 0.00
EST: 0.00
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@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