Please is any variable available to stop screen scrolling when you use serctl showdb and you have that many users list bigger than your screen and you need to see the top part of the list
Thanks
Angel Valdes
IT Manager
201-920-2908
Talent is a gift that brings with it an obligation to serve the world, and not ourselves, for it is not of our making.
Jose Marti
Klaus / Daniel
Thanks again for assistance with this.
I've tried the solution based on add_contact_alias() and
handle_ruri_alias() and it works perfectly.
Richard
On 22 June 2012 13:47, Klaus Darilion <klaus.mailinglists(a)pernau.at> wrote:
>
>
> On 22.06.2012 13:50, Richard Brady wrote:
>>
>> Thanks guys, fantastic answers.
>>
>> You mention that NAT detection happens before save() and the flag is set
>> by lookup() which makes much more sense. However, if Kamailio is not the
>> registrar, as is the case with my current project, those functions are
>> not called, so an alternative is needed. There are clearly several
>> options.
>>
>> The solution I have gone for is to replace fix_nated_register() with
>> fix_nated_contact() so that the REGISTER request is relayed with a
>> modified Contact header containing the external ip:port of the client.
>
>
> The cleanest solution would be to use add_contact_alias() and
> handle_ruri_alias(). The do not change the contact but put the public
> address into a uri parameter. Thus, the URI seen by the client is always the
> one it sends:
> http://www.kamailio.org/docs/modules/3.2.x/modules_k/nathelper.html#id25504…
>
>
>> That is then stored by the registrar (FreeSWITCH in my case) and used
>> later to originate calls for that user. The FreeSWITCH know to send
>> those calls to Kamailio through either use of the Path header and module
>> in Kamailio, or through static configuration of fs_path or proxy
>> parameters in FreeSWITCH.
>
>
> This is fine.
>
>
>> The works for the first INVITE to the registered client behind NAT. But
>> that client sends back a 200 OK with a Contact header containing its
>> private IP address, and so fix_nated_contact() needs to be invoked on
>> that response, and normally it would be due to FLB_NATB being set, but
>> if Kamailio was not the registrar then that flag is not set. So I need
>> to detect NAT on the client at the time of receiving the reply, or
>> alternatively by having the registrar store a cookie and setting it
>> based on that.
>
>
> You are correct. For in-dialog messages received from SIP clients I would
> always use add_contact_alias() and remove the NAT flags completely.
>
>>
>> I suppose then my next question then is can I call nat_uac_test() on a
>> UAS?
>
>
> Today, almost any SIP clients are SIP symmetric. This means, that they
> receive SIP from the some port/connection where they send. Thus, skip the
> NAT tests completely and always use add_contact_alias() for messages receive
> from SIP clients and handle_ruri_alias() for messages sent to SIP clients.
>
> Depending on if you use Freeswitch also as media relay you can also remove
> the media proxy stuff from the Kamailio config.
>
> On important thing is NAT-keep-alive. This is usually done by nathelper
> module by querying the location table for contact with NAT-flag set. Thus,
> either you do NAT keep-alive by freeswitch (e.g sending OPTIONS requests) or
> do it in your Kamailio proxy (e.g. set the nat_bflag
> http://www.kamailio.org/docs/modules/3.2.x/modules_k/usrloc.html#id2541477
> and call save("location","0x02") before relaying REGISTER to freeswitch.
> Then Kamailio will do NAT-pinging. Note, if you want to keep-alive only for
> successfully registered clients, you man want to call save() in the
> reply-route of the REGISTER request).
>
> regards
> Klaus
Hello,
I'm setting up new Kamailio 3.3 from git ref-link:
http://www.kamailio.org/wiki/install/3.3.x/git
I'm using CentOS 5.8 and when I execute the line
# git checkout -b 3.3 origin/3.3
it gives me error.
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'origin/3.3' which can not be resolved as commit?
Can I skip it ! o need to do something about it !!
Regards,
Sammy G.
Hey Guys,
After upgrading from 3.2.x to 3.3.0 (out of debian packages and
fixing db side) Kamailio is crashing on processing REGISTER. This
crash only happens for updates (or if a stale contact for the same AOR
is already present), not initial REGISTERs.
Attached you can find the log taken with debug=6 as well as the
REGISTER package producing the segfault.
Kamailio version:
"""
root@PrxyDev:/etc/slocator# kamailio -V
version: kamailio 3.3.0 (i386/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS,
USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM,
SHM_MMAP, PKG_MALLOC, F_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 22:17:07 Jun 18 2012 with gcc 4.4.5
"""
Syslog msg in debug=2:
"""
Jun 27 15:46:22 PrxyDev kernel: [11330.002854] kamailio[6959]:
segfault at 0 ip (null) sp bf8d531c error 4 in
kamailio[8048000+1ea000]
Jun 27 15:46:22 PrxyDev /usr/sbin/kamailio[6970]: : <core>
[pass_fd.c:293]: ERROR: receive_fd: EOF on 10
Jun 27 15:46:22 PrxyDev /usr/sbin/kamailio[6957]: ALERT: <core>
[main.c:785]: child process 6959 exited by a signal 11
Jun 27 15:46:22 PrxyDev /usr/sbin/kamailio[6957]: ALERT: <core>
[main.c:788]: core was not generated
"""
Thanks in advance for any tip!
DanB
Thanks guys for the info.
Will try again and keep on it.
Rgds,
Gertjan
On 6/28/12 08:55:27 AM Daniel-Constantin Mierla wrote;
Hello,
On 6/27/12 6:08 PM, Corey Edwards wrote:
> On 06/26/2012 08:36 AM, Gertjan Wolzak wrote:
>> Which timer do I need to use to get a failure route to reroute the
>> call to a pstn gateway?
>>
>>
>>
>> I have tried the fr_timer which works, I set it to 5000, downside is
>> that when I am in wifi range, I only have 5 seconds to answer the call.
>>
>>
>>
>> The fr_inv_timer is not the right one I think, as I will not get any
>> message from the called number, as that device is not connected?.
> I'm not an expert on this, but I'll post my experience and I hope that
> helps. I'm using Kamailio 1.5, so perhaps YMMV.
>
> I have fr_timer set to 2 seconds and fr_inv_timer set to 60 seconds.
> The latter can be overridden by fr_inv_timer_avp so users can alter
> their own timers. I do not let users change fr_timer.
>
> The behavior I see is the device has 2 seconds to give a provisional
> response to an INVITE. If the device has powered off, changed IP, etc.
> this timer will quickly return an error.
>
> If the device is responsive and, for example, sends a 180 Ringing, the
> fr_timer ceases to apply and the fr_inv_timer waits 60 seconds before
> giving up and triggering a 408 Timeout.
it is the same in 3.x, these two parameters are the right to be used in this
way.
Have in mind that in 3.x the accuracy is in milliseconds:
<http://kamailio.org/docs/modules/stable/modules/tm.html#fr_timer>
http://kamailio.org/docs/modules/stable/modules/tm.html#fr_timer
Another new features in 3.x is that apart of using avps to set it per
transaction (still in seconds), there is a new function that can be used to
set it in milliseconds per transaction:
<http://kamailio.org/docs/modules/stable/modules/tm.html#t_set_fr>
http://kamailio.org/docs/modules/stable/modules/tm.html#t_set_fr
Cheers,
Daniel
hi guys,
i'm currently using cron to alert the admin via email of any
irregularities (e.g. pike) but i'm wondering, is it possible to do a
system call from the cfg script?
Hello.
Can someone help me on how to update a module patch using GIT?
I need to update the module dialog…..
Currently I have the directory
/usr/local/src/kamailio-3.2
And under this I have
kamailio/
all this was created using :
git clone --depth 1 git://git.sip-router.org/sip-router kamailio
cd kamailio
git checkout -b 3.2 origin/3.2
I’ll appreciate any help.
Thanks in advance,
Ricardo Martinez.-
On 06/26/2012 08:36 AM, Gertjan Wolzak wrote:
> Which timer do I need to use to get a failure route to reroute the call
> to a pstn gateway?
>
>
>
> I have tried the fr_timer which works, I set it to 5000, downside is
> that when I am in wifi range, I only have 5 seconds to answer the call.
>
>
>
> The fr_inv_timer is not the right one I think, as I will not get any
> message from the called number, as that device is not connected….
I'm not an expert on this, but I'll post my experience and I hope that
helps. I'm using Kamailio 1.5, so perhaps YMMV.
I have fr_timer set to 2 seconds and fr_inv_timer set to 60 seconds. The
latter can be overridden by fr_inv_timer_avp so users can alter their
own timers. I do not let users change fr_timer.
The behavior I see is the device has 2 seconds to give a provisional
response to an INVITE. If the device has powered off, changed IP, etc.
this timer will quickly return an error.
If the device is responsive and, for example, sends a 180 Ringing, the
fr_timer ceases to apply and the fr_inv_timer waits 60 seconds before
giving up and triggering a 408 Timeout.
Corey
Hello all of you,
I tried to install kamallio 3.3 version released a couple days ago . I followed the steps mentioned here https://www.kamailio.org/wiki/install/3.3.x/git
Everything works fine until I have to create mysql database . Everything goes fine until I have to install mysql database (step 7) : I run "sudo /usr/local/sbin/kamdbctl create" for database creation but I get this :
INFO: test server charset
/usr/local/lib/kamailio//kamctl/kamdbctl.mysql: line 105: mysql: command not found
/usr/local/lib/kamailio//kamctl/kamdbctl.mysql: line 106: mysql: command not found
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
/usr/local/lib/kamailio//kamctl/kamdbctl.mysql: line 112: [: =: unary operator expected
INFO: creating database openser ...
/usr/local/lib/kamailio//kamctl/kamdbctl.mysql: line 71: mysql: command not found
ERROR: Creating core database and grant privileges failed!
It seems that mysql -serverside- is not installed (my opinion ...) .What do you think?
Many Thanks,
Aurel
ps: please excuse me if this is not right forum for this question but I did not find the right one ....