Re: [SR-Users] rtimer execution period - round two

2012-07-23 Thread Daniel-Constantin Mierla
Hello, On 7/24/12 4:46 AM, Alex Balashov wrote: On 07/23/2012 08:38 PM, Alex Balashov wrote: route[ACCT_WRITER] { while(mq_fetch("acct_write")) { # Some stuff to write $mqv(...) values to PostgreSQL. ... sql_query("ca", "SELECT * FROM acct_event_

[SR-Users] Kamailio with APNS

2012-07-23 Thread Duong Manh Truong
Hi list, My team are developing a SIP client for mobile running iOS , then having to deal with the "back ground mode" problem while this soft is installed on mobiles One of the solutions is using APNS. (Apple Push Notification Service) I wanna to use Kamailio as SIP Redirect / Proxy for my curr

Re: [SR-Users] rtimer execution period - round two

2012-07-23 Thread Alex Balashov
On 07/23/2012 08:38 PM, Alex Balashov wrote: route[ACCT_WRITER] { while(mq_fetch("acct_write")) { # Some stuff to write $mqv(...) values to PostgreSQL. ... sql_query("ca", "SELECT * FROM acct_event_proc(...)"); ... mq_pv_free

Re: [SR-Users] rtimer execution period - round two

2012-07-23 Thread Alex Balashov
Okay, ignore this bit. I had a conflicting timer that I forgot about that was engaged at a 5 sec interval, thus polluting the results. When I run my pure while() loop test routine and only it, it does not demonstrate this loop-breaking behaviour. It still doesn't explain what is going on wit

Re: [SR-Users] rtimer execution period - round two

2012-07-23 Thread Alex Balashov
Yeah, something's going on interrupting the execution of the route. I set the interval to 1: modparam("rtimer", "timer", "name=test;interval=1;mode=1") And then added this to the infinite for() loop in timer_proc.c:fork_basic_timer(), after the call to the timer_function:

Re: [SR-Users] rtimer execution period - round two

2012-07-23 Thread Alex Balashov
I think some sort of execution time governor in the actions infrastructure is probably the right angle here. I added a log statement to modules_k/rtimer/rtimer_mod.c:stm_timer_exec(): for(rt=it->rt; rt; rt=rt->next) { fmsg = faked_msg_next(); if (

Re: [SR-Users] rtimer execution period - round two

2012-07-23 Thread Alex Balashov
I did an experiment to try to simplify the problem, and rule out mqueue concurrency/locking issues: modparam("pv", "shvset", "lasttm=i:-1") modparam("rtimer", "timer", "name=test;interval=1;mode=1") modparam("rtimer", "exec", "timer=test;route=TEST_ROUTE") route[TEST_ROUTE] {

Re: [SR-Users] rtimer execution period - round two

2012-07-23 Thread Alex Balashov
On 07/23/2012 08:38 PM, Alex Balashov wrote: mq_pv_free("account_write"); This is a typo, btw. -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://ww

Re: [SR-Users] rtimer execution period - round two

2012-07-23 Thread Alex Balashov
I am wondering if the execution time of a route is somehow bounded in action.c/run_actions(). Unfortunately, I don't enough about how it works to figure it out. On 07/23/2012 08:38 PM, Alex Balashov wrote: Hi Daniel, I wanted to go back to this thread for a minute: http://lists.sip-rou

[SR-Users] rtimer execution period - round two

2012-07-23 Thread Alex Balashov
Hi Daniel, I wanted to go back to this thread for a minute: http://lists.sip-router.org/pipermail/sr-users/2012-June/073663.html Sorry that I didn't reply to the thread; I no longer have the last message. In your reply, you said: > there is no timeout on the execution of that task. Of cou

[SR-Users] SIREMIS

2012-07-23 Thread Adam Fyfe
Hi, I am testing Siremis, and have become stuck. How does one add an outbound SIP trunk for calls ? thanks ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mai

Re: [SR-Users] Core fm_realloc function

2012-07-23 Thread Bruno Bresciani
Hi All, I imagine that this core doesn't easy to replicate but somebody can help me to understand why it was generated? There is some way to prevent it? Best Regards 2012/7/18 Renan Capaverde > I am having the same problem on kamailio 3.1.6. Someone please help. > > Cheers, > Renan > > Em

Re: [SR-Users] Kamailio setup problem

2012-07-23 Thread Stoyan Mihaylov
Check your firewall. This is from our iptables: ACCEPT udp -- anywhere anywhere udp dpts:1:6 It solved problems with video - when it had - 1:2 - then we had sound but no video. On Mon, Jul 23, 2012 at 2:53 PM, Vijay Thakur wrote: > All Experts, > > I

[SR-Users] Kamailio setup problem

2012-07-23 Thread Vijay Thakur
All Experts, I have installed Kamailio Server on Linode Cloud. I have followed the following URL for Setup: http://kb.asipto.com/kamailio:presence:k31-made-simple This is done in ubuntu 10.04. I am only able to make chat. Video chat, conference, Presence, Call, Screen Sharing is not working.

Re: [SR-Users] Can't initialize shared memory

2012-07-23 Thread Daniel-Constantine Mierla
Hello, Set debug=4 in config file and look over detailed log messages, maybe you get proper hint. If not, send them here so we can analyze them. Cheers, Daniel On Jul 22, 2012, at 4:09 PM, Uri Shacked wrote: > Hi, > > Anyone got this message " Can't initialize shared memory" ? > > When i