Good Day List,
I am very new to Kamailio and trying to understand at 10,000 feet how it
may be able to be used. I was wondering if the following Scenario would be
possible and if so what modules would accomplish this aspect. (Any URLs
for further reading would be appreciated)
Scenario:
Given
1) SoftPhones will register as follows
sip uri, user(a)subdomain.myvoipserver.com
2) The following users are authorized to connect (this would be stored in a
config file etc):
1001,1003,1007 are valid users for apples.myvoipserver.com
1001,2213,5817 are valid users for oranges.myvoipserver.com
Is it possible for Kamailio to perform the following evaluation and then
take the appropriate steps:
If [domain is apples.myvoipserver.com AND user portion is 1001]
then
Forward/Proxy the SIP/RTP packets to
Asterisk server responsible for registration and audio for the domain
apples.myvoipserver.com
Else if [domain is oranges.myvoipserver.com AND user portion is 2213]
then
Forward/Proxy the SIP/RTP packets to
Asterisk server responsible for registration and audio for the domain
oranges.myvoipserver.com
Else
Silently Drop packets etc.
given the above evaluation rules, a user who tries to register as
1001(a)apples.myvoipserver.com
would be granted access and their SIP Packets and subsequent RTP would be
forwarded to the asterisk server at apples.myvoipserver.com, where said
server would take care of the Registration, and any subsequent calls,
subscriptions, Options etc.
1004@ apples.myvoipserver.com
Would not match the authorized list for apples.myvoipserver.com
(1001,1003,1007),
therefore this registration attempt would be silently dropped
2213(a)apples.myvoipserver.com
would be granted access and their SIP Packets and subsequent RTP would be
forwarded to the asterisk server at oranges.myvoipserver.com, where said
server would take care of the Registration, and any subsequent calls,
subscriptions, Options etc.
Thanks for any information to assist me in understanding how this would
work.
~ron
Hello Ali,
(please keep the sr-users list in CC, that other people can also participate)
Remove the “-D” from your Kamailio command line – then the warning will disappear. This is also necessary because you want to have Kamailio listen on several addresses. If you want to test it more in a production like setting, you should also remove the “-E” from the command line. You will find the logging in your system log then.
Cheers,
Henning
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
From: ali mahfouz <arm037(a)usal.edu.lb>
Sent: Wednesday, July 10, 2019 11:54 AM
To: Henning Westerholt <hw(a)skalatan.de>
Subject: Re: [SR-Users] kamailio warning
Dear Mr.Henning,
I am working on high availability on two Kamailio servers connected to the database using keepalived and when I am testing Kamailio
I got this issue and I have no idea about fixing it
i am trying to see by this command
kamailio -E -D -f /etc/kamailio/kamailio.cfg
0(16101) INFO: <core> [core/sctp_core.c:74]: sctp_core_check_support(): SCTP API not enabled - if you want to use it, load sctp module
Listening on
udp: 10.10.10.20:5060<http://10.10.10.20:5060>
udp: 10.10.10.3:5060<http://10.10.10.3:5060>
tcp: 10.10.10.20:5060<http://10.10.10.20:5060>
tcp: 10.10.10.3:5060<http://10.10.10.3:5060>
Aliases:
tcp: 10.10.10.3:5060<http://10.10.10.3:5060>
tcp: 10.10.10.20:5060<http://10.10.10.20:5060>
udp: 10.10.10.3:5060<http://10.10.10.3:5060>
udp: 10.10.10.20:5060<http://10.10.10.20:5060>
*: sip.domain.local:*
WARNING: no fork mode and more than one listen address found (will use only the first one)
0(16101) INFO: <core> [core/tcp_main.c:4721]: init_tcp(): using epoll_lt as the io watch method (auto detected)
0(16101) INFO: jsonrpcs [jsonrpcs_sock.c:197]: jsonrpc_dgram_mod_init(): the socket /var/run/kamailio/kamailio_rpc.sock already exists, trying to delete it...
0(16101) INFO: rr [../outbound/api.h:52]: ob_load_api(): unable to import bind_ob - maybe module is not loaded
0(16101) INFO: rr [rr_mod.c:177]: mod_init(): outbound module not available
0(16101) INFO: <core> [main.c:2669]: main(): processes (at least): 16 - shm size: 67108864 - pkg size: 8388608
0(16101) INFO: <core> [core/udp_server.c:153]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992
0(16101) INFO: <core> [core/udp_server.c:205]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
0(16101) WARNING: <core> [main.c:1347]: main_loop(): using only the first listen address (no fork)
6(16131) INFO: ctl [io_listener.c:214]: io_listen_loop(): io_listen_loop: using epoll_lt io watch method (config)
5(16130) INFO: jsonrpcs [jsonrpcs_sock.c:443]: jsonrpc_dgram_process(): a new child 0/16130
^C 6(16131) INFO: <core> [main.c:836]: sig_usr(): signal 2 received
5(16130) INFO: <core> [main.c:836]: sig_usr(): signal 2 received
1(16126) INFO: <core> [main.c:836]: sig_usr(): signal 2 received
0(16101) ALERT: <core> [main.c:751]: handle_sigs(): child process 16131 exited normally, status= 3(16128) INFO: <core> [main.c:836]: sig_usr(): signal 2 received
0
0(16101) ALERT: <core> [main.c:751]: handle_sigs(): child process 16126 exited normally, status= 4(16129) INFO: <core> [main.c:836]: sig_usr(): signal 2 received
0
0(16101) ALERT: <core> [main.c:751]: handle_sigs(): child process 16128 exited normally, status=0
0(16101) ALERT: <core> [main.c:751]: handle_sigs(): child process 16129 exited normally, status=0
0(16101) ALERT: <core> [main.c:751]: handle_sigs(): child process 16130 exited normally, status=0
0(16101) INFO: <core> [main.c:778]: handle_sigs(): dont_fork turned on, living on
0(16101) INFO: <core> [main.c:772]: handle_sigs(): SIGCHLD received, but no child has stopped, ignoring it
0(16101) NOTICE: <core> [main.c:709]: handle_sigs(): Thank you for flying kamailio!!!
2(16127) INFO: <core> [main.c:836]: sig_usr(): signal 15 received
0(16101) INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Please help
thank you for giving time from your time
On Wed, Jul 10, 2019 at 12:40 PM Henning Westerholt <hw(a)skalatan.de<mailto:hw@skalatan.de>> wrote:
Hello Ali,
the first warning is related about the starting mode of Kamailio. You should not start it with “no forking mode” if you want to get rid of it. Have a look to your command line parameters: “-D” is the one to change.
Cheers,
Henning
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
From: sr-users <sr-users-bounces(a)lists.kamailio.org<mailto:sr-users-bounces@lists.kamailio.org>> On Behalf Of ali mahfouz
Sent: Wednesday, July 10, 2019 8:46 AM
To: sr-users(a)lists.kamailio.org<mailto:sr-users@lists.kamailio.org>; sr-users-request(a)lists.kamailio.org<mailto:sr-users-request@lists.kamailio.org>; sr-users-owner(a)lists.kamailio.org<mailto:sr-users-owner@lists.kamailio.org>
Subject: [SR-Users] kamailio warning
WARNING: no fork mode and more than one listen address found (will use only the first one)
0(8777) INFO: <core> [core/tcp_main.c:4721]: init_tcp(): using epoll_lt as the io watch method (auto detected)
0(8777) INFO: jsonrpcs [jsonrpcs_sock.c:197]: jsonrpc_dgram_mod_init(): the socket /var/run/kamailio/kamailio_rpc.sock already exists, trying to delete it...
0(8777) INFO: rr [../outbound/api.h:52]: ob_load_api(): unable to import bind_ob - maybe module is not loaded
0(8777) INFO: rr [rr_mod.c:177]: mod_init(): outbound module not available
0(8777) INFO: <core> [main.c:2669]: main(): processes (at least): 16 - shm size: 67108864 - pkg size: 8388608
0(8777) INFO: <core> [core/udp_server.c:153]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992
0(8777) INFO: <core> [core/udp_server.c:205]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
0(8777) WARNING: <core> [main.c:1347]: main_loop(): using only the first listen address (no fork)
5(8782) INFO: jsonrpcs [jsonrpcs_sock.c:443]: jsonrpc_dgram_process(): a new child 0/8782
6(8783) INFO: ctl [io_listener.c:214]: io_listen_loop(): io_listen_loop: using epoll_lt io watch method (config)
^C 6(8783) INFO: <core> [main.c:836]: sig_usr(): signal 2 received
5(8782) INFO: <core> [main.c:836]: sig_usr(): signal 2 received
4(8781) INFO: <core> [main.c:836]: sig_usr(): signal 2 received
3(8780) INFO: <core> [main.c:836]: sig_usr(): signal 2 received
1(8778) INFO: <core> [main.c:836]: sig_usr(): signal 2 received
0(8777) ALERT: <core> [main.c:751]: handle_sigs(): child process 8782 exited normally, status=0
0(8777) ALERT: <core> [main.c:751]: handle_sigs(): child process 8778 exited normally, status=0
0(8777) ALERT: <core> [main.c:751]: handle_sigs(): child process 8781 exited normally, status=0
0(8777) ALERT: <core> [main.c:751]: handle_sigs(): child process 8783 exited normally, status=0
0(8777) ALERT: <core> [main.c:751]: handle_sigs(): child process 8780 exited normally, status=0
0(8777) INFO: <core> [main.c:778]: handle_sigs(): dont_fork turned on, living on
0(8777) INFO: <core> [main.c:772]: handle_sigs(): SIGCHLD received, but no child has stopped, ignoring it
0(8777) NOTICE: <core> [main.c:709]: handle_sigs(): Thank you for flying kamailio!!!
2(8779) INFO: <core> [main.c:836]: sig_usr(): signal 15 received
0(8777) INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Hello,
Could someone help me to set a variable as a string in Kamailio?
At the moment i'm using the following statement:
*$var(account)=$(au{s.substr,0,8}); *
*xlogl("L_INFO", "[1234] Account: $var(* *account*
*)\n");*
which is working fine, but i need to change it into:
*$var(account)=$(au{s.select,0,-}{s.toupper})-$(au{s.select,1,-});*
By doing this I'm getting the error:
*[core/rvalue.c:1007]: rval_get_int(): automatic string to int conversion
for "AT" failed[core/rvalue.c:1912]: rval_expr_eval_int(): rval expression
conversion to int failed (729,30-729,59)*
I tried also:
*$var(account)="" + "$(au{s.select,0,-}{s.toupper})-$(au{s.select,1,-})";*
But, then I'm getting:
*Account = $(au{s.select,0,-}{s.toupper})-$(au{s.select,1,-})*
instead of the value.
What is the correct way to set it?
Thank you.
WARNING: no fork mode and more than one listen address found (will use only
the first one)
0(8777) INFO: <core> [core/tcp_main.c:4721]: init_tcp(): using epoll_lt as
the io watch method (auto detected)
0(8777) INFO: jsonrpcs [jsonrpcs_sock.c:197]: jsonrpc_dgram_mod_init():
the socket /var/run/kamailio/kamailio_rpc.sock already exists, trying to
delete it...
0(8777) INFO: rr [../outbound/api.h:52]: ob_load_api(): unable to import
bind_ob - maybe module is not loaded
0(8777) INFO: rr [rr_mod.c:177]: mod_init(): outbound module not available
0(8777) INFO: <core> [main.c:2669]: main(): processes (at least): 16 - shm
size: 67108864 - pkg size: 8388608
0(8777) INFO: <core> [core/udp_server.c:153]: probe_max_receive_buffer():
SO_RCVBUF is initially 212992
0(8777) INFO: <core> [core/udp_server.c:205]: probe_max_receive_buffer():
SO_RCVBUF is finally 425984
0(8777) WARNING: <core> [main.c:1347]: main_loop(): using only the first
listen address (no fork)
5(8782) INFO: jsonrpcs [jsonrpcs_sock.c:443]: jsonrpc_dgram_process(): a
new child 0/8782
6(8783) INFO: ctl [io_listener.c:214]: io_listen_loop(): io_listen_loop:
using epoll_lt io watch method (config)
^C 6(8783) INFO: <core> [main.c:836]: sig_usr(): signal 2 received
5(8782) INFO: <core> [main.c:836]: sig_usr(): signal 2 received
4(8781) INFO: <core> [main.c:836]: sig_usr(): signal 2 received
3(8780) INFO: <core> [main.c:836]: sig_usr(): signal 2 received
1(8778) INFO: <core> [main.c:836]: sig_usr(): signal 2 received
0(8777) ALERT: <core> [main.c:751]: handle_sigs(): child process 8782
exited normally, status=0
0(8777) ALERT: <core> [main.c:751]: handle_sigs(): child process 8778
exited normally, status=0
0(8777) ALERT: <core> [main.c:751]: handle_sigs(): child process 8781
exited normally, status=0
0(8777) ALERT: <core> [main.c:751]: handle_sigs(): child process 8783
exited normally, status=0
0(8777) ALERT: <core> [main.c:751]: handle_sigs(): child process 8780
exited normally, status=0
0(8777) INFO: <core> [main.c:778]: handle_sigs(): dont_fork turned on,
living on
0(8777) INFO: <core> [main.c:772]: handle_sigs(): SIGCHLD received, but no
child has stopped, ignoring it
0(8777) NOTICE: <core> [main.c:709]: handle_sigs(): Thank you for flying
kamailio!!!
2(8779) INFO: <core> [main.c:836]: sig_usr(): signal 15 received
0(8777) INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API
not initialized
hi
i would need to replicate behaviour of refresh watchers command at
mi_datagram module in an ipv6 system. but in such system i am not able to
bind this module in an iov6 address desoite its doc claims is possible
https://kamailio.org/docs/modules/4.4.x/modules/presence.html#idp21723212
hence not sure i will be able to use mi_datagram using ipv6 address unless
some user tells me he/shr could do succesfully
as module is quite old question is:
h¥w could i force kamailio to notify watchers of a subscriber in some other
way from an external application? any hints?
thanks
Hi,
I am trying to create an identity with permanent location in my system
using kamctl ul add command. Usually i have no issue doing that in IPv4
,example
kamctl ul add mcpttcontrolling sip:mcpttcontrolling@127.0.0.1:5070
it is OK
However when i do that using an IPv6 address i get following error:
kamctl ul add mcpttcontrolling sip:mcpttcontrolling@
[2001:470:1f21:219:20c:29ff:fedb:db6e]:5070
error: invalid SIP URI: sip:mcpttcontrolling@
[2001:470:1f21:219:20c:29ff:fedb:db6e]:5070
Let me know what you would need to investigate or what i am doing wrong for
adding a location with IPv6 Address using kamctl tool
Thanks
Albert
Hi!
I'm trying to get jannson_get working, but seems missing something.
Example is quite simple, actually taken from wiki
$var(result) = $null;
jansson_get("pi", '{"mystr":"my input string", "count":9000, "mybool":true, "pi":3.14159}', $var(result));
When running this part of code getting
ERROR: <core> [core/action.c:1139]: do_action(): runtime fixup failed for jansson_get param 3
ERROR: <core> [core/action.c:1518]: do_action(): run action error at: /etc/kamailio/kamailio.cfg:1030
Also tried with
jannson_get(".pi", ...);
jannson_get('/"pi"', ...);
and a bit others.
What am I missing?
kamailio 5.2.3
Thanks!
hi��
i have installed siremis successfully for the first time, but there is no guide to use siremis,
where can i find it, thanks
Best Regards & Thanks��
����
�ֻ���13401129519
���䣺quxiao(a)unioncast.cn
ְλ����C++��������ʦ
���ţ��з���
�����Vҕͨ�_���־W�j�Ƽ�����˾
Unioncast Digital Network Technology Co., Ltd. Beijing
��˾��ҳ��http://www.unioncast.cn/
һ�����ƶ�����Ӧ�÷����ṩ��
��ַ�������к������йش��ϴ��3�ź����Ƽ�����9��910��
�ʱࣺ100081