mentax, afaik there are two ways to manipulate trunks one is to offer number of trunks at a fixed price and the other is limiting the total number of trunks an account can use at a given time and u can set according to inbound outbound differently or collectively e.g 1 trunk in an account only one inbound or outbound or specify two one for inbound and one for outbound or a single one for both inbound and outbound and so on check jonny5 for this
mentax
romana: When I create service plan, I can specify minimum number, If I will add maximum will it work?
romana
mentax, i guess look into cb_limits and it will need to be additional to service plan
rxrd joined the channel
mrgab_ has quit
kristiankarlsson joined the channel
plau joined the channel
plau has quit
plau joined the channel
kristiankarlsson has quit
kristiankarlsson joined the channel
kristiankarlsson has quit
Tica2 has quit
mentax
I have all hosts specify in host file, but still see an error: hostname resolution is painfully slow!!! all config lookups rely on this being fast
Any idea why?
bluesandnz joined the channel
OutBackDingo_ joined the channel
MillerBoss joined the channel
Xenobyte_ joined the channel
Xenobyte1 has quit
OutBackDingo has quit
danielfinke
mentax I have this too. It hasn't affected anything in practice, but I'm not sure it's ok
mc_
do you define the local hostname in there too?
i seem to recall that's what its testing
mentax
mc_: yes
mc_: it has string 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
mc_: by the way - user NOT in sudoers ; TTY=unknown ; PWD=/opt/kazoo ; USER=kazoo ; COMMAND=/opt/kazoo/bin/kazoo pid
When I try to run /opt/kazoo/bin/kazoo it show me the error: vm.args needs to have either -name or -sname parameter.
but if I put #-name kazoo_apps to /etc/kazoo/core/vm.args kazoo-applications stop working
mc_
mentax: is this an RPM install or from source?
and what version
mentax
from rpm
kazoo-applications-4.0-2.el7.centos.noarch
mc_
interesting, maybe try upgrading to latest 4.0 RPMs
you shouldn't need to change that -name stuff
kazoo-configs rpm should handle it i blieve
believe
mentax
mc_: kazoo-configs-core-4.0-9.el7.centos.noarch
mc_: I use stable version of v4
mc_
mentax: yeah, check for upgraded packaging if you can
mentax
i see that upgrades only avalilable for kamailio
nothing else
mc_: Another question - bigcouch/vm.args -name parameter should be identical on all nodes?
mc_
mentax: typically is set to bigcouch i think
shouldn't need to touch that either
mentax
mc_: thanks!
joewatson
Hey does anyone know how to get georgian seconds in php
Im trying to do filtering in CDRs
danielfinke
joewatson add 62167219200 to time()
joewatson
so that’s added to epoch?
bluesandnz has left the channel
danielfinke
yup
joewatson
cool
so will that techincally support date/time?
danielfinke
as long as you convert to epoch, all the php funcs will work
i.e. gregorian -> epoch, subtract 62167219200 and then convert to date/time
joewatson
Okay so here is an interesting issue. So I am doing this, and the API returns a page size, but no data
any idea why that’s happening?
spankym joined the channel
nevermind I figured it out. Thanks!
danielfinke
joewatson no data in the range you supplied?
joewatson
no, it was bad documentation, hahaha
instead of filter_created_from it needs to be created_from
romana
mc_, i tried to enabled haproxy smtp and if i use send-proxy in the config it crashes gen_smtp with {error,enotconn} error it works fine with just check any other option such as check check-send-proxy or check send-proxy or check check-send-proxy send-proxy will crash it should i file a bug or u think its only with me
mc_
romana: not sure off hand
file a ticket to be sure
lazedo may know too
if he's around
romana
will do i havn't used fax before so don't know if it happened before or not :/
lazedo
romana: you may want to open an issue in gen_smtp project in github
romana: but, it works with proper settings. you need to set what you send and expect to receive (tcp_check), i use NOOP
danielfinke has quit
romana
lazedo, it even works with regular tcp check and just causes issues with send-proxy i have added my config in here https://2600hz.atlassian.net/browse/KAZOO-5378 if its an issue with gen_smtp should i close the ticket ?
lazedo
yes, its an issue with gen_smtp, check pr 61 in gen_smtp, it was open for 2 years
romana
lazedo, hahaha i guess i will issue a pr to change the config in documentation as it has send-proxy in the docs for haproxy and will close this ticket :)
lazedo
there’s lots of ways to do it, i think you can use smtp_chk, or tcp_chk (send NOOP and expect OK)
dwv
What time is it? Do I have to use UTC system time to get proper account time? I found the system timezone setting in the DB but changing it didn't seem to do anything.
romana
lazedo, yea the default tcp check works fine without specifically mentioning to expect a specific result its just for send-proxy
dwv, make sure you use utc and keep server time to utc and where you want the time changed just make sure you have the timezone in account or device or user where you want the change to happen
dwv
romana, yes that is what I do. My question is can I change that? There is a system timezone setting in the DB set to UTC. So I was wondering if it was possible to set that to my local timezone and have all my servers on my local timezone.
The reason I want my local timezone as my system time is because it makes it easier when looking at datestamps in log files.
romana
dwv, i dnt knw if you could do that and i guess its not advisable to do that :/
mentax|home
Can I setup allotments per account or it is only global?
dwv
That's what I was afraid of.
mc_
dwv: no, kazoo expects the OS timezone in UTC
lazedo
romana: feel free to make the pr to remove send-proxy from doc, i think that when it was created (3.??) we had vendoring dependencies and patched gen_smtp locally