Hi All,
I was having a read of the AVP module documentation and I see mentioned
that in future releases of kamailio that the AVP module may become
deprecated in favour of using AVPOPS module. To this end, I started
looking to switch some of AVP functions over to AVPOPS functions when I
cam across an issue where I cannot have the name parameter of the avp to
check a variable.
I have some attributes defined for a domain which I load up using
lookup_domain, one of these attributes is a dispatcher setid based on
the request method being processed. So, with AVP I can do something like
the following to see if it is set:
if ( attr_exists( $_s(dm_ds_setid_$rm) ) )
The above works as expected, but if I try using something equivelent
using avpops functions, something like:
if ( is_avp_set("$avp(s:$_s(dm_ds_setid_$rm))") )
or
if ( is_avp_set("$avp(s:dm_ds_setid_$rm)") )
or
if ( is_avp_set("$avp($_s(dm_ds_setid_$rm))") )
or
if ( is_avp_set("$avp(dm_ds_setid_$rm)") )
Then it fails the check even though the avp is set correctly, there are
no errors in the logs so it all appears to be okay.
Likewise, when checking with the following AVP function, it works:
if ( attr_equals("$_s(dm_ds_setid_$rm)", "100") )
But, if I try with AVPOPS function, it fails (I'm guessing its bacause
the avp cannot be found)
if ( avp_check("$avp(s:$_s(dm_ds_setid_$rm))", "100") )
or
if ( avp_check("$avp(s:dm_ds_setid_$rm)", "100") )
or
if ( avp_check("$avp($_s(dm_ds_setid_$rm))", "100") )
or
if ( avp_check("$avp(dm_ds_setid_$rm", "100") )
Are the AVPOPS functions able to take nested variables like the above?
Is this a bug or am I using them incorrectly?
I'm currently trying this out on kamailio v5.0.4.
Any thoughts on the issue would be appreciated.
Thanks
Hi,
I am trying to find a way to load a specific gateway but instead of lcr_id
i want it load gateways according to the hostname. I am passing Hostname as
a header to kamailio so its easy to access that but unabale to load
gateways according to it.
Any help?
Regards,
Ashutosh Chaubey
Hello,
I did some searches online and talked to some colleagues and it seems
Kamailio only supports the traditional HTTP digest authentication, which
uses MD5. I would like to know if any of you has been successful in using
bcrypt/scrypt/pbkdf2 passwd hashing, instead of MD5, which has been deemed
as obsolete and insecure a long time ago. Perhaps you've written your own
auth module, or just modified the config script to call some other
credential checking routine using a custom python/perl script (I'm thinking
of doing the latter, of nothing better is available).
If any of you have done something like this, using bcrypt or any other
current and secure hashing algorithm, I would appreciate some guidance. If
you haven't, aren't you concerned about storing MD5 password hashes in your
database?
Note: if I can't find a good answer using this list, I will try the
developer's list next.
Thanks in advance,
Martín.
Hello,
I have a kamailio version 4.4 with an Asterisk 13 ... and i need to make a call from a sip phone app.(i have a user subscribed on the kamailio to be used on the sip phone app).
The weird thing that first time, the call works (I can see the sip messages working fine between the app kamailio and asterisk) but when i try again it doesn't work. SIP messages show that the kamailio and Asterisk keep send trying request between them and the loop of these kind of messages doesn't end..
I need to know if i am missing something in the configuration file of the kamailio or what?
Regards
Sent from Outlook<http://aka.ms/weboutlook>
Hello,
git branch 5.1 was just created (to host the release series v5.1.x),
therefore new features can now be pushed again in master branch. They
will be part of the next future release, likely to be numbered 5.2.x.
Any fixes that affect existing code in branches 5.1 or older version
have to be backported - push first to master and then cherry pick -- see
the contributing guidelines at:
-
https://www.kamailio.org/wiki/devel/git-commit-guidelines#backporting_commi…
Many thanks to all contributors so far! Testing of branch 5.1 and giving
feedback for it is very appreciated!
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com
Hello,
the GIT branch 5.1 has just been created, it will host the release
series 5.1.x. To get this branch from GIT, you can use:
git clone https://github.com/kamailio/kamailio.git kamailio
cd kamailio
git checkout -b 5.1 origin/5.1
Hopefully in two-three weeks time frame the full release of 5.1.0 will
be out.
>From now on, any corresponding fix has to be pushed first to master
branch and then cherry-picked to branch 5.1. No new features can get in
branch 5.1. Enhancements to documentation or helping tools, as well as
kemi exports are still allowed. If you are not sure about doing or not a
backport, ask on sr-dev mailing list.
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com
Hi,
I can't seem to find the geoip2 module for debian stretch (installing from
packages, kamailio 5.0 branch).
Is it not available in the repository?
Thanks,
Joel.
Hello,
I saw the Kamailio World 2017 presentation "Kamilio for IMS and VoLTE" (https://www.youtube.com/watch?v=Wdhcdv5JVPw). I would like to install the servers for evaluation and testing.
The slides say to use Ubuntu 16.04, but there are no xenial packages at the ng-voice repository. Is it okay to install on Ubuntu 14.04, since there are trusty packages? I have done this and got through all the configuration prompts.
After installation, is there any way to confirm that the site is operational? How to bring up the management console (i.e. what is local URL)? In the presentation, it looks like a commercial site at ng-voice is accessed.
I understand that there is a REST API. Is this API documented anywhere?
Maybe, the most important question is, after installation, what is the fastest way to add two users and test access from IMS clients?
Thank you,
James
Dear All,
I'm facing a strange problem with the call accounting module: even if in
my configuration I have the parameter:
modparam("acc", "early_media", 0)
I can find some ACC records with sip_code 180 or 183.
I investigated those cases and this issue seems to happen when an
endpoint sends an 183 message immediately followed by a 200 OK.
The issue seems started from kamailio version 4.4.1, but I cannot be
really sure of this.
Have you ever had a similar problem?
Do you have any suggestions on how to solve it?
Thanks
Marco