Hello sr-users!
I'm using Kamailio 5.1.2.
If I execute the command "serctl acl grant 1234 mygrant" I get a warning
which I have to accept with "Y":
Non-existent user '1234'. Still proceeding? [Y|N]
Is it possible to deactivate this warning? I know why this warning is
there (it's not a user, it's an alias), so I think I know what I'm doing ;-)
Regards
Stefan
Hi list!
I'm trying to remove Proxy-Authorization dedicated
to local subscriber without -and not the other ones
dedicated to other server-
I realized that "consume_credentials" doesn't work
because it requires that a call to "www_authorize,
proxy_authorize, www_authenticate or proxy_authenticate"
has been made before. I have a use-case where this isn't
called.
I don't want to use such code:
if (is_present_hf("Proxy-Authorization")) {
remove_hf("Proxy-Authorization");
}
Because this may remove a "Proxy-Authorization"
for another service.
I have seen this: has_credentials but it doesn't help
to know which header is the one containing the header...
Any good way to find the header and index?
And then remove it with remove _hf_value2?
Regards
Aymeric
--
Antisip - http://www.antisip.com
Hi people,
I am trying to search for the RFC behavior in case of 180/200 to tag
mismatch of an INVITE. From my readings so far, I'm not 100% convinced of
the correct behavior.
However, there may be a scenario, where this might be plausible:
1. parallel forked two calls
2. 180 ringing comes for first one, but not for second one(various reasons)
3. 200 ok comes for second one
Any opinions about this? Do you have some references that will make this
100% clear?
Thank you,
Stefan
I am using the sqlops module with odbc to INSERT,UPDATE only and as the documentation says I can omit result parameter in "sql_query". However I always see these ERRORS when processing the call:
This is an example of a query:
sql_query("c04", "insert into SIPInfo302CDR (SIPCallID,SessionID) values('$ci',$var(SessionID))");
And these are the error lines in the log:
ERROR: db_unixodbc [res.c:60]: db_unixodbc_get_columns(): no columns returned from the query
ERROR: db_unixodbc [res.c:261]: db_unixodbc_convert_result(): getting column names failed
ERROR: db_unixodbc [dbase.c:216]: db_unixodbc_store_result(): failed to convert result
ERROR: <core> [db_query.c:188]: db_do_raw_query(): error while storing result
ERROR: sqlops [sql_api.c:265]: sql_do_query(): cannot do the query [insert into SIPInfo302CDR (SIPCa]
I have also tried using the parameter like shown below but the ERROR events happen anyways.
sql_query("c04", "insert into SIPInfo302CDR (SIPCallID,SessionID) values('$ci',$var(SessionID))", "ra");
sql_result_free("ra");
Even though the errors line show up and say that " cannot do the query .." the query does work and the records are inserted/updated accordingly.
I tried using the "sql_query_async" function that does not need the result parameter but I can't use it with unixODBC, I see these lines in the log when trying to use it: "the db driver module doesn't support async query" and the record is not inserted/updated. I also added the "async_workers" core parameter as well just in case.
I also tried declaring them in the module sqlops initialization section even though in my case there is no need: "modparam("sqlops", "sqlres", "ra")" but the errors show up anyways.
When I test with SEELCT query the result parameter can be used, I can count rows etc. But I am only doing INSERT/UPDATE.
Am I am missing something here or this is something that can be safely used like that and I just need to ignore them. I am using " Kamailio (OpenSER) SIP Server v5.0"
Thank you
Fabian
Hi Daniel, first of all thanks for your attention.
Perhaps I missed something. I read documentation about cnxcc and ndb_redis
again, but I haven't found information that can help me with my goal.
ndb_redis is separate module that implements connections to redis databases
(and also is able to perform authentication), has it's own functions like
redis_cmd() to interact directly with redis.
But cnxcc stores real-time amounts in redis hash keys using it's own
parameter - modparam("cnxcc", "redis", "addr=127.0.0.1;port=6379;db=1")
And I can't see possibility to use ndb_redis to perform authentication for
cnxcc module, correct me if I'm wrong.
Do you offer me to read ndb_redis code sources to use them to edit cnxcc
code sources?
Thanks in advance for your advice.
2018-03-01 9:28 GMT+02:00 Donat Zenichev <donat.zenichev(a)gmail.com>:
> Hi Daniel, first of all thanks for your attention.
>
> Perhaps I missed something. I read documentation about cnxcc and ndb_redis
> again, but I haven't found information that can help me with my goal.
> ndb_redis is separate module that implements connections to redis
> databases (and also is able to perform authentication), has it's own
> functions like redis_cmd() to interact directly with redis.
>
> But cnxcc stores real-time amounts in redis hash keys using it's own
> parameter - modparam("cnxcc", "redis", "addr=127.0.0.1;port=6379;db=1")
> And I can't see possibility to use ndb_redis to perform authentication for
> cnxcc module, correct me if I'm wrong.
>
> Do you offer me to read ndb_redis code sources to use them to edit cnxcc
> code sources?
> Thanks in advance for your advice.
>
>
>
> 2018-02-28 14:33 GMT+02:00 Daniel-Constantin Mierla <miconda(a)gmail.com>:
>
>> Hello,
>>
>> maybe authentication support was not implemented in cnxcc. Eventually it
>> can be extracted from the ndb_redis, that module has it implemented already.
>>
>> * https://www.kamailio.org/docs/modules/stable/modules/ndb_red
>> is.html#ndb_redis.p.server
>>
>> Cheers,
>> Daniel
>>
>> On 27.02.18 14:39, Donat Zenichev wrote:
>>
>> Nevertheless, I want to find the needed solution.
>> In my opinion - If module is able to connect to redis databases, it'd
>> better to perform it with authentication.
>>
>> Because, there are cases when db located on localhost is improper
>> solution or other users mustn't see hkeys, amounts inside hkeys it etc.
>> So I think no one will be mind, to have whole possibility - real-time
>> billing (cnxcc) working with redis securely.
>>
>> So please don't be apathetic to my request.
>>
>> 2018-02-26 9:44 GMT+02:00 Donat Zenichev <donat.zenichev(a)gmail.com>:
>>
>>> Hi community.
>>> This message is specially dedicated to developers of the kamailio
>>> project.
>>>
>>> I need to find solution how to make authentication for connections of
>>> cnxcc with redis.
>>> For that moment, cnxcc module is able to connect to redis only without
>>> password (Carlos Ruiz Díaz will add this possibility later?).
>>> So that, this makes database vulnerable.
>>>
>>> Well, furthermore I don't want to use local redis database, cuz I think
>>> machine that contains kamailio daemon, must perform just this kind of
>>> actions - SIP proxying (kamailio server is not to be a database server or
>>> anything else).
>>>
>>> For that moment we use separate redis db for cases like that, but this
>>> is not best practice I think.
>>> I already tried to find solution (for e.g. connections via another
>>> module like db_redis:
>>> https://github.com/kamailio/kamailio/pull/1432) but I got advice -
>>> achieving my goal by sr-users mailing list.
>>>
>>> Please pay attention for my request. I think this will be very helpfull
>>> for others.
>>>
>>>
>>>
>>> --
>>> --
>>> BR, Donat Zenichev
>>> Wnet VoIP team
>>> Tel Ukraine: +380(44) 5-900-800
>>> Tel USA: +164(67) 8-174-17 (ext 1320)
>>> https://w-net.us/ <http://wnet.ua>
>>>
>>
>>
>>
>> --
>> --
>> BR, Donat Zenichev
>> Wnet VoIP team
>> Tel Ukraine: +380(44) 5-900-800
>> Tel USA: +164(67) 8-174-17 (ext 1320)
>> https://w-net.us/ <http://wnet.ua>
>>
>>
>> _______________________________________________
>> 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 - March 5-7, 2018, Berlin - www.asipto.com
>> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com
>>
>>
>
>
> --
> --
> BR, Donat Zenichev
> Wnet VoIP team
> Tel Ukraine: +380(44) 5-900-800
> Tel USA: +164(67) 8-174-17 (ext 1320)
> https://w-net.us/ <http://wnet.ua>
>
--
--
BR, Donat Zenichev
Wnet VoIP team
Tel Ukraine: +380(44) 5-900-800
Tel USA: +164(67) 8-174-17 (ext 1320)
https://w-net.us/ <http://wnet.ua>
Hi All,
I'm currently in the process of upgrading a kamailio instance from 4.4.6
to 5.1.2.
Since"janssonrpc-c" has been renamed in "jsonrpcc" I have to adapt my
configuration.
In version 4.4.6, the function "janssonrpc_request" allowed me to setup
a specific timeout for the request.
Is it possible to do the same in version 5.1.2 with the function
"jsonrpc_request"? Because the documentation doesn't mention it.
Thank you
Best regards
Marco
Victor,
We are going to use this parameter, but we found that cleanup process should use such filter too.
Otherwise different instances of proxy delete records of each other and it leads to the problems when db_mode 1 or 2 (cached) is used.
Soon I am going to propose a pull request with filter in cleanup procedure.
Could you tell me please, if it is necessary to add a new parameter for cleanup process or I can use this server_id_filter?
Is there some case when we need to use this filter on startup but we don't it during cleanup?
Thank you.
Best regards,
Konstantin
Hello everybody,
Could somebody clarify why server_id_filter parameter is not listed in the usrloc module article?
It is not ready for usage? Or it was forgotten to be added into description?
Thank you
Best regrads
Konstantin