Please add in all samples, default installed /etc/*.cfg files etc, etc,
etc... RFC3311 processinging in a branch route:
} else if (is_method("INVITE|UPDATE")){
force_rtp_proxy();
instead of
} else if (is_method("INVITE")){
force_rtp_proxy();
Or in last cvs version sample
if (nat_uac_test("3")) {
....
if ( is_method("INVITE") ) {
fix_nated_sdp("1"); # Add direction=active to SDP
};
is_method("INVITE|UPDATE");
Thanks in advance !!!
I am in the process of migrating from opensips 1.4 to kamailio 3.2 (GIT
current as of this morning). I think I have the config fully ported but
I appear to be missing something.
I get the following error
unknown script pseudo variable $cl
I also get the same error for $rU and some others.
I wanted to see if this is a common problem that generates this error
before the config has to be looked at, ie made public.
I am making heavy use of #!define and #!ifdef statements, and from what
I can tell I am not missing any curly braces or #!endifs.
Thanks for any pointers,
--
Trixter aka Bret McDanel
website: http://www.0xdecafbad.com
pgp key: http://bit.ly/9XYK4b
Hello
I am trying to store the password on the subscriber db as encrypted instead of plain text and when I do it then the registration fails,
modparam("auth_db", "db_url", DBURL)
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "ha1")
modparam("auth_db", "load_credentials", "")
modparam("auth_db", "use_domain", MULTIDOMAIN)
If I change the 3rd line to this it works but it shows the password in clear text:
modparam("auth_db", "password_column", "password")
This is how my subscriber table is defined
mysql> describe subscriber;
+---------------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------------+------------------+------+-----+---------+----------------+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| username | varchar(64) | NO | MUL | | |
| domain | varchar(64) | NO | | | |
| password | varchar(25) | NO | | | |
| email_address | varchar(64) | NO | | | |
| ha1 | varchar(64) | NO | | | |
| ha1b | varchar(64) | NO | | | |
| rpid | varchar(64) | YES | | NULL | |
+---------------+------------------+------+-----+---------+----------------+
and this is how it looks like in the db:
[root@registrar ~]# /usr/local/kamailio-3.1/sbin/kamctl db show subscriber
+----+----------+---------------+----------+---------------+----------------------------------+----------------------------------+------+
| id | username | domain | password | email_address | ha1 | ha1b | rpid |
+----+----------+---------------+----------+---------------+----------------------------------+----------------------------------+------+
| 1 | 100 | 192.168.169.1 | abc | | 4a169916d58247f9e7eac55251fa7467 | 28787e5b5d3a2c6e2e0a80d3e9e3c6de | NULL |
| 2 | 200 | 192.168.169.1 | abc | | 0b15f8f9e348ec64a2e7d5fca6b629c3 | 99eea8b456956d67e7915ed9c96e420b | NULL |
+----+----------+---------------+----------+---------------+----------------------------------+----------------------------------+------+
please give me hand figuring this one out, I can't see what I am doing wrong
fborot
Hi All,
Would someone be able to point me in the right direction here, I am
trying to compile Kamailio 3.1.4 from git checkout and I am ending up
with the following error:
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m64
-minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron
-Wall -DNAME='"ser"' -DVERSION='"3.1.4"' -DARCH='"x86_64"'
-DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.1.2"'
-D__CPU_x86_64 -D__OS_linux -DSER_VER=3001004
-DCFG_DIR='"/usr/local/loadbalancer/lb1/etc/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP
-DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER
-DUSE_DST_BLACKLIST -DUSE_NAPTR -DDBG_QM_MALLOC -DUSE_TLS -DTLS_HOOKS
-DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM
-DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD
-DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H
-DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_EPOLL
-DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT
-DOPENSER_MOD_INTERFACE -DMOD_NAME='"seas"' -c seas_action.c -o
seas_action.o -MMD -MP
seas_action.c: In function 'ac_uac_req':
seas_action.c:1097: error: 'TMCB_DONT_ACK' undeclared (first use in this
function)
seas_action.c:1097: error: (Each undeclared identifier is reported only once
seas_action.c:1097: error: for each function it appears in.)
make[1]: *** [seas_action.o] Error 1
make: *** [modules_k] Error 1
I am fairly certain I have all required -devel packages installed, but I
just cannot see where that identifier is meant to be defined.
Any tips/suggestions would be greatly appreciated. If you require more
info, please let me know what you need.
thanks
Bruce
Job offer:
Interested in working with one of the biggest Voice over IP networks in
europe? We're hiring and have one additional IT operation position open in
our team in Karlsruhe, Germany at the moment. You would be responsible in
a team of motivated system administrators for the operation and maintenance
of the VoIP kamailio backend at 1&1, providing services for more than three
million customers.
You should have some experience in operating or developing Voice over IP
services with kamailio, asterisk or others similar servers. Additionally you
should be able to communicate professionally in the german language. For more
informations please contact me directly by email.
Best regards,
Henning Westerholt
--
Henning Westerholt - Head of IT Operations Internet Access & Communications
1&1 Internet AG, Brauerstraße 48, 76135 Karlsruhe, Germany
Hello,
over the weekend I exported to config file the two main functions from
tm that allow to suspend the execution of a SIP request and resume it in
another place. They are exported through tmx module:
- t_suspend() - will suspend the execution of current sip request and
then you can do something else (like processing the next request)
- t_continue(tindex, tlabel, rtname) - continue the processing of SIP
request suspended in the transaction identified by tupple
(tindex,tlable) with the actions in route[rtname]
After t_suspend() you can get the transaction identifier (tindex,
tlable) via pseudo-variables $T(id_index) and $T(id_label), e.g.:
if(t_suspend()) {
xlog("sip request suspended in transaction
[$T(id_index)/$T(id_label)]\n");
exit;
}
One example of usage can be passing the $T(id_index) and $T(id_label)
via mqueue to another process for further handling.
So, besides the new additions, now following cfg tools can be used to do
asynchronous operations directly via config:
- the mqueue + rtimer module - pass a task via mqueue and get it in
rtimer specific processes to run it further
- async module - intended to collect asynchronous specific
implementation, for now able to sleep and execute a specific route after
a time interval
Cheers,
Daniel
--
Daniel-Constantin Mierla -- http://www.asipto.comhttp://linkedin.com/in/miconda -- http://twitter.com/miconda
Hi All,
I'm using kamailio with database in text mode and i'd like to know if dbtext
module has support the following parameters to search:
ilike;
limit;
offset;
Regards
Hi list,
Perhaps this fits better into a bug report, but I'd like to know if somebody out there experienced a similar issue.
I am executing a "select count" query using the avp_db_query function, but it is not storing the results in any avp. Other queries are working fine.
I use db_mysql connected with a mysql 5.1 server.
I have tested this with kamailio-3.1.0 and kamailio-3.1.3, both didn't work. In an old box (version 1.3.x), the same query was returning the correct value.
---------------------------------------------------
Here is the case which is not working:
Code:
avp_delete("$avp(s:count)");
$var(ret) = avp_db_query("SELECT count(*) FROM subscriber where username='foo'",
"$avp(s:count)");
xlog("L_INFO", "var(ret)=$var(ret) avp(s:count)=$avp(s:count)");
Output:
INFO: <script>: var(ret)=1 avp(s:count)=<null>
(notice the return code 1, which means that the query was successfull and there should be some output value stored in the avp, but it is <null>)
---------------------------------------------------
And here is one case which works as expected:
$var(ret) = avp_db_query("SELECT id FROM subscriber where username='foo'",
"$avp(s:count)");
Output:
INFO: <script>: var(ret)=1 avp(s:count)=11
---------------------------------------------------
Thanks in advance for any feedback.
Best regards,
Ricardo Andrade.