Hi guys;
Im using "REGISTRAR MODULE" to control the users login by device.
if (af==INET6){
reg_fetch_contacts("location", "$fu", "existingContact");
xlog("L_INFO","****************$si******************************");
xlog("L_INFO","****************$(hdr(Call-ID){s.substr,0,4})******************************");
if ( $(ulc(existingContact=>user_agent)[0]) =~ "SPI/v") &&
($(hdr(Call-ID){s.substr,0,4}) != "TTCN") {
$var(oldDeviceId) =
$(ulc(existingContact=>callid)[0]{s.substr,9,0});
$var(newDeviceId) = $(hdr(Call-ID){s.substr,9,0});
if($var(oldDeviceId) != $var(newDeviceId) ){
xlog("L_INFO","New device id is different:warn
previous user another user overide him");
$var(address) =
$(ulc(existingContact=>received){s.substr,9,0});
$var(ruri) = $(var(address){s.substr,4,0});
#$var(ruri) = "[" + $var(address)+ "]" + ":" + $sp
+ ";" + "transport" + "=" + $proto;
#Send a SIP Request signalling the problem and its
reason on the body
xlog("L_INFO","******************
$var(address)***************************");
$uac_req(method)="MESSAGE";
$uac_req(ruri) = "sip:"+ $au + "@" + $var(ruri);
$uac_req(furi) = "sip:kamailio@sip_domain";
$uac_req(turi) = $fu;
$uac_req(hdrs)="Max-Forwards: 70\r\nEvent:
reg\r\nContent-Type:
text/plain\r\nAccept-Contact:*;+g.ext.app.registration\r\n";
$uac_req(body)="Already registered with another
device id";
uac_req_send();
}
}
So as you can see Im trynig to get the variable $var(address) from
reg_fetch_contacts but is working for ipv4 unfortunatly not for ipv6. For
ipv6 it give me '0'.
Somthing is happening related to "[" "]".
How can I solve this problem?
Thank you.
OS: Centos 7
KAMILIO: version: kamailio 4.4.7 (x86_64/linux) 35d8ab
Hi,
We have followed the steps mentioned in the below link
https://kamailio.org/docs/tutorials/devel/kamailio-install-guide-git/#contr…
But these steps are not enough as P-CSCF, I-CSCF and S-CSCF are not installed so we also followed the steps mentioned in the below link
https://www.kamailio.org/wiki/tutorials/ims/installation-howto<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.kamai…>
But here, we are not able to understand configuration setting for starting P-CSCF, I-CSCF and S-CSCF and it looks like it needs separate server for each node. We need a document in which installation steps and configuration settings are clearly explained and we want to provide single server for each node.
Please provide the document or help so that we install kamailio successfully
Thanks & Regards,
Gaurav Kumar Gupta
Technical Architect
HCL Technologies Ltd.
A-8/9, Scetor-60, Noida-201301
Mob: +91-9873284610
www.hcltech.com<https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.hcltec…>
www.hcl.com<https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.hcl.co…>
[Fact_File_d8]
::DISCLAIMER::
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hi,
I have a query about kamailio.
Can Kamailio integrated with NodeJS, If Yes Then please instruct to how to
integrate with NodeJS.
Regards,
Mukesh Sharma
Iwant to work with "app_python" module,i set “script_name”,“mode_init_function”, “child_init_function” and “python_exec”in kamailio.cfg ,but I have a problem in “python_exec”section. This section not work in correctly, please guide me.thanks
Hi,
IF i have an application that use kamailio SEAS module, is their a way in
configuration script kamailio.cfg in order to check the active node and
send the request to it.
kamailio have Dispatcher Module that can be used to load balancing traffic
to different node.
can the dispatcher module be used to load balancing traffic generated be
SEAS.
e.g.
if i want send traffic from SEAS module once to NodeA once to NodeB,
without adding the route header from code(SEAS API). is this available from
script (on kamailio.cfg).
Jamil
Hello Guys.
Looks like the default value for sip_warning_noisy_feedback on
the cookbooks 4.0.x looks wrong:
It says by default it's enabled, I run couple of test on my kamailio 4.3.4
(x86_64/linux) and I had the header present only when I specifically
declared it to 1
https://www.kamailio.org/wiki/cookbooks/4.0.x/core#sip_warning_noisy_feedba…
Disclaimer: I didn't check the source code yet
Thanks
Alessio