Hi all,
i try to re-arrange my config and i try to use a variable declared in
modparam pv such like:
modparam("pv", "varset", "externalip=s:1.2.3.4")
and use it as:
force_send_socket($var(externalip));
unfortunately the kamailio does not start with this configuration and
telling me bad config file like:
line 109, column 36: bad argument, [proto:]host[:port] expected
it seems the force_send_socket is not able to get variable. Is there any
other way to have static content defined and put across the config?
Reason for the question is the possibility to use ansible as deployment
tool. I set all the variables i need in a separate file and include it.
This file contains the entire modconfig and global vars section to adapt
this part to every single machine individually. This does not work if i
need to put "constant" variables on different places in my config.
If anybody has ever made this, could you please help me, or give any
suggestions?
Many thanks!
BR
Jöran
--
Jöran Vinzens - vinzens(a)sipgate.de
sipgate GmbH - Gladbacher Str. 74 - 40219 Düsseldorf
HRB Düsseldorf 39841 - Geschäftsführer: Thilo Salmon, Tim Mois
Steuernummer: 106/5724/7147, Umsatzsteuer-ID: DE219349391
www.sipgate.de - www.sipgate.co.uk
Hello,
be aware that today I plan to do some maintenance on the mailing lists
server, including the shifting to the lists.kamailio.org as primary
domain. I expect not to have any relevant downtime, but one never knows.
Maybe the archive won't be available for short time due to changes needs
to be done to the web server after mailing lists server is upgraded.
I will sent another notification when everything is finished.
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
Hi everyone,
I'm having some trouble setting up a simple Kamailio installation with
user authentication.
I've installed a kamailio (4.3.4) base install on an ubuntu server
16.04 (x86/64) on virtualbox, and added this lines at the beginning of
the file:
```
#!KAMAILIO
#! define WITH_MYSQL
#! define WITH_AUTH
#! define WITH_USRLOCDB
```
Also configured the db name, host, user and pass for RO and RW and run
`kamdbctl create`.
Everything I do was following this tutorial:
http://www.kamailio.org/wiki/tutorials/getting-started/main
Based on what the tutorial says, I should have a server that only
allows users that have been authenticated against the DB.
The thing is that now Kamailio allows me to access, no matter what
credentials I gave him (replies 200 OK to my REGISTER requests, and
whows the user on the `kamctl monitor` view).
I've added to this gist:
* My current kamailio config
* the kamailio grepped syslog
* the pjsua output from when I register with an unexistent user
https://gist.github.com/nicopace/9d44bf813fe309df69ff4cd0affe8324
I've already checked out some of the wiki documentation, namely:
* http://www.kamailio.org/wiki/tutorials/auth/auth_db
* http://www.kamailio.org/wiki/tutorials/getting-started/main
Am I missing something?
Thanks
Hi Everyone!
I just wanted to introduce myself, before blasting the list with
questions (just kidding!).
My name is Nicolás Pace, I'm a Community Networks advocate from
Argentina.
I'm working on a community project for Rhizomatica [0], which is an
amazing organization that promotes Community Cellular Networks for
underserved communities in Latin America (mainly mexican's first
nations but also in Nicaragua, Colombia nad Brazil).
We are working on a mobile app to connect the Community Cellular
Networks (that uses 2G Cellular Networks) with the rest of the world
via SIP, and we are considering using Kamailio for this.
The project has been using FreeSwitch for some time and now we are
thinking about using Kamailio on the cloud side, and intengrate them
via SIP. On a not so distant future, if the Kamailio experience goes
well, we are thinking on moving everything to Kamailio, as it seems to
be much more simple and effective.
For now we expect to do a prototype to connect this communities with
their relatives via SMS (on the Cellular side) with SIP SIMPLE Messages
(on the 'cloud' side).
Awesome to meet you all, and hope to be collaborating with this
community!
Regards,
[0] https://www.rhizomatica.org/
Hello,
I think it is time to migrate the mailing lists under kamailio.org
domain, respectively use lists.kamailio.org.
The lists.sip-router.org will still work, but lists.kamailio.org is
intended to become the primary domain for mailing lists.
The sip-router.org was the quick solution for integrating Kamailio and
SER in one project back in 2008, when kamailio.org and iptel.org still
needed to be operated for a while as independent projects. For few years
now, Kamailio is the only project name that is used out there and it
will make operating everything a bit smoother, more coherent and also
avoid eventual confusions for people new into the project.
As a matter of fact, we even had a small incident few weeks ago -- due
to split management of sip-router.org and DNS registration expire
notifications going to an email address on a different server than
kamailio.org, the domain was expired for few hours (although it was kept
on hold by registrar) and mailing lists started to be unavailable.
Fortunately that was discovered and fixed in time.
The names will stay the same sr-users and sr-dev, just primary domain
will be using kamailio.org (which should 'hopefully' work even now, as
this email was addressed with mixed sr-dev(a)lists.sip-router.org and
sr-users(a)lists.kamailio.org).
If anyone has different opinions or suggestions, let's discuss them!
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
Hey all,
Trying to debug an issue with canceling an invite. I have two different
types of clients. On one client, canceling an invite works correctly. With
the other client, it t_check_trans fails.
Both clients show the same request/responses:
On Client A:
-> INVITE
<- 183
-> PRACK
<- 200
-> UPDATE (from successful STUN binding)
<- 200
-> CANCEL
<- 200
On Client B:
-> INVITE
<- 183
-> PRACK
<- 200
-> UPDATE (from successful STUN binding)
<- 200
-> CANCEL
<- 481 (this is sent from my kamailio script when t_check_trans fails)
I can't see much that's different between the leading requests/responses of
each. They seem to be virtually identical (with the exception of IP
addresses and tag values, of course). This makes sense, since they're both
based on PJSIP (albeit different versions of PJSIP, but not off by much)
Is there anything in particular I should be looking out for that might be
obvious? I could provide more detailed logs and traces if required.
Best,
Colin
Hi,
Following
http://kamailio.org/docs/tutorials/devel/kamailio-install-guide-deb/
I got to the step where I had to run
kamdbctl create
Unfortunately, this failed, with the following output:
> INFO: test server charset
> INFO: creating database kamailio ...
> INFO: granting privileges to database kamailio ...
> INFO: creating standard tables into kamailio ...
> ERROR 1101 (42000) at line 2: BLOB/TEXT column 'body' can't have a default value
> ERROR: Creating core tables failed at msilo!
Searching for this error turned up http://tinyurl.com/lovr4aq , but the
link in the answer is broken, and it doesn't appear that
STRICT_TRANS_TABLES is relevant to my version of MySQL [1], which is
5.5.54 (running on Trisquel 7, which is based on Ubuntu Trusty).
Has anyone else encountered and overcome this problem, or does anyone
have any ideas about how I might proceed?
Tim
<><
[1] http://tinyurl.com/zmnc75c
I am new to Kamailio. I've got the Carrier Route module up and running, but I'd like to match on scan_prefix length and not just the scan_prefix digits. Stated a little differently, I would like to define the scan_prefix and how many digits to expect after the scan_prefix. I am hoping that wildcards are supported in the scan_prefix field or is there another way to do this?
Thanks,
Tyler
Hello,
Is it possible to use variables inside a textops search_hf function? I
am trying to compare variable content against From header content and
return true or false.
I tried the following statement but with no luck:
search_hf("From", "$var(MYVARIABLE)", "f") { ... }
If this cannot be done, any suggestions on how to achieve this kind of
comparsion? The variable content is pulled out from a htable entry.
Cheers,
--Olli
Hey Daniel,
Many thanks again for premium support as always ;).
Will get back to them since I understand Kamailio is RFC compatible on
this one.
Have a good one!
DanB