I'm currently using Kamailio built from master@e59db79 and have been following
the recent threads about the dialog module as I'm moving toward adding dialog
support for presence and CDRs in my setup.
However, I seem to have come across an issue where dlg_setflag() does nothing,
while setflag() works properly with the following (trimmed) script. So for
now, I issue setflag(FLT_DIALOG) for INVITE rather than
dlg_setflag(FLT_DIALOG).
Is there something I'm missing about dlg_setflag()?
#!define FLT_DIALOG 4
request_route {
route(REQINIT);
route(NATDETECT);
if(is_method("CANCEL")) {
if(t_check_trans()) {
route(RELAY);
}
exit;
}
route(WITHINDLG);
if(t_precheck_trans()) {
t_check_trans();
exit;
}
t_check_trans();
route(AUTH);
remove_hf("Route");
if(is_method("INVITE|SUBSCRIBE"))
record_route();
if(is_method("INVITE")) {
setflag(FLT_ACC);
# Enable dialog support (dlg_setflag not working)
#dlg_setflag(FLT_DIALOG);
setflag(FLT_DIALOG);
}
route(SIPOUT);
route(PRESENCE);
route(REGISTRAR);
if($rU==$null) {
# request with no Username in RURI
sl_send_reply("484","Address Incomplete");
exit;
}
route(PSTN);
route(LOCATION);
route(RELAY);
}
route[WITHINDLG] {
if(!has_totag()) return;
if(loose_route()) {
route(DLGURI);
if(is_method("BYE")) {
setflag(FLT_ACC);
setflag(FLT_ACCFAILED);
# Testing dialog flag
xlog("L_INFO", "Completed $dlg(from_uri) to
$dlg(to_uri) - $DLG_lifetime duration\n");
} else if(is_method("ACK")) {
route(NATMANAGE);
} else if(is_method("NOTIFY")) {
record_route();
}
route(RELAY);
exit;
}
if(is_method("SUBSCRIBE") && uri==myself) {
route(PRESENCE);
exit;
}
if(is_method("ACK")) {
if(t_check_trans()) {
route(RELAY);
exit;
} else {
exit;
}
}
sl_send_reply("404","Not Found");
exit;
}
--
Anthony - https://messinet.com/ - https://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E
Hi,
I need to create some kind of check with an application outside of kamailio
every X seconds.
The check is per call, to get its status or something and according to the
result do something with the call (transfer, send info or hangup...).
I read about call_control and cnxcc modules.
It seems these last ones are to much to do in order to get what i need.
Is there a simpler module to use?
BR,
Uri
Hello,
Kamailio SIP Server v4.1.8 stable release is out.
This is a maintenance release of the previous stable branch, 4.1, that
includes fixes since release of v4.1.7. There is no change to database
schema or configuration language structure that you have to do on
installations of v4.1.x. Deployments running previous v4.1.x versions
are strongly recommended to be upgraded to v4.1.8 or latest 4.2.x.
For more details about version 4.1.8 (including links and guidelines to
download the tarball or from GIT repository), visit:
* http://www.kamailio.org/w/2015/02/kamailio-v4-1-8-released/
Note: the latest stable branch is 4.2, at this moment with its latest
release v4.2.2. See more details about it at:
* http://www.kamailio.org/w/2014/10/kamailio-v4-2-0-released/
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com
Hi,
I want to know if someone is using something similar to lint-like
behaviour[1] and syntax highlighting in editors like Sublime, TextMate,
emacs, ... for Kamailio configuration files.
[1] http://en.wikipedia.org/wiki/Lint_%28software%29
Thanks.
Manuel Rubio.
Hi,
I have to implement a rather uncommon SIP setup and wanted to ask, if it is even possible with
Kamailio.
We are among other things a VoIP-provider for a couple of hundred customers. Right now we use a
rather old piece of software as a SIP-server, that was written in-house and is deeply integrated in
our user interfaces and the billing system and can't be replaced easily.
But now we need to make some modifications because our PSTN-gateway-provider is changing things.
The idea is to use Kamailio as proxy in front of our old SIP-server. But to do this we need to pass
through the REGISTER requests of our users to the old SIP-server.
So the question is if Kamailio supports this kind of passthrough and I would also be rely grateful
for a piece of example config, if somebody already has a similar setup running.
So far neither the documentation nor google have been very helpful.
Best regards
Kai
--
Kai Arif - System Administrator
Inter.net Germany GmbH
Knesebeckstraße 59-61
10719 Berlin
Germany
Fon +49 30 25430 0
Fax +49 30 25430 499
arif(a)team.de.inter.net
www.de.inter.net
Legal-Information:
Inter.net Germany GmbH,
HRB #79136, Amtsgericht Berlin Charlottenburg,
UST-IdNr:: DE 813 165 159
FA für Körperschaften I Berlin,
Geschäftsführer: Jörn Lubkoll, Christian Röhl
Zuständige Regulierungsbehörde:
Bundesnetzagentur Chemnitz, Liselotte-Herrmann-Str. 20a, 09127 Chemnitz, Registriernummer: 06/164
Hello,
I´m searching for a way to keep track about success or failure of locally
generated SUBSCRIBE transactions, which are typically triggered by the RLS
module. In case that a subscription is rejected by the subscribee with any
negative response code or the transaction is timing out, I have to trigger a
specific action (e.g. sending a PUBLISH message to another user agent). This
seems to be not so easy....
As Kamailio does not support referencing a failure_route to locally generated
requests, I had the idea to "forward()" locally generated requests in the
event_route "tm:local-request" to itself and handle the forwarded requests in
the standard request_route, which would offer all usual options. But that seems
not to be supported / allowed by Kamailio, as I have in practical tests (1) an
outgoing request that is sent to the original Destination-URI (with a malformed
"Content-Length" SIP hdr) and (2) the second request that is sent to the manual
target (loop).
I´ve found in the mailing list that elder Kamailio versions did not support any
common way for this feature. However, can anybody give m a hint if / how this
could eventually be solved with the event_route or in any alternative route? It
seems that the Kamailio internally generated requests are still below the radar
of TM or any other route blocks except tm:local-request.....
regards,
Klaus
Hello,
I am planning to release a new version from previous stable branch -
4.1. Most likely it will be Thursday or Friday this week. If there is
something important to take in consideration for that version, reply to
sr-dev mailing list.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Hi,
Kindly assist.
I have successfully installed Kamailio and Asterisk. Asterisk is acting as
an PSTN in my case. The trunk between Kamailio and Asterisk is up. Issue
is that i can not route calls to the PSTN. I am using the default
configuration
version: kamailio 4.2.2 (i386/linux)
OS: Debian wheezy
--
Kind regards,
Brian
Linux registered user: . #565878
www.brianechesa.com