Hi all,
Currently running on 1.5.4-notls and using a single htable that gets loaded
at startup ala
modparam("htable", "htable",
"local_routes=>size=4;autoexpire=0;dbtable=TABLE_A;")
modparam("htable", "key_name_column", "NAME_1")
modparam("htable", "key_value_column", "VALUE_1")
modparam("htable", "fetch_rows", 512)
This works great, the problem I've run into is attempting to load a second
htable on startup whose data comes from a different table/scheme ala
modparam("htable", "htable",
"inbound_acl=>size=4;autoexpire=0;dbtable=TABLE_B;")
modparam("htable", "key_name_column", "NAME_2")
modparam("htable", "key_value_column", "VALUE_2")
modparam("htable", "fetch_rows", 512)
With both of them in the config file Kamailio fails to start with the error
INFO:core:init_mod: initializing module htable
ERROR:db_mysql:db_mysql_submit_query: driver error on query: Unknown column
'NAME_2' in 'field list'
'NAME_2' does not exist in 'TABLE_1' so that seems to suggest that only the
first dbtable value is used, the SQL side supports this:
select NAME_2,key_type,value_type,VALUE_2 from TABLE_A order by key_type
So it uses the first defined database table, but then the last defined
key_name and key_value.
Is there any way that I've overlooked in the docs or elsewhere about about
loading multiple htables from different database tables? I'd like to use
this htable in an ACL and would like to avoid database hits though can make
it work with avpops if I have to.
Any suggestions are greatly appreciated.
Thanks, Robin
Dear all,
I have these 3 entries in the dialplan:
dpid pr match_exp attr
2 50 ^38.+ porvider_A
2 50 ^3802.+ porvider_B
2 50 ^3806.+ porvider_C
with the fifo command :
*kamctl fifo dp_translate 2 3806328881*
Output::
ATTRIBUTES::* porvider_A*
I would expect that the dialplan module would choose the third choice which
is the correct one for this call.
>From the dialplan documentation i understand that the priority is needed
when the prefixes are overlaping in terms of they are the same but with
different attrs like :
2 50 ^38.+ porvider_A
2 50 ^3802.+ porvider_B
*2 50 ^3806.+ porvider_C*
*2 50 ^3806.+ porvider_D*
*
*
here i understand that I should use priorities.
Does anyone knnows how this works ??
Thank you in advance
Alex
*
*
Hi!
Just as a note: I find it a bit strange that acc (4) and missed_calls
(3) have different version numbers although they are identical. Anyway,
it seems that acc module does not make version checks at all.
regards
Klaus
Hello,
the 3rd of September will mark the 10 years since the start of SIP
Express Router (aka SER - also the origin for kamailio (openser) and now
the two are back together). From last year:
* http://sip-router.org/wiki/history/ser-9-years
This is a good time to celebrate and I am thinking of at least a social
event (e.g., dinner) in Berlin, Germany. Based of private discussion so
far, other cities are interested in organizing something similar
locally, e.g., Barcelona. If you are a group of people that can gather
together for a drink in same place to celebrate the event, let me know
and I will add in the list to coordinate - hopefully we will be even
able connect between sites with some video/audio if the timezones are
convenient.
I'm looking as well to do a more formal event, something like a day long
conference style, on Friday, 2nd of September. Berlin is the natural
choice for location, being the place where the project started. I can
take care of location when it is clear that there are people willing to
travel. Berlin area alone should be able to get about 20 people, among
them several long term developers of the project and companies offering
SER/Kamailio-based services. Coming over gives you the opportunity to
connect directly with them.
At this event, along with presenting shortly the history and future
plans, the event should be open to everyone that want to present their
usage of SER/Kamailio. Attendance is going to be free, in the limit of
available seats. If you think it would be interesting and want to
attend, let me know.
Also, if you have other ideas of how to celebrate, write us back.
Best regards,
Daniel
--
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kathttp://linkedin.com/in/miconda -- http://twitter.com/miconda
Brodde(a)yahoo.com
Sent from my HTC
----- Reply message -----
From: "Roberto Fichera" <kernel(a)tekno-soft.it>
To: "Henning Westerholt" <henning.westerholt(a)1und1.de>
Cc: "sr-users(a)lists.sip-router.org" <sr-users(a)lists.sip-router.org>
Subject: [SR-Users] Playing with dlg_bridge()
Date: Thu, Jul 7, 2011 16:01
On 07/07/2011 02:51 PM, Henning Westerholt wrote:
> On Thursday 07 July 2011, Roberto Fichera wrote:
>>>> Do you know what does means the warning below?
>>>> [..]
>>>> 68.2.50 Jul 6 11:54:17 roberto /usr/sbin/kamailio[20457]: WARNING:
>>>> dialog [dlg_handlers.c:884]: unable to find dialog for NOTIFY with
>>>> route param '7d2.14447fc4' [727:1291273281]
>>> This means that the module can't find an existing (stored) dialog for the
>>> routed message in question, in this case a NOTIFY.
>> Does this depends by the fact of own the dlg_bridge() works? And in case,
>> how can I solve that problem?
> Hi Roberto,
Hi Henning,
> I'm not 100% sure, I'm not the expert for dlg_bridge.. To be more specific
> (after discussion with Timo..) - the warning is emmited if the module can't
> find the dialog with the ID added as a route parameter to the respective
> message. One particiular reason is (if you don't store the dialogs in a
> database) a simple kamailio restart, then all existing dialog information is
> lost.
actually I've the following setup:
#!define DBURL "postgres://openser:openserrw@localhost/openser"
modparam("dialog", "dlg_flag", 2)
modparam("dialog", "bridge_controller", "sip:controller@192.168.2.92")
modparam("dialog", "db_url", DBURL )
Actually, my thought is that problem is more strictly related to the dlg_bridge()
which might not track the bridged dialog.
Anyway, I'm playing with dlg_bridge() because I want to realize the logic so
that two peers, and if possible more, can talk together only if authorized.
The authorization might be a unique tag or transaction id, stored in a database,
and valid only for the give conversation {tag, caller, callee} once started, than
the tag become invalid and can't be used again.
I really like to have some suggestions about how to realize such logic,
so which might be the best way to approach such problem since I'm actually
a novice to Kamailio or in general with OpenSer logic. I'm actually more
confident with Asterisk logic.
> Best regards,
>
> Henning
>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi,
I have a problem in my scenario where I use the dispatcher module for
(round-robin based) distribution of incoming calls to 15 (!) different
gateways. In idle case (= all gateways are up and running or just a
couple of them does not accept calls) my solution is working fine. The
solution is very primitive and based on the example of the dispatcher
module's ReadMe. However, when e.g. 12 of 15 gateways are out of service
(in detail: rejecting the call with "480 - Temporarily Unavailable") and
only the 13th would be okay, I can not reach that gateway. This is
because the TM module is interrupting the distribution with an error
message indicating that the maximum number of branches (per transaction)
is reached (ERROR:/tm/:/add_uac/: /maximum number of branches/ exceeded)....
My first idea for solving this problem was/is in manipulating the
definition of the "max_branches" constant in the config.h file. However,
I prefer using the precompiled Debian packages. Therefore that solution
is not optimal. I have not found a method for decreasing the
destination_set on an easy way... Does anybody know an alternative
solution / workaround?
Thanks in advance,
Klaus
Hi,
I am installed ser 0.9.6 onto my mac machine and with following command i
get it to listen to 5060 port. but when i use a sip client and send register
message i get a 501 not implemented as a response from the server.
i am attaching ser.cfg. your help is appreciated.
--
Thanks
Paul
Hello,
just to let you know about some recent additions regarding the config
file preprocessor, hopefully they will help you keep the config cleaner
and easy to maintain.
- you can use either #! or !! as the start marker of preprocessor
directive (to make happy those complaining about not able to distinguish
quickly from comments)
- subsdef was added some time ago to allow defining a token that will
replace ID tokens as well as update inside string values. It has the
same format as #!subst. For example:|
#!substdef "!ABC!XYZ!g"|
is pretty much same as:
#!define ABC XYZ
#!subs "/ABC/XYZ/"
- substdefs, like substdef byt the defined value will be added enclosed
in double quotes:
|#!substdef "!ABC!XYZ!g"|
is pretty much same as:
#!define ABC "XYZ"
#!subs "/ABC/XYZ/"
- trydef - similar to define, but if the ID is defined already, ignore
this time
- redef - similar to define, but if the ID is defined, redefine its
value (note that define itself throws error if the ID is already defined)
Regarding the inclusion of files, a new option is available,
'import_file'. It is similar to 'include_file', but if the file is not
found, it does not throw error. Bot include_file and import_file can be
started as well with #! or !!. You can still use them without #! or !!,
whatever you like more.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kathttp://linkedin.com/in/miconda -- http://twitter.com/miconda