Hi Kamailio users,
I'm trying to setup Kamailio as a Diameter Routing Agent, but I just can't
seem to get the diameter_request() function to actually send a diameter
request, I just get a warning about no JSON Response:
*WARNING: ims_diameter_server [avp_helper.c:341]: addAVPsfromJSON(): No
JSON Response*
Inside my event route I've got one line to send the data to the peer
"ims-hss.localdomain":
*event_route[diameter:request]{
diameter_request("ims-hss.localdomain", $diameter_application,
$diameter_command, $diameter_request); xlog("Forwarded Diameter
Request");}*
Hard as I try I can't seem to get this request forwarded to this peer and
see that next xlog() line.
In the config file I've included the cdp_check_peer & cdp_has_app checks to
confirm the peer is up, and able to accept the request, (full config in
pastebin below)
I've defined the peers in the diametercfg.xml config file, and they're all
showing as online when I do a "kamcmd cdp.list_peers":
* FQDN: ims-hss.localdomain Details: {
State: I_Open Disabled: False
Last used: 0 Applications: {
appid:vendorid: 16777216:10415
appid:vendorid: 16777216:4491
appid:vendorid: 16777216:13019
appid:vendorid: 16777216:0 appid:vendorid:
16777217:10415 appid:vendorid:
16777221:10415 } }*
The source of avp_helper.c shows the warning is called if the length of the
JSON is <= 0, but as I'm feeding back out what I've received it's not 0, an
no recent major changes to the source, so I'm stumped as to why it's
catching this.
I'm running Kamailio 5.1.2 on Ubuntu 18.04 installed from Repos.
Full Kamailio Config: https://pastebin.com/afgqUfWr
Diameter CDP Config XML: https://pastebin.com/bVrBG8mG
Relevant Syslog: https://pastebin.com/ZY8z2kd4
Kamcmd cdp.list_peers: https://pastebin.com/cKi4JAHC
Any ideas as to what am I missing?
Thanks in advance!
Nick
Hi
how do we configure the S-CSCF, I-CSCF and P-CSCF in kamalio 5.2.3 to
authenicate with the HSS/PCRF,
please point us to document to configure the IMS modules
regards
Ganesh
Hi List,
I try to register to Deutsche Telekom and there product Deutschland Lan
siptrunk.
Thats works find but i see an intressting behaviour on selecting the right
outgoing interface.
Kamailio is sending out with tcp the REQUEST via first private ip
configured on that server (172.20.120.53).
There is no listen directive for that.
I forced NAPTR to use tcp or udp and i assume that kamailio got the right
dns answers.
On the list i read also that i can use force_send_socket to force the
outgoing request.
Now my idea - hey i use the $rP for the outgoing to select the right
outgoing listen directive.
$rP - reference to transport protocol of R-URI
But to my surprise the logfile told me thats "UDP" - it sends out via TCP
(thats okay).
Whats an good transport selector variable from kamailio that works?
event_route[tm:local-request] {
if(!is_method("OPTIONS")) {
xlog("L_INFO", "[tm:local-request] request [$rm] from [$fu] to
[$ru] [$rP]\n");
}
}
INFO: <script>: [tm:local-request] request [REGISTER] from [
sip:+49XXXXXXXX@sip-trunk.telekom.de] to [sip:sip-trunk.telekom.de] [UDP]
listen=tcp:2xx.xx.xx.xx:5060
listen=udp:2xx.xx.xx.xx:5060
listen=tls:2xx.xx.xx.xx:5061 advertise CFG_EXT_NAME:5061
listen=udp:172.20.120.55:5060
listen=udp:172.20.120.56:5060
listen=udp:172.20.120.57:5060
listen=udp:172.20.120.58:5060
listen=tcp:172.20.120.58:5060
use_dns_cache=on # use internal DNS cache
use_dns_failover=on # depends on internal DNS cache
dns_srv_loadbalancing=on
dns_try_naptr=on
dns_retr_time=1 # seconds before retrying a DNS request
dns_retr_no=3 # number of DNS retransmissions
dns_naptr_ignore_rfc=yes # ignore target NAPTR priority
dns_tcp_pref=30 # TCP has second-highest priority
dns_udp_pref=10 # use UDP with least priority
tcp_connection_lifetime=3605 # set higher than registration expires
#dont' restore
modparam("uac","restore_mode","none")
modparam("uac","restore_dlg",0)
## UAC REGISTER
#!ifdef WITH_UAC_REGISTER
modparam("uac", "reg_contact_addr", "CFG_PROD_IP")
modparam("uac", "reg_timer_interval", 10)
modparam("uac", "reg_retry_interval", 10)
modparam("uac", "reg_db_url", DBURL)
modparam("uac", "restore_mode", "none")
modparam("uac", "auth_username_avp", "$avp(AVP_AUTH_USERNAME)")
modparam("uac", "auth_password_avp", "$avp(AVP_AUTH_PASSWORD)")
modparam("uac", "auth_realm_avp", "$avp(AVP_AUTH_REALM)")
#!endif
ip a l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group
default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
link/ether 00:50:56:b5:c1:48 brd ff:ff:ff:ff:ff:ff
inet 172.20.120.53/24 brd 172.20.120.255 scope global ens192
valid_lft forever preferred_lft forever
inet 2xx.xx.xx.xx/29 scope global ens192
valid_lft forever preferred_lft forever
inet 172.20.120.56/24 scope global secondary ens192
valid_lft forever preferred_lft forever
inet 172.20.120.57/24 scope global secondary ens192
valid_lft forever preferred_lft forever
inet 172.20.120.58/24 scope global secondary ens192
valid_lft forever preferred_lft forever
inet 172.20.120.55/24 brd 172.20.120.255 scope global secondary ens192
valid_lft forever preferred_lft forever
inet6 fe80::250:56ff:feb5:c148/64 scope link
valid_lft forever preferred_lft forever
default via 172.20.120.253 dev ens192
172.20.120.0/24 dev ens192 proto kernel scope link src 172.20.120.53
2xx.xx.xx.xx/29 dev ens192 proto kernel scope link src 2xx.xx.xx.xx
--
Kind Regards
Mit freundlichen Grüßen
*Karsten Horsmann*
Hello,
I'm trying to restart phones with local-requests (from config or kamctl
cisco_restart). I can enable t_on_failure("REMOTE_AUTH") in
event_route[tm:local-request] but when 401 Reply comes in I get this
warning: "tm [t_reply.c:968]: run_failure_handlers(): no UAC support (1,
0)".
kamailio -V
version: kamailio 5.1.8 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, 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
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 6.3.0
How can I make it work? Thank you!
Regards,
Attila
Hello,
Its possible to made authentication via http request to third party Web-API
instead of storing users credentials into Dataqbase?
Now I looking on auth_ephemeral, but not sure is that my case... Don't see
when I have to put API url..
Could anyone, please, shed any light on this issue?
Hello guys,
I can't find any reference to a pseudovariable containing the request url,
i.e.: http://myserver/XMLRPC?server=1.2.3.4
I'd like to get that server variable and manipulate the dispatcher list...
the http client can't do XMLRPC or add a body, just an https request..
Any ideas?
Regards,
David Villasmil
email: david.villasmil.work(a)gmail.com
phone: +34669448337
Hi guys,
Is there a way to instruct the geoip2 module to reload its database without
a full restart of kamailio?
Maybe some rpc command or something? I haven't found anything in the docs
other than the comment about "Database is loaded at startup in cache."
which makes me assume that just overwriting the db file wouldn't be enough.
Any suggestions?
Thanks!!
Joel.
Greetings,
I'm doing VoiceMail detection using $sipt(redirection_number) from SIPT
module and i've been having some false positives on the detection.
I inspected further and noticed that in some cases
$sipt(redirection_number) returns old values from previous messages, which
makes me think that it's value is not being correctly refreshed. I'm using
this variable on a on_reply_route.
As far as i know, $sipt(redirection_number) is read only and can't be
refreshed by me in the code.
Here is an example :
Aug 7 16:51:49 dev_sbc_a_vts01
/usr/local/kamailio-5.2/sbin/kamailio[4746]: ERROR: <script>: VMD2 : Reply
Code : 180 ; Sipt Redir = 9610050000 and Call ID =
00158FED-98B7-E911-8B3B-4DA50AE2ED72(a)192.168.24.86 and Cseq = 83
Here is the JSON from the 180 message : https://pastebin.com/zFHKxyav
As you can see, there isn't any 9610050000 in the message. What can be
causing this issue ?
Best Regards,
Duarte Rocha