I'm returning to this thread, since after some more testing, I found that
loose_route() does not (at least always) detect that a pair of route
headers denotes itself.
In config I have defined:
listen=tls:192.x.x.x:8005 name "ext_tls"
modparam("rr", "sockname_mode", 1)
and Route header looks like this:
ROUTE: <sip:tenantX.teams.tutpro.com:8005;transport=tls;r2=on;sn=ext_tls;lr;n1;avp=savp;pm=0>,<sip:192.x.x.x:5070;transport=tcp;r2=on;lr;n1;avp=savp;pm=0>
Then this code:
…
[View More]loose_route();
if ($du != "") {
xinfo("Routing in-dialog $rm <$ru> from <$fu> to <$du> based on route uri\n");
}
produces to syslog:
INFO: Routing in-dialog ACK <...> from <...> to <...> based on route uri
-- Juha
[View Less]
Hello !
I will have to connect my Kamailio proxies to a routing server which will
receive INVITE and replies with 302 and a list of a SIP Contact where
(gateways, IP, prefixes or whatever we want) the call must be routed to.
I'm wondering what would be the best approach to handle with Kamalio those
302 and then proceed with the routing?
For the moment, we use to work with carrierroute. But, since the redirect
server will take the routing decision, I believe that carrierroute will no
be …
[View More]useful anymore.
Thank you for your inputs/experience.
Regards,
Igor.
--
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus
[View Less]
Hello,
I started from scratch by getting this Docker image:
https://hub.docker.com/layers/kamailio/kamailio/5.4.4-trusty/images/sha256-…
Then running:
docker pull kamailio/kamailio:5.4.4-trusty
Then starting an container with the command:
docker run -d --name mykamailio -h mykamailio -p "5060-5061:5060-5061" -p "5060:5060/udp" -p "5064-5065:5064-5065" -p "5064-5065:5064-5065/udp" -p "7000-7001:7000-7001" -p "7000:7000/udp" -e "KAMAILIO_LOG_LEVEL=info" -e "KAMAILIO_ENABLE_ROLES=websockets,…
[View More]message,presence_query,presence_sync,presence_notify_sync,registrar_sync" -e "RABBITMQ_HOSTS=rabbitmq.local" --cap-add IPC_LOCK --cap-add SYS_NICE --cap-add SYS_RESOURCE --cap-add NET_RAW kamailio/kamailio:5.4.4-trusty
I get into container using cli and ran:
Kamtcl start
Then container stopped with this log:
Listening on
udp: 127.0.0.1:5060
udp: 172.17.0.4:5060
tcp: 127.0.0.1:5060
tcp: 172.17.0.4:5060
Aliases:
tcp: mykamailio:5060
tcp: localhost:5060
0(1) INFO: <core> [core/tcp_main.c:4984]: init_tcp(): using epoll_lt as the io watch method (auto detected)
udp: mykamailio:5060
udp: localhost:5060
0(1) INFO: rr [../outbound/api.h:52]: ob_load_api(): unable to import bind_ob - maybe module is not loaded
0(1) INFO: rr [rr_mod.c:185]: mod_init(): outbound module not available
0(1) INFO: <core> [main.c:2854]: main(): processes (at least): 33 - shm size: 67108864 - pkg size: 8388608
0(1) INFO: <core> [core/udp_server.c:154]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992
0(1) INFO: <core> [core/udp_server.c:206]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
0(1) INFO: <core> [core/udp_server.c:154]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992
0(1) INFO: <core> [core/udp_server.c:206]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
21(28) INFO: jsonrpcs [jsonrpcs_sock.c:443]: jsonrpc_dgram_process(): a new child 0/28
23(30) INFO: ctl [io_listener.c:214]: io_listen_loop(): io_listen_loop: using epoll_lt io watch method (config)
0(1) ALERT: <core> [main.c:780]: handle_sigs(): child process 77 exited normally, status=255
0(1) INFO: <core> [main.c:808]: handle_sigs(): terminating due to SIGCHLD
2(9) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
1(8) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
4(11) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
5(12) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
7(14) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
10(17) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
8(15) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
9(16) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
3(10) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
11(18) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
14(21) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
17(24) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
15(22) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
12(19) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
18(25) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
6(13) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
13(20) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
16(23) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
23(30) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
22(29) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
19(26) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
21(28) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
20(27) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
32(39) CRITICAL: <core> [core/pass_fd.c:277]: receive_fd(): EOF on 13
32(39) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
25(32) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
27(34) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
29(36) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
30(37) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
26(33) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
28(35) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
31(38) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
24(31) INFO: <core> [main.c:863]: sig_usr(): signal 15 received
0(1) ERROR: ctl [ctl.c:390]: mod_destroy(): ERROR: ctl: could not delete unix socket /var/run/kamailio//kamailio_ctl: No such file or directory (2)
0(1) INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Any idea about what could be the problem?
Thank you in advance
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
Este mensaje y los ficheros adjuntos pueden contener información confidencial destinada solamente a la(s) persona(s) mencionadas anteriormente y pueden estar protegidos por secreto profesional.
Si usted recibe este correo electrónico por error, gracias por informar inmediatamente al remitente y destruir el mensaje.
Al no estar asegurada la integridad de este mensaje sobre la red, Atos no se hace responsable por su contenido. Su contenido no constituye ningún compromiso para el grupo Atos, salvo ratificación escrita por ambas partes.
Aunque se esfuerza al máximo por mantener su red libre de virus, el emisor no puede garantizar nada al respecto y no será responsable de cualesquiera daños que puedan resultar de una transmisión de virus.
[View Less]
Hi Guys,
Hope all are well?
We are looking to implement kamailio with cockroachdb due to the advantages it gives us in terms of postgres management and clustering.
I can see from a previous string http://sip-router.1086192.n5.nabble.com/CockroachDB-and-Kamailio-td189233.h… that someone has attempted this and even created their own branch.
Has any further work been done on this, and if so has anyone got any advice/tips relating to it? As I am nervous about potentially using a branch and not …
[View More]a general release of kamailio moving forwards.
I appreciate you cant support all database types but I would just be interested to hear people’s thoughts on the topic.
Many thanks!
Jon
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
[View Less]
Hello,
I have 2 stateful kamailio servers that receive incoming requests, load balanced across the 2 servers by our carrier trunk partners (outside of our control).
I am looking at putting certain invites from these trunks into pipelimit to rate limit under some conditions but I have some questions:
1. How will pipelimit establish rates when requests can come in to either of my servers?
2. If pipelimit decides it is time to limit the requests, will both servers respect that limit?
3. does …
[View More]pipelimit rely on a db or can it use dmq, redis or other methods for cross-server communication?
4. Is there a maximum number of pipes that can be defined?
Hope somebody can help me answer these questions.
With every blessing,
—
Daniel Donoghue
[View Less]
With the following config
# ----- http_client params -----
modparam("http_client", "httpredirect", 0)
modparam("http_client", "connection_timeout", 2)
modparam("http_client", "keep_connections", 1)
modparam("http_client", "query_result", 0)
modparam("http_client", "httpcon", "api=>https://api.example.com");
and after calling the following from request_route,
$xavu(http=>rs)=http_connect("api",
"/kamailio/message",
"application/json", "$var(message_api)",
"$xavu(http=>rb)"…
[View More]);
if($xavu(http=>rs)==200) {
jansson_get("result.code", $xavu(http=>rb), "$xavu(http=>code)");
jansson_get("result.message", $xavu(http=>rb), "$xavu(http=>message)");
sd_journal_print("LOG_DEBUG", "[$cfg(route)] Result: $xavu(http=>code),
$xavu(http=>message)");
sl_send_reply("202", "Accepted");
exit;
}
I see the following in the log:
INFO: <core> [main.c:857]: sig_usr(): signal 13 received
It doesn't seem to have any negative effect, but I am wondering if it's
something I should look into. If so, any pointers on where/how to begin?
--
Anthony - https://messinet.com
F9B6 560E 68EA 037D 8C3D D1C9 FF31 3BDB D9D8 99B6
[View Less]
Hi,
So I’m tasked with setting up a SIP trunk to a Perimeta SBC (https://www.metaswitch.com/products/perimeta-sbc).
Apparently,
> Perimeta hides the topology of networks by rewriting or removing topology-sensitive information from SIP messages. By default, your Session Controller will make the following changes to SIP messages.
>
> The Session Controller generates new dialog identifiers (call-IDs, From tags and To tags) for each side of the call, so that it does not …
[View More]expose information about your core network to your access networks.
> The Session Controller strips Record-Route and Route information from the message.
> The Session Controller rewrites Contact and Via headers so that the source IP address is replaced with the local address of the outbound adjacency.
> The Session Controller replaces the IP addresses in c= lines in SDP with the addresses it has allocated for media forwarding. For more information on this, see Media addresses and gates.
My problem is this: When the Perimeta SBC sends its first INVITE (I can't say anything about any succeeding INVITEs yet) it's added a Record-Route header with the "lr" parameter included which, as far as I can see makes Kamailio think it should use loose routing which is all well I think. But when the SBC sends an ACK for the "200 OK" from the Kamailio side it doesn't include any Route headers and I think that makes it hard for Kamailio (at least with the standard script which is basically what I'm using) to know where to relay the ACK, at least it makes the t_check_trans() call in WITHINDLG after 'is_method("ACK")' return false which makes the script ignore the ACK.
Any thoughts or suggestions on how to handle this?
Thanks in advance,
Björn Bylander
[View Less]
Hi!
I'm trying to use the ldap / db2_ldap module in kamailio but I'm stuck because the docs seem to either be outdated or me being on the wrong track.
>From what I understand, I need a single ldap.conf but there are two example files with different syntax:
1) https://github.com/kamailio/kamailio/blob/master/src/modules/db2_ldap/ldap.…
2) https://github.com/kamailio/kamailio/blob/master/src/modules/ldap/etc/ldap.…
I'm already using ldap realtime for asterisk and want to switch kamailio to …
[View More]use the same objects by using this schema:
https://github.com/kamailio/kamailio/blob/master/src/modules/db2_ldap/ser.s…
When using syntax from (1) I receive this error:
ERROR: ldap [ldap_mod.c:198]: mod_init(): no section found in config_file [/etc/kamailio/ldap.cfg]
I double-checked my conf and it matches (1).
When using (2), I got an error, telling me I left some tables unconfigured (even when mixing both syntax).
What is the correct syntax to use ldap as my auth module and replace mysql auth tables?
Thank you.
Kind regards
Kevin
[View Less]