Is there any possibility of loading credential from the db in the cnxcc
module.
For Example: modparam("auth_db", "load_credentials", "$avp(status)=status")
Like the above one , I need it for CNXCC
Probably an elementary question, but we're relatively new at digging into
the details. We are trying to understand the following block of config
code and have a question or two. Our assumption is the t_precheck_trans()
function tells us whether another packet has arrived already as a
retransmission. However, we're not clear on what the t_check_trans() is
doing assuming the condition is true. Any direction on this?
Thanks.
route[CHECK_RETRANS]
{
# handle retransmissions
if(t_precheck_trans()) {
t_check_trans();
exit;
}
}
Joe Baran
Hello,
I want to distribute endpoints calls in different cities to asterisks in
the same cities where the endpoint. Now I use dispatcher for distibute
calls beetwen asterisks, but without reference to the city.
Can you please suggest better module and way for this?
Is it better to distribute based on ip? Or may be based on groups?
--
Aydar A. Kamalov
Cool!!! Thx for this reply and help. Yep i will need. I using WS.
On Aug 4, 2017 15:33, "Daniel-Constantin Mierla" <miconda(a)gmail.com> wrote:
v5.0 doesn't have many of the event route available for kemi.
If you use master branch (upcoming 5.1), modules having event routes export
a parameter 'event_callback' which needs to be set to a name of a function
inside the embedded language script, see the one for tm at:
- https://kamailio.org/docs/modules/devel/modules/tm.html#tm.p
.event_callback
The dialog module should have same mod param.
For websocket, do you need the one for xhttp module? If yes, it's available.
The event_route[websocket:closed] is not available, as I can see in the
code, but I will add it.
Cheers,
Daniel
On 03.08.17 08:38, Yuriy Gorlichenko wrote:
Thank you for your response! Probably it was at 5.0.x kemi guide.
But anyway Domt uderstand how to call it.
I need tm:local reqest,
Websockets event_route and dialog. Thats it)
On Aug 3, 2017 08:15, "Daniel-Constantin Mierla" <miconda(a)gmail.com> wrote:
> Hello,
>
> where is that TBD note? It needs to be adjusted, probably it is a leftover
> from first days of this feature.
>
> The failure_route, branch_route and onreply_route can be now natively in
> the embedded language, see the Lua script example I provide with the link
> in my previous email.
>
> If you are using event_route blocks, let me know which and I can say if
> they are available -- many of them are, but some are missing, as I am not
> using all the modules available and didn't have the time to dig in all of
> them.
>
> Cheers,
> Daniel
>
> On 02.08.17 13:42, Yuriy Gorlichenko wrote:
>
>
> thx. I just thought that it's possibe to concatenate both engines together.
>
> So this is my last question regardng kemi:
>
> Main goal why i still not use kemi at the my projects is a:
>
> TBD: the options for specific event_route blocks. Meanwhile, should work
> using hybrid configuration with request_route/reply_route/… in embedded
> interpreter and the other routing blocks in native kamailio.cfg.
>
> As i uderstand it is not possible to use event_route in a kemi. only
> native. If yes - do you expect t ointegrate this part of routes at the kemi
> interface in future?
>
>
>
> 2017-08-02 14:36 GMT+03:00 Daniel-Constantin Mierla <miconda(a)gmail.com>:
>
>> Hello,
>>
>> if you want to do routing in lua via kemi, the kamailio.cfg has only the
>> passive part (global parameters, loading modules and modparams) and the
>> active part (routing blocks) is a separate file written in the desired
>> scripting language (e.g., lua). See examples:
>>
>> - https://github.com/kamailio/kamailio/blob/master/misc/exampl
>> es/kemi/kamailio-basic-kemi.cfg
>>
>> - https://github.com/kamailio/kamailio/blob/master/misc/exampl
>> es/kemi/kamailio-basic-kemi-lua.lua
>>
>> If you still want to have the native kamailio.cfg with its routing
>> blocks, but executed some Lua scripts inline, see app_lua exported
>> functions:
>>
>> - http://www.kamailio.org/docs/modules/5.1.x/modules/app_lua.h
>> tml#app_lua.f.lua_run
>>
>> Cheers,
>> Daniel
>>
>> On 02.08.17 13:28, Yuriy Gorlichenko wrote:
>>
>> Hi, no
>> I wanna include lua routes part at existing kamailio.cfg file
>>
>> Just wanna rewrite some route with lua code using kemi because lua more
>> flexible for my needs, but want to call this route at the cfg file.
>>
>> like
>> kamailio.cfg
>> ...
>> route {
>> [MY_SUPER_ROUTE_IN_LUA]
>> }
>> ...
>>
>> Where MY_SUPER_ROUTE_IN_LUA is a route written with kemi on lua language.
>>
>>
>> 2017-08-02 14:10 GMT+03:00 Daniel-Constantin Mierla <miconda(a)gmail.com>:
>>
>>> Hello,
>>>
>>>
>>> On 02.08.17 12:02, Yuriy Gorlichenko wrote:
>>> > Hello. I found how to implement lua routimg logic with
>>> > cfgengine but didn't found how to include cimple route in lua at the
>>> > cfg file
>>> >
>>> > Presume i have routing logic and want to include
>>> > my_super_custom_route written with Kemo on lua. How i need to set up
>>> > my config for it work with both engines?
>>> >
>>> I am not sure I understand what you try to do. The path to yiour Lua
>>> script with routing logic has to be set via modparam of app_lua module.
>>>
>>> Are you trying to include a lua file in another lua file?
>>>
>>> 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
>>>
>>>
>>
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> --
>> Daniel-Constantin Mierlawww.twitter.com/miconda -- www.linkedin.com/in/miconda
>> Kamailio Advanced Training - www.asipto.com
>> Kamailio World Conference - www.kamailioworld.com
>>
>>
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlawww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training - www.asipto.com
> Kamailio World Conference - www.kamailioworld.com
>
>
--
Daniel-Constantin Mierlawww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com
Hi all,
We have identified an IMS related issue, when the "Content-Length" header is missing in REGISTER request.
It's a missing null pointer check in file modules/ims_auth/utils.c
We are using Kamailio 4.4.5 for this purpose and we would need a fix in that release.
I'm not sure, how to proceed now? Should I just create an "Issue" at GitHub, or is it possible for me to create a "Pull Request" at GitHub (would be less effort for you, I guess).
Anyway, the change we did in our local GIT repository, is shown in following picture:
[cid:image001.jpg@01D30C76.DE88AE10]
Thanks,
Christoph
The information contained in this e-mail message is privileged and confidential and is for the exclusive use of the addressee. The person who receives this message and who is not the addressee, one of his employees or an agent entitled to hand it over to the addressee, is informed that he may not use, disclose or reproduce the contents thereof, and is kindly asked to notify the sender and delete the e-mail immediately.
thx. I just thought that it's possibe to concatenate both engines together.
So this is my last question regardng kemi:
Main goal why i still not use kemi at the my projects is a:
TBD: the options for specific event_route blocks. Meanwhile, should work
using hybrid configuration with request_route/reply_route/… in embedded
interpreter and the other routing blocks in native kamailio.cfg.
As i uderstand it is not possible to use event_route in a kemi. only
native. If yes - do you expect t ointegrate this part of routes at the kemi
interface in future?
2017-08-02 14:36 GMT+03:00 Daniel-Constantin Mierla <miconda(a)gmail.com>:
> Hello,
>
> if you want to do routing in lua via kemi, the kamailio.cfg has only the
> passive part (global parameters, loading modules and modparams) and the
> active part (routing blocks) is a separate file written in the desired
> scripting language (e.g., lua). See examples:
>
> - https://github.com/kamailio/kamailio/blob/master/misc/exampl
> es/kemi/kamailio-basic-kemi.cfg
>
> - https://github.com/kamailio/kamailio/blob/master/misc/exampl
> es/kemi/kamailio-basic-kemi-lua.lua
>
> If you still want to have the native kamailio.cfg with its routing blocks,
> but executed some Lua scripts inline, see app_lua exported functions:
>
> - http://www.kamailio.org/docs/modules/5.1.x/modules/app_lua.h
> tml#app_lua.f.lua_run
>
> Cheers,
> Daniel
>
> On 02.08.17 13:28, Yuriy Gorlichenko wrote:
>
> Hi, no
> I wanna include lua routes part at existing kamailio.cfg file
>
> Just wanna rewrite some route with lua code using kemi because lua more
> flexible for my needs, but want to call this route at the cfg file.
>
> like
> kamailio.cfg
> ...
> route {
> [MY_SUPER_ROUTE_IN_LUA]
> }
> ...
>
> Where MY_SUPER_ROUTE_IN_LUA is a route written with kemi on lua language.
>
>
> 2017-08-02 14:10 GMT+03:00 Daniel-Constantin Mierla <miconda(a)gmail.com>:
>
>> Hello,
>>
>>
>> On 02.08.17 12:02, Yuriy Gorlichenko wrote:
>> > Hello. I found how to implement lua routimg logic with
>> > cfgengine but didn't found how to include cimple route in lua at the
>> > cfg file
>> >
>> > Presume i have routing logic and want to include
>> > my_super_custom_route written with Kemo on lua. How i need to set up
>> > my config for it work with both engines?
>> >
>> I am not sure I understand what you try to do. The path to yiour Lua
>> script with routing logic has to be set via modparam of app_lua module.
>>
>> Are you trying to include a lua file in another lua file?
>>
>> 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
>>
>>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlawww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training - www.asipto.com
> Kamailio World Conference - www.kamailioworld.com
>
>
Hi,
I’m very new to Kamailio, in fact I have never got Kamailio to work properly.
I’m following this tutorial http://kamailio.org/docs/tutorials/5.1.x/kamailio-install-guide-deb/ <http://kamailio.org/docs/tutorials/5.1.x/kamailio-install-guide-deb/> step by step, but my subscribers are not able to connect to Kamailio. (X-lite and Zoiper)
I can install Kamialio, create the database, start Kamailio, add subscribers, without any failures or error messages.
I’m running debian jessie.
When i’m running wireshark I get the message Port unreachable.
What am I missing? Can someone give me a hint on what I should look for?
Hello, I 'm new in kamailio.
I have kamailio with dispatcher and two asterisks. Endpoints register to
kamailio. Calls beetwen endpoints going through dispatcher to asterisks.
Calls to other destination rejected by kamailio with 404.
But If i put xlog("AAAA") or xwarn in route[LOCATION] in if
(!lookup("location")) block (default kamailio 5.0.2 config) calls to other
destination goes through dispatcher to asterisks. I cant't understand WHY?
:(
(sorry for my bad English)
route[LOCATION] {
#!ifdef WITH_SPEEDDIAL
# search for short dialing - 2-digit extension
if($rU=~"^[0-9][0-9]$") {
if(sd_lookup("speed_dial")) {
route(SIPOUT);
}
}
#!endif
#!ifdef WITH_ALIASDB
# search in DB-based aliases
if(alias_db_lookup("dbaliases")) {
route(SIPOUT);
}
#!endif
$avp(oexten) = $rU;
if (!lookup("location")) {
xwarn("method ($rm) r-uri ($ru)\n"); ##################
HERE ##########################
$var(rc) = $rc;
route(TOVOICEMAIL);
t_newtran();
switch ($var(rc)) {
case -1:
case -3:
send_reply("404", "Not Found");
exit;
case -2:
send_reply("405", "Method Not Allowed");
exit;
}
}
# when routing via usrloc, log the missed calls also
if (is_method("INVITE")) {
setflag(FLT_ACCMISSED);
}
if(!ds_is_from_list()) {
route(DISPATCH);
}
route(RELAY);
exit;
}
--
Aydar A. Kamalov
Hi All,
We are seeing that Kamailio's nat_helper_module function of
add_rcv_param(), inserts " (quote) mark to some of the SIP headers (as
below in the contact header in sip 200 OK response)
Contact: <sip:172.70.1.2:5060;bnc;received="sip:118.107.184.242:25090
">;expires=172
We got few SIP UAs that are complaining about the quote mark inclusion in
contact header and responding back with SIP 400 bad syntax status code.
Requesting views / suggestions from community about this behavior of
kamailio and any workarounds available.
Cheers
Arslan
Hello,
I'm trying to use a htable to reroute some numbers but when i'm trying
to use kamcmd to add a entry where the element name is a number instead
of a string i get a 500 error
kamcmd htable.seti force_number 1234 1
error: 500 - Not enough parameters (htable name, key name and value)
Also with quotes i get the 500 error:
kamcmd htable.seti force_number "1234" 1
error: 500 - Not enough parameters (htable name, key name and value)
But this works:
kamcmd htable.seti force_number a1234 1
Is there a way to escape this so i can use a number as element name?
Regards,
Jan Hazenberg