Hi,
anyone from the Kamailio-Community in for a beer tomorrow evening in London?
I have several meetings during the day (last one at 5PM) and i'll be
travelling back to Germany on Saturday, so i'm free for some chat
about Kamailio, SIP, IMS or IPv6 during the evening... :-)
If yes, just drop me a mail...
Carsten
--
Carsten Bock
CEO (Geschäftsführer)
ng-voice GmbH
Schomburgstr. 80
D-22767 Hamburg / Germany
http://www.ng-voice.com
mailto:carsten@ng-voice.com
Office +49 40 34927219
Fax +49 40 34927220
Sitz der Gesellschaft: Hamburg
Registergericht: Amtsgericht Hamburg, HRB 120189
Geschäftsführer: Carsten Bock
Ust-ID: DE279344284
Hier finden Sie unsere handelsrechtlichen Pflichtangaben:
http://www.ng-voice.com/imprint/
Spam detection software, running on the system "mail.iptel.org", has
identified this incoming email as possible spam. The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: òÁÂÏÔÁÅÔÅ ÂÕÈÇÁÌÔÅÒÏÍ? ðÏÍÎÉÔÅ, ËÁË ÓÌÏÖÎÏ ×ÁÍ ÒÁÎØÛÅ ÂÙÌÏ
ÎÁÊÔÉ ÏÂÕÞÅÎÉÅ ÐÏ ÎÕÖÎÏÊ ÔÅÍÅ ôÅÐÅÒØ, ÎÁ ÓÁÊÔÅ ÎÁÛÅÇÏ ÕÞÅÂÎÏÇÏ ÃÅÎÔÒÁ ÎÁ
ÜÔÏ ÕÊÄÅÔ ×ÓÅÇÏ ÎÅÓËÏÌØËÏ ÍÉÎÕÔ! é ÎÅ ×ÁÖÎÏ, × ÞÅÍ ×ÁÍ ÎÕÖÎÏ ÒÁÚÏÂÒÁÔØÓÑ
- × îäó, ÒÁÓÞÅÔÅ ÏÔÐÕÓËÏ×, ÏÐÌÁÔÅ ÔÒÕÄÁ, ÎÁÌÏÇÏÏÂÌÏÖÅÎÉÉ, ÓÔÒÁÈÏ×ÙÈ ×ÚÎÏÓÁÈ,
ÐÏÄÇÏÔÏ×ÉÔØÓÑ Ë ×ÏÚÍÏÖÎÙÍ ÐÒÏ×ÅÒËÁÍ ÉÌÉ ÒÁÚÏÂÒÁÔØÓÑ Ó ÄÏËÕÍÅÎÔÏÏÂÏÒÏÔÏÍ.
úÁÈÏÄÉÔÅ ÎÁ ÎÁÛ ÓÁÊÔ - ÕÞÉÔØÓÑ ÓÔÁÌÏ ÇÏÒÁÚÄÏ ÐÒÏÝÅ. é ÍÙ ×ÓÅÇÄÁ ÐÏÍÏÖÅÍ, ÒÁÓÓËÁÖÅÍ,
ÏÂßÑÓÎÉÍ É ÐÏÄÂÅÒ£Í ÔÏ, ÞÔÏ ×ÁÍ ÐÏÄÏÊÄ£Ô! [...]
Content analysis details: (9.5 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
3.5 BAYES_99 BODY: Bayes spam probability is 99 to 100%
[score: 0.9981]
-0.0 SPF_PASS SPF: sender matches SPF record
0.4 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL
[2.146.222.10 listed in zen.spamhaus.org]
3.3 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL
1.4 RCVD_IN_BRBL_LASTEXT RBL: RCVD_IN_BRBL_LASTEXT
[2.146.222.10 listed in bb.barracudacentral.org]
0.8 RDNS_NONE Delivered to internal network by a host with no rDNS
0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines
Following examples, I tried to add processing of offline messages.
Structure of my system is:
SIP client <->Kamailio<->Asterisk<->Kamailio<->SIP client
Where Kamailio in above is same server, but SIP clients are different.
Now I have no problems with audio, video calls and messages, if both
clients are online.
All messages received from client are sent to Asterisk, where I can or not
process them and then I forward back to Kamailio. When messages came from
Asterisk server, then they are sent directly to end user.
Sending messages to end user - I call this function, only if message come
from allow_source_address():
route[MSILO_MESSAGE]{
if (lookup("location")){
xlog(" Relying");
t_relay();
}else{
xlog("Storing MSILO_MESSAGE $ru-$tu-$ou");
m_store("$ru");
t_relay();
t_reply("202", "Accepted");
};
exit();
}
When client register:
route[REGISTRAR] {
if (is_method("REGISTER"))
{
if(isflagset(FLT_NATS))
{
setbflag(FLB_NATB);
# uncomment next line to do SIP NAT pinging
## setbflag(FLB_NATSIPPING);
}
if (!save("location",0x04))
sl_reply_error();
# MSILO - dumping user's offline messages
if (m_dump("$fu")){
xlog("MSILO: offline messages for $fu dumped - if they were \n");
}else{
xlog("MSILO: no offline messages dumped\n");
};
exit;
}
}
I am sending message to offline contact, and I see record in silo table.
Record looks perfect.
Then offline contact become online, I see in debug MSILO: offline messages
for {offlined contact} dumped - if they were
But client do not receive nothing.
In case all contacts are online, then message go to contact, and is not
stored in silo.
Setup of msilio is:
loadmodule "msilo.so"
modparam("msilo","db_url",DBURL)
modparam("msilo","from_address","sip:registrar@MY DOMAIN")
modparam("msilo","contact_hdr","Contact: registrar@MYDOMAIN:5060;msilo=yes\r\n")
modparam("msilo","content_type_hdr","Content-Type: text/plain\r\n")
modparam("msilo","offline_message","***$rU***$rb***")
By the way - I receive in Asterisk offline message.
Obviously, I am doing something wrong, but I cant understand what.
Any help is welcome.
Version of Kamailio is:
#~> kamailio -V
version: kamailio 3.2.3 (x86_64/linux) 59f87e
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,
DBG_QM_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: 59f87e
compiled on 14:43:47 Jul 19 2012 with gcc 4.5.2
i have defined:
modparam("dispatcher", "flags", 2)
modparam("dispatcher", "ds_ping_interval", 10)
modparam("dispatcher", "ds_probing_threshhold", 3)
modparam("dispatcher", "ds_probing_mode", 2)
and still i see that dispatcher is pinging inactive node at least
once per second:
U 2012/09/05 13:47:04.143977 192.98.103.10:5060 -> 192.98.103.3:5070
OPTIONS sip:192.98.103.3:5070 SIP/2.0.
...
U 2012/09/05 13:47:04.644185 192.98.103.10:5060 -> 192.98.103.3:5070
OPTIONS sip:192.98.103.3:5070 SIP/2.0.
...
U 2012/09/05 13:47:05.143991 192.98.103.10:5060 -> 192.98.103.3:5070
OPTIONS sip:192.98.103.3:5070 SIP/2.0.
...
U 2012/09/05 13:47:06.143975 192.98.103.10:5060 -> 192.98.103.3:5070
OPTIONS sip:192.98.103.3:5070 SIP/2.0.
...
U 2012/09/05 13:47:06.144056 192.98.103.10:5060 -> 192.98.103.3:5070
OPTIONS sip:192.98.103.3:5070 SIP/2.0.
...
what is that i'm missing in order to make ping interval 10 seconds?
-- juha
> The 20% initialy loaded is because I load many data with MTREE,
> HTABLE,DIALPLAN etc....(5 million rows with MTREE..)
> Regarding the PKG, how do i set it? I read a few months ago that the
> shared and private memory on version 3.2.2 are the same.
> Thanks for the help :-)
>
> On 09/05/2012 11:44 AM, Uri Shacked wrote:
> >* Hi, *>* Thanks, *>* How do i find memory leaks? *>* when my
> application starts the it shows the following values: *>* shmem:fragments
> = 143898 *>* shmem:freesize = 3446570952 *>* shmem:max_used_size =
> 861854768 *>* shmem:real_used_size = 848396344 *>* shmem:total_size =
> 4294967296 *>* shmem:used_size = 319676976 *>* I divided the
> "real_used_size" with the "total_size" and notice that *>* it is 20%. So,
> this is my initial value of the application. *>* After 2 months with
> 40,000 calls per day, the relations between these *>* values is 39%.
> (doing a reload of the data that occupies 20% failed *>* due to "no
> memory") *>* So, 19% occupation of memory is normal for this amount of
> calls? or is *>* it a memory leak? if it is a memeory leak, how do i see
> where? *Hello,
>
> Too little information to go on here. A reload might fail mostly because
> data from the DB (e.g. with carrierroute case) is first loaded into
> private memory (the sql result). Depending of the module there are other
> tricks you could do (decrease the number of fetch rows the query returns
> etc.). The out of memory condition affects shared or private mem. Try to
> use at least 15 MB for PKG mem.
>
> If the 39% is with traffic, then it's normal, if you don't have any
> traffic I still would not worry. The thing that worries me a little is
> the value, you are using from the start around 0.8 GB of used shared
> memory... this is a lot. From the percentages you provided it looks ok....
>
> Marius
> >* Uri *>* On 09/05/2012 10:19 AM, Uri Shacked wrote: *>* >/Hi, />/When I
> start kamailio it loads some data into memory. />/Now *>* calls are
> starting to gather up. How can I check how mach memory *>* />/does my
> avp's take? />/BR, />/Uri /Hello Uri, *>* *>* avp's are associated with
> the transactions, so they free'd when the *>* transaction stops(and calls
> are composed of transactions). This is true *>* for dialog information as
> well (dlg_var's etc.). Continuous growth in *>* memory at a constant call
> rate (incoming sip requests) might mean a *>* leak. If you need
> statistics about the total memory usage you can use *>* `kamctl fifo
> get_statistics all` and check for the shmem real_used_size *>* and
> max_used_size fields. *>* *>* Cheers, *>* Marius *>* *>* -- *>* Zbihlei
> Marius *>* *>* Head of *>* Linux Development Services Romania *>* *
>
> --
> Zbihlei Marius
>
> Head of
> Linux Development Services Romania
>
> 1&1 Internet Development srl Tel KA: 754-9152
> Str Mircea Eliade 18 Tel RO: +40-31-223-9152
> Sect 1, Bucuresti mailto: marius.zbihlei at 1and1.ro<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
> 71295, Romania
>
>
Hi,
Thanks,
How do i find memory leaks?
when my application starts the it shows the following values:
shmem:fragments = 143898
shmem:freesize = 3446570952
shmem:max_used_size = 861854768
shmem:real_used_size = 848396344
shmem:total_size = 4294967296
shmem:used_size = 319676976
I divided the "real_used_size" with the "total_size" and notice that it is
20%. So, this is my initial value of the application.
After 2 months with 40,000 calls per day, the relations between these
values is 39%. (doing a reload of the data that occupies 20% failed due to
"no memory")
So, 19% occupation of memory is normal for this amount of calls? or is it a
memory leak? if it is a memeory leak, how do i see where?
Uri
On 09/05/2012 10:19 AM, Uri Shacked wrote:
>* Hi, *>* When I start kamailio it loads some data into memory. *>* Now
calls are starting to gather up. How can I check how mach memory *>* does
my avp's take? *>* BR, *>* Uri *Hello Uri,
avp's are associated with the transactions, so they free'd when the
transaction stops(and calls are composed of transactions). This is true
for dialog information as well (dlg_var's etc.). Continuous growth in
memory at a constant call rate (incoming sip requests) might mean a
leak. If you need statistics about the total memory usage you can use
`kamctl fifo get_statistics all` and check for the shmem real_used_size
and max_used_size fields.
Cheers,
Marius
--
Zbihlei Marius
Head of
Linux Development Services Romania
Hi,
When I start kamailio it loads some data into memory.
Now calls are starting to gather up. How can I check how mach memory does
my avp's take?
BR,
Uri
Hi,
i seems to me that the "event_route[dialog:failure]" does not recognize
dialog failures.
i use dlg_manage when i recieve the INVITE. i get 301, 302, 402 or
send_reply with some +300 responses.
on the manage_failure i print the responses, on the
event_route[dialog:start] and [dialog:end] i get good results as well.
but, the dialog:failure] does not rise....
any ideas?
BR,
Uri
I think I saw once an example from miconda using LUA for Auth?
Does anyone else remember seeing that?
I wanted to do a custom Auth using LUA.
Thanks in advance for any pointers.
David.
It is true. It disappeared from the docs after the 3.0 sip-router convergence. It is present in 'tm' docs in <= 1.5.x, though.
The current docs do have t_grep_status(), which seems in many respects identical. I wonder if one is an alias for another now.
--
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com
Juha Heinanen <jh(a)tutpro.com> wrote:
>looks like t_check_status is not documented in any readme file.
>
>-- juha
>
>_______________________________________________
>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