Hi,
Call to a number forwarded to a FAX by using two Kamailio proxies.
(INVITE) --> KamailioA --> GW1 --> KamailioB --> GW2 --> FAX
FAX --> (RE-INVITE) --> GW2 --> KamailioB --> (TO Header being corrupted)
KamailioB is corrupting TO header when receiving RE-INVITE and causing the call to fail.
1) Only one "uac_replace_from()" is being used in each Kamailio.
2) GW1 is adding +1 (using E164 format) to URI and FROM headers.
I was wondering if any of the above might cause the TO header corruption.
Any help would be appreciated.
AL
Hi
I have setup dispatcher failover on Kamailio 5.1 as below. If destination X.X.X.X is down, traffic should be routed to Y.Y.Y.Y.
The failover is working but every time after 30 sec Timeout. Is there a way to setup health check properly so the failed destination can be ignored while it is down?
Your help is greatly appreciated,
AL
# dispatcher.list
1 sip:X.X.X.X:5060 0 0
1 sip:Y.Y.Y.Y:5060 0 0
# ----- dispatcher params -----
modparam("dispatcher", "list_file", "/usr/local/etc/kamailio/dispatcher.list")
modparam("dispatcher", "flags", 2)
modparam("dispatcher", "ds_ping_interval", 10)
modparam("dispatcher", "dst_avp", "$avp(AVP_DST)")
modparam("dispatcher", "grp_avp", "$avp(AVP_GRP)")
modparam("dispatcher", "cnt_avp", "$avp(AVP_CNT)")
modparam("dispatcher", "sock_avp", "$avp(AVP_SOCK)")
modparam("dispatcher", "ds_probing_mode", 1)
modparam("dispatcher", "ds_inactive_threshold", 4)
modparam("dispatcher", "ds_ping_latency_stats", 1)
modparam("dispatcher", "ds_probing_threshold", 1)
# Dispatch requests
route[DISPATCH] {
if(!ds_select_dst("1", "4")) {
send_reply("503", "No destination");
exit;
}
t_on_failure("DISPATCH_FAILOVER");
route(RELAY);
exit;
}
# Failure Route
failure_route[DISPATCH_FAILOVER]{
if (t_is_canceled()) exit;
if(!ds_next_dst()) {
send_reply("503", "Out of gateways");
exit;
}
t_on_failure("DISPATCHER_FAILOVER");
t_relay();
}
Hi,
I was wondering what is the recommended approach to implement a failover on several destination SIP servers:
1) using DNS SRV records
2) using dispatcher list
3) combination of both.
Thanks,
AL
Hello Members,
Kamailio acc module is not inserting cdr into MySQL DB, sometimes it works
and sometimes didn't, the number of parameters/values are similar in failed
as well success scenario. I also check with tcpdump for MySQL requests,
unfortunately, Kamailio didn't issue insert query toward DB server, so it
is clear to me that the MySQL server is nothing to do with failed queries.
Please guide me on what I should do to find and fix the issue.
Kamailio Installed version :
kamailio -v
version: kamailio 5.4.1 (x86_64/linux) 2ca223
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_BLACKLIST,
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: 2ca223
compiled on 12:51:24 Sep 21 2020 with gcc 6.3.0
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_logic.c:691]: tmcb_func(): acc callback called for t(0x7fe29b2a7870)
event type 512, reply code 200
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_logic.c:413]: should_acc_reply(): probing acc state - code: 200 flags:
0x6
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_logic.c:446]: should_acc_reply(): acc is on
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 0
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 1
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 2
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 4
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 5
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 6
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 7
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 8
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 9
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 10
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 11
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 12
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 13
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 16
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 17
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 19
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 20
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 22
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 26
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 28
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 29
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 32
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 6, index i 33
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: tm
[t_hooks.c:256]: run_trans_callbacks_internal(): DBG: trans=0x7fe29b2a7870,
callback type 512, id 0 entered
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 0
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 1
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 2
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 3
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 4
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 5
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 8
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 9
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 11
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 12
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 14
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 18
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 20
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 21
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 24
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 25
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: ERROR: acc
[acc_cdr.c:267]: db_write_cdr(): failed to insert into database
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 0
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 1
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 2
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 3
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 4
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 5
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 8
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 9
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 11
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 12
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 14
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 18
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 20
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 21
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 24
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: acc
[acc_extra.h:63]: free_strar_mem(): Freeing memory, type is 2,
message_index 3, index i 25
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: ERROR: acc
[acc_cdr.c:682]: cdr_on_end_confirmed(): failed to write cdr!
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103637]: DEBUG: tm
[t_reply.c:1758]: cleanup_uac_timers(): RETR/FR timers reset
Jan 28 13:38:29 /root/mykamailio/sbin/kamailio[103682]: DEBUG: tm
[timer.c:634]: wait_handler(): finished transaction: 0x7fe29727ba88
(p:0x7fe294d27288/n:0x7fe294d27288)
--
Regards
M Arqum
Hi there!
Go ahead I apologize for my English.
I have a Kamailio 5.4 with the DISPATCHER module and UAC enabled (for
remote REGISTER), the DISPATCHER has several SETIDs, and they have one
or more Asterisk balanced behind it.
In Kamalio script, when an endpoint does REGISTER, I enable the REGISTER
of the UAC module. And when it expires or expires=0 I disable the
REGISTER in the UAC module.
In the UACREG table in the database, L_UUID (unique key), L_USERNAME,
R_USERNAME, and AUTH_USERNAME have the same value. For example CST100EXT100.
Knowing that the DISPATCHER and UAC modules have no relationship, but
that when a SETID has several balanced Asterisks, how can I make the UAC
module send the REGISTER to all the Asterisks of a SETID?
Clarifications;
1.- I cannot update the Asterisk, which are currently in version 11.
They do not support PATH.
2.- I can modify the content of the UACREG table so that l_uuid has a
suffix '_X'.
3.- Call jsonrpc_exec several times to enable the REGISTER in the UAC
module.
(diff emulated)
< jsonrpc_exec ('{"id": 1, "jsonrpc": "2.0", "method": "uac.reg_enable",
"params": ["l_uuid", "s: $ au"]}') ;
> jsonrpc_exec ('{"id": 1, "jsonrpc": "2.0", "method":
"uac.reg_enable", "params": ["l_uuid", "s: $ au_1"]}') ;
> jsonrpc_exec ('{"id": 1, "jsonrpc": "2.0", "method":
"uac.reg_enable", "params": ["l_uuid", "s: $ au_2"]}') ;
> jsonrpc_exec ('{"id": 1, "jsonrpc": "2.0", "method":
"uac.reg_enable", "params": ["l_uuid", "s: $ au_3"]}') ;
But I want to know if there is any more elegant way to do this.
Cheers, JV
--
Logo <http://www.voiper.es/>
Javier Valencia | CTO
Centro de Negocios Martín Buendía
Camino de las Cañadas, nº 1C, Portal 1, 2ºG
29649 Mijas (Málaga)
# 951562080 (T) <tel:951562080> | 687486759 (M) <tel:687486759>
# www.voiper.es <http://www.voiper.es/>
------------------------------------------------------------------------
AVISO LEGAL
-----------
Este mensaje contiene información confidencial destinada para ser leída
exclusivamente por el destinatario. Queda prohibida la reproducción,
publicación, divulgación, total o parcial del mensaje así como el uso no
autorizados por el emisor. En caso de recibir el mensaje por error, se ruega
su comunicación al remitente lo antes posible. Por favor, indique
inmediatamente si usted o su empresa no aceptan comunicaciones de este tipo
por Internet.
Las opiniones, conclusiones y demás información incluida en este mensaje que
no esté relacionada con asuntos profesionales de SMART RECARGAS, S.L, se
entenderá que nunca se ha dado, ni está respaldado por el mismo.
Responsable del Tratamiento de Datos
------------------------------------
SMART RECARGAS , SL
Camino de las Cañadas, 1C PORTAL 1 2º G
29651 MIJAS COSTA (MALAGA)
Is it possible to send arbitrary text messages triggered by an external
application (evapi/http) to registered SIP clients via websocket?
The following doesn't seem to do anything.
KSR.corex.send_data("sip:user@example.com", "Message at $Ts");
--
--
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee, you should not
disseminate, distribute or copy this email. Please notify the sender
immediately by email if you have received this email by mistake and delete
this email from your system. Email transmission cannot be guaranteed to be
secure or error-free, as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender,
therefore, does not accept liability for any errors or omissions in the
contents of this message which arise as a result of email transmission. If
verification is required, please request a hard-copy version.