Hi,
Kamailio newby here. Having some trouble with using alias_db to forward an incoming call
to two extensions. Thanks in advance for any help.
I've tried using the Ubuntu Jammy ARM64 packages, as well as compiling the source for
version 5.7.3. In both cases, I've added three extensions, and calls directly between
them work fine with the vanilla kamailio.cfg.
However, I then wanted to add an alias so that when called it would dial two extensions,
but only the first extension is ever called.
My kamailio.cfg only differs in a few places:
$ diff kamailio.cfg kamailio.cfg.original 3,6d2
< #!define WITH_AUTH 1
< #!define WITH_DEBUG 1
< #!define WITH_ALIASDB 1
< #
268,270d263
< loadmodule "db_sqlite.so"
< #!define DBURL
"sqlite:///usr/local/kamailio-devel/etc/kamailio/kamailio.sqlite"
< 367c360
< modparam("tm", "failure_reply_mode", 0)
---
modparam("tm",
"failure_reply_mode", 3)
450d442
< modparam("alias_db", "append_branches", 1)
I can see from the log that when dialling the desired alias (5000) an alias_db query is
performed:
Dec 01 20:00:23 merrivale /usr/local/kamailio-devel/sbin/kamailio[3264]: DEBUG: {1 2
INVITE 651794328853009-230332414159388(a)192.168.17.145} alias_db [alookup.c:169]:
alias_db_query(): new URI [0] is [sip:6002@merrivale.localdomain]
Dec 01 20:00:23 merrivale /usr/local/kamailio-devel/sbin/kamailio[3264]: DEBUG: {1 2
INVITE 651794328853009-230332414159388(a)192.168.17.145} alias_db [alookup.c:169]:
alias_db_query(): new URI [1] is [sip:6001@merrivale.localdomain]
But only the first result is called. I've changed the order of the aliases in the
sqlite db and just the first result is called.
What am I missing?
Merul