Hello all,
I am using the sca module in kamailio script.so when i subscribe
with my ip phone for SCA Presence i get all the information in a
sca_subscriptions table for the first time. When I reboot the device I get
a new record-route header in trace but It does not update *record-route *Filed
in sca_subscriptions table.
Can anyone help me out with this issue ?
*Here's modparam configuration *
modparam("sca", "db_update_interval", 10 )
modparam("sca", "db_url", DBURL_LOCAL)
modparam( "sca", "line_seize_max_expires", 30)
modparam( "sca", "purge_expired_interval", 1800)
--
--
* <https://www.ecosmob.com/itexpo/>
*
*Disclaimer*
In addition to generic
Disclaimer which you have agreed on our website, any views or opinions
presented in this email are solely those of the originator and do not
necessarily represent those of the Company or its sister concerns. Any
liability (in negligence, contract or otherwise) arising from any third
party taking any action, or refraining from taking any action on the basis
of any of the information contained in this email is hereby excluded.
*Confidentiality*
This communication (including any attachment/s) is
intended only for the use of the addressee(s) and contains information that
is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination,
distribution, or copying of this communication is prohibited. Please inform
originator if you have received it in error.
*Caution for viruses,
malware etc.*
This communication, including any attachments, may not be
free of viruses, trojans, similar or new contaminants/malware,
interceptions or interference, and may not be compatible with your systems.
You shall carry out virus/malware scanning on your own before opening any
attachment to this e-mail. The sender of this e-mail and Company including
its sister concerns shall not be liable for any damage that may incur to
you as a result of viruses, incompleteness of this message, a delay in
receipt of this message or any other computer problems.
Hello I have a query regarding the record-route field update in DB for SCA
SUBSCRIBE. Here are my test cases *Initial SCA subscription,* We got the
below SUBSCRIBE packet in kamailio SUBSCRIBE sip:1234.xyz.com:5060 SIP/2.0
Via: SIP/2.0/UDP kam-ip:5060;branch=z9hG4bK2sansay1081381rdb66
*Record-Route*
: <sip:sansay1081381rdb66spid17urcvjtr139807186744464nat0@kam-ip:5060;lr;transport=udp>
To: <sip:372427@1234.xyz.com:6060> From: "708"
<sip:372427@1234.xyz.com:6060>;tag=CFFBAF19-19A68CBC
Call-ID: bd4b50d9384523c14ea05c532d895bf2 CSeq: 2 SUBSCRIBE Contact: <
sip:372427@192.168.1.3> Expires: 3600 Allow:
INVITE,ACK,BYE,CANCEL,OPTIONS,INFO,MESSAGE,SUBSCRIBE,NOTIFY,PRACK,UPDATE,REFER
Event: call-info User-Agent: PolycomVVX Accept-Language: en Max-Forwards:
69 Content-Length: 0 also in the sca_subscriptions table record-route
header is updated as per Initial SUBSCRIBE record-route. *record_route:
<sip:sansay1081381rdb66spid17urcvjtr139807186744464nat0@kam-ip:5060;lr;transport=udp>
* But After rebooting the device, we got a new record-route in SUBSCRIBE
Packet but in DB Record-route Field not updated after getting an updated
record-route in Trace. *Kamailio Trace *SUBSCRIBE sip:1234.xyz.com:5060 SIP/2.0
Via: SIP/2.0/UDP kam-ip:5060;branch=z9hG4bK2sansay1081415rdb48
*Record-Route*:
<sip:sansay1081415rdb48spid17urcvjtr139807186744464nat0@kam-ip:5060;lr;transport=udp>
To: <sip:372427@1234.xyz.com:6060> From: "708"
<sip:372427@1234.xyz.com:6060>;tag=35852031-CF749E20
Call-ID: 41fa031d79e35fae4a61c61984895bf2 CSeq: 2 SUBSCRIBE Contact: <
sip:372427@192.168.1.3> Expires: 3600 Allow:
INVITE,ACK,BYE,CANCEL,OPTIONS,INFO,MESSAGE,SUBSCRIBE,NOTIFY,PRACK,UPDATE,REFER
Event: call-info User-Agent: PolycomVVX Accept-Language: en Max-Forwards:
69 Content-Length: 0 as per logic it should update the record-route field
in sca_subscriptions table . but it didn't update it : record_route:
<sip:sansay1081381rdb66spid17urcvjtr139807186744464nat0@kam-ip:5060;lr;transport=udp>
So can you suggest to us how we can update the record-route field as per
SUBSCRIBE's packet new record-route ?
I am having an issue matching toll-free. I tested my regex on regex101.com,
and it looks good, but it does not match my if statement. Am I doing
something wrong?
if (method=="INVITE") {
xlog("L_INFO", "Checking Routes $rU");
if ($rU=~"^(\+?1)?(8(00|44|55|66|77|88)[2-9]\d{6})$") {
xlog("L_INFO", "Tollfree call");
};
};
Logs show "<script>: Checking Routes +18002211212" so I don't get why it
does not match.
><>
Nathan Stratton
Founder, CTO
Vocinity, Inc.
<https://www.vocinity.com/gabbi>
Hi
I have an existing kamailio config and I want to migrate to kemi. I want to
know what is the equivalent of this code in kemi javascript ?
$avp(s:contact) = $hdr(Contact);
$avp(s:contact_fix) = $hdr(Contact);
avp_subst("$avp(s:contact_fix)",
"/@([0-9]+).([0-9]+).([0-9]+).([0-9]+)/@$sel(cfg_get.kamailio.ss_ip)/gi");
remove_hf("Contact");
append_hf("Contact: $avp(s:contact_fix)\r\n");
t_on_reply("REG_FIX");
thanks for your attention.
What is the simplest way to return values from external application into
Kamailio config and assign it to a variable?
I'm looking for the most light weight mechanism to do it and to offload
some logic to external app. Something like this would be ideal:
$var(myVar), $var(err) = lua_run("lua_func1", "$rU");
OR
$var(encString) = exec_cmd("echo 'abc $rU' | base64");
There is this method:
http_client_query("http://...", "", "", "$var(result)");
but there is an overhead of networking and HTTP protocol.
Please advise.
Thanks, Dmytro
All,
I've been trying to chase down an issue with db_cluster and permissions in combination with something else, where with my full configuration using the same cluster in multiple modules has failures. I've been trying to create a simplified configuration to consistently reproduce the problem without much success, however I did stumble upon THIS particular problem. The configuration here works fine as is - avpops uses the cluster URL, and carrierroute uses the direct SQLite URL. If I define WITH_DBCLUSTER, then carrierroute fails fetching rows using the cluster connection. Note that AVPOPS is only used as a general test to see if the cluster config works. If I remove references to avpops , carrierroute still fails loading from the cluster URL. Thoughts?
#!KAMAILIO
loadmodule "db_sqlite"
loadmodule "pv"
loadmodule "db_cluster"
loadmodule "carrierroute"
loadmodule "avpops"
modparam("db_cluster", "connection", "db1=>sqlite:////etc/db.sqlite")
modparam("db_cluster", "cluster", "cl1=>db1=9s9s")
modparam("db_cluster", "inactive_interval", 30)
#!ifdef WITH_DBCLUSTER
modparam("carrierroute", "db_url", "cluster://cl1")
#!else
modparam("carrierroute", "db_url", "sqlite:////etc/db.sqlite")
#!endif
modparam("carrierroute", "config_source", "db")
modparam("avpops", "db_url", "cluster://cl1")
modparam("avpops", "avp_table", "usr_preferences")
request_route {
exit;
}
Failure log:
0(1) ERROR: carrierroute [cr_db.c:345]: load_route_data_db(): Fetching rows failed
0(1) ERROR: carrierroute [cr_data.c:179]: reload_route_data(): could not load routing data
0(1) ERROR: carrierroute [carrierroute.c:240]: mod_init(): could not prepare route data
0(1) ERROR: <core> [core/sr_module.c:942]: init_mod(): Error while initializing module carrierroute (/usr/lib/kamailio/modules/carrierroute.so)
Kaufman
Hi,
Some percentage of requests processed with async_route("REQ_PROCESS", "5") seem to end up with a resumed transaction, though most do. Not sure what the exact percentage is. The ones that don't
Is this due to excessive requests? Is there a limit on internal IPC queue depth? Is it conceptually similar to a generic shared blocking queue internally, along the lines of 'mqueue'? Is there any reasonable way to troubleshoot this?
Thanks!
-- Alex
--
Alex Balashov
Principal Consultant
Evariste Systems LLC
Web: https://evaristesys.com
Tel: +1-706-510-6800