I want to extract domain attribute of a user from Location Table.
I have gone through the readme of registrar module, that has an example of
using
reg_fetch_contacts() and how to access the attributes of a location record ?
But I get the callee domain = NULL when I log using command
xlog("callee=>domain: $(ulc(callee=>domain)))\n".
Can anyone please help me with the correct syntax.
Thanking in advance.
--
View this message in context: http://sip-router.1086192.n5.nabble.com/Access-the-attributes-of-a-location…
Sent from the Users mailing list archive at Nabble.com.
Hi,
I had installed kamailio on my AWS EC2, by following the steps in
http://kamailio.org/docs/install/INSTALL.kamailio-4.1.x . Since I installed
in EC2, i changed the listen=<my-private-ip> advertise=<my-public-ip> in
kamailio.cfg file too. I open the 5060 port in AWS console too. Kamailio
starts without any error, but I can't able to connect in Jitsi client.
Please help me out to do this as soon as possible.
Hello. I have Kamailio 4.1.3+rtpengine_rtpproxy-ng as module for rtpengine.
Kamailio installed as frontend (registration, auth, proxy ) of asterisksk
servers.
WEBRTC users registred at kamailio and asterisk works as media server.
When I try to call from Jssip from Firefox to chrome to way audio is fine.
When I call from chrome - I see rtp packets only from firefox. Not from
chrome.
At kamailio log when I call from chrome log the same as whe i try to call
from firefox (I can not see anithing wrong)
So somebody else have same issue and may be somebody know reasons of this.
Thanks for advice
Hi,
I'm trying to make configuration that will trace registrations. I can
trace REGISTER messages using sip_trace. But how can i trace responses
generated by pv_www_authenticate using sip_trace?
Rafal Skrzeczkowski
Hi all,
I'm looking for a mechanism to let users personalize the behaviour of their
profile, uploading configuration changes to Kamailio. For example voice
mail redirecion, time-based routing, etc. I'm testing CPL scripts (cpl-c
module with Kamailio 4.1.3), but I have problems with the behaviour of some
features. "reject" and "redirect" seem to be working fine, but "proxy" is
not working.
¿Has anybody experienced the same problems? I could hardly find any post
regarding CPL scripting with Kamailio. What are the most commonly used
alternatives for this purpose with Kamailio? ¿SIP CGI? ¿any other?
Best regards.
Luis.
Hello everybody,
we have got a problem with sdp-nat on retries of a 200 OK packet. Due to
slow response of our trunk the 200 ok is resend (up to 3 times) but sdp-nat
is only done on the first two packets. We are running Kamailio 4.1.0 with
the following setup:
Trunk --> NAT --> Kamailio --> Voip Bridge
The rtp stream from the trunk (public ip) is supposed to go to one of our
media gateways (behind 1:1 nat). We use sdp_mangle_ip to replace the private
IPs of our Mediagateway with the public ones. This goes well with the first
200 OK packet but not with a retry.
A.A.A.A (public trunk media IP)
B.B.B.B (our public media IP - 1:1 natted to I.I.I.I)
INVITE Trunk --> Kamailio
Connection Information (c): IN IP4 A.A.A.A
INVITE Kamailio --> Voip Bridge
Connection Information (c): IN IP4 A.A.A.A
200 OK Kamailio <-- Voip Bridge
Connection Information (c): IN IP4 I.I.I.I
200 OK Trunk <-- Kamailio
Connection Information (c): IN IP4 B.B.B.B
200 OK Kamailio <-- Voip Bridge
Connection Information (c): IN IP4 I.I.I.I
200 OK Trunk <-- Kamailio
Connection Information (c): IN IP4 I.I.I.I
ACK Trunk --> Kamailio --> Voip Bridge
Our configuration used is the following:
route[RELAY] {
xlog("L_INFO"," In route Block RELAY \n");
# enable additional event routes for forwarded requests
if (is_method("INVITE|SUBSCRIBE|UPDATE")) {
if(!t_is_set("onreply_route")) t_on_reply("MANAGE_REPLY");
}
if (!t_relay()) {
xlog("L_NOTICE", " (ROUTE_RELAY) Relay failed, sending error
\n");
sl_reply_error();
}
exit;
}
onreply_route[MANAGE_REPLY] {
xlog("L_INFO"," In route Block MANAGE_REPLY \n");
if ( isflagset(20) ) { -- we have to do nat
route(SDP_NAT);
force_send_socket(KAMAILIO_TO_TRUNK_IP);
} else {
force_send_socket(KAMAILIO_TO_BRIDGE_IP);
}
}
How can we handle the 200 OK retry? Is there a way to do this?
Kind regards
Timo Klecker
G'day folks
Struggling to work out whether Kamailio can help me or not in this situation, and I hope someone can tell me whether I'm barking up the wrong tree.
I have hundreds of users which register to an old legacy Asterisk box that needs retiring. The "users" are customers consisting of VoIP ATAs, PBXes, softphones, and other hardware phones.
I've been told I need to retire the Asterisk system in the next month and move customers to our new provider, who provide the SBC themselves (it's a Broadsoft-based system). Obviously a customer once ported to the new provider requires new SIP proxy and SIP domain settings configured in their CPE.
For obvious reasons, I cannot require hundreds of customers to change their configuration overnight. However, there is not enough time to assist hundreds of customers changing their SIP proxy/registrar/domain details.
So in the meantime I'm trying to work out a transition solution. I cannot simply change my SIP registrar DNS to be a CNAME for the new provider's registrar, as the domain is different, and the new provider doesn't allow domains other than their own to register with them (even if the username/password portion is correct).
My new provider has previously told me they are unwilling to accept my old domain whilst authenticating (they are much bigger than me, and I have no power to change them).
So I was hoping to use Kamailio and possibly the Path or Dispatch modules to proxy SIP registration to the new provider, rewriting the domain part of the SIP register string as I go
But I can't for the life of me work out whether that's even possible. I have spent weeks poring over various Kamailio configurations posted to the interwebs, but nobody seems to have done this before.
Specifically the "translation proxy" -- which I am hoping to make Kamailio -- will need to be stateless, and perform no local authentication. Individual registrations will need to be passed through to the new provider (including authentication!), while still translating the domain in the Request-URI, To, From, and various other SIP headers.
Because the current legacy Asterisk box has nat=yes set for all users, I will need to proxy media, because if I start proxying SIP traffic to the new provider, I will be confusing their own NAT hacks.
I don't understand the documentation for either the Path or Dispatch modules, and the information on the wiki is confusing and poorly written. I am very familiar with SIP, and have no trouble configuring Asterisk, but trying to work with Kamailio is leaving me feeling like an idiot.
However, Kamailio's config is very flexible, so despite this I suspect what I'm trying to achieve may be possible.
Any pointers in the right direction?
Cheers,
Jeremy.
Hi!
Kamailio 4.1.4. When using avp_check with fnmatch and AVP the result is
always TRUE if it is true for 1 time. It only happens with $avp(), but
not with $var().
Is this a bug or some special behavior of AVPs?
xlog("L_ERR", "======= with $$avp(...)================");
$avp(rpid) = "+499539110";
$avp(pattern) = "+499539[2-5]"; # NO MATCH
if (avp_check("$avp(rpid)", "fm/$avp(pattern)/g")) {
xlog("L_ERR", "$avp(rpid) matches $avp(pattern): YES");
} else {
xlog("L_ERR", "$avp(rpid) matches $avp(pattern): NO");
}
$avp(pattern) = "+499539*"; # MATCH
if (avp_check("$avp(rpid)", "fm/$avp(pattern)/g")) {
xlog("L_ERR", "$avp(rpid) matches $avp(pattern): YES");
} else {
xlog("L_ERR", "$avp(rpid) matches $avp(pattern): NO");
}
$avp(pattern) = "+499539[2-5]"; # NO MATCH
if (avp_check("$avp(rpid)", "fm/$avp(pattern)/g")) {
xlog("L_ERR", "$avp(rpid) matches $avp(pattern): YES");
} else {
xlog("L_ERR", "$avp(rpid) matches $avp(pattern): NO");
}
xlog("L_ERR", "======= with $$var(...)================");
$var(rpid) = "+499539110";
$var(pattern) = "+499539[2-5]"; # NO MATCH
if (avp_check("$var(rpid)", "fm/$var(pattern)/g")) {
xlog("L_ERR", "$var(rpid) matches $var(pattern): YES");
} else {
xlog("L_ERR", "$var(rpid) matches $var(pattern): NO");
}
$var(pattern) = "+499539*"; # MATCH
if (avp_check("$var(rpid)", "fm/$var(pattern)/g")) {
xlog("L_ERR", "$var(rpid) matches $var(pattern): YES");
} else {
xlog("L_ERR", "$var(rpid) matches $var(pattern): NO");
}
$var(pattern) = "+499539[2-5]"; # NO MATCH
if (avp_check("$var(rpid)", "fm/$var(pattern)/g")) {
xlog("L_ERR", "$var(rpid) matches $var(pattern): YES");
} else {
xlog("L_ERR", "$var(rpid) matches $var(pattern): NO");
}
--> The result is:
<script>: ======= with $avp(...)================
<script>: +499539110 matches +499539[2-5]: NO
<script>: +499539110 matches +499539*: YES
<script>: +499539110 matches +499539[2-5]: YES
<script>: ======= with $var(...)================
<script>: +499539110 matches +499539[2-5]: NO
<script>: +499539110 matches +499539*: YES
<script>: +499539110 matches +499539[2-5]: NO
Thanks
Klaus
Hello!
I attempt to dispose the bond ODBC-Oracle, but I cannot find
kamctl.oracle (I have any other)& Where can I download this kamctl.oracle?
--
Best regards,
Konstantin Khatskevich
I am trying to make changes in code and recompile kamailio server project.
Problem is when I try the following command
make PREFIX='/usr/local/kamailio-3.1/' FLAVOUR=kamailio.cfg
I get the message;
'kamailio' is up to date.
I want to know, how to make my machine forget about the older installation,
so that new compilation goes good.
--
View this message in context: http://sip-router.1086192.n5.nabble.com/Re-Compiling-and-Re-Installing-kama…
Sent from the Users mailing list archive at Nabble.com.