Re: [SR-Users] SIREMIS

2012-07-24 Thread Daniel-Constantin Mierla
Hello, On 7/23/12 5:14 PM, Adam Fyfe wrote: Hi, I am testing Siremis, and have become stuck. How does one add an outbound SIP trunk for calls ? trunking is more like forwarding traffic, do you look for kind of least cost routing engine? If yes, then check lcr, carrierroute or drouting modul

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

2012-07-24 Thread Uri Shacked
> > this is the log when debug is 4... > > Jul 24 10:19:37 RNDSRV kamailio: : [cfg.y:3532]: parse error in > config file /usr/local/etc/kamailio/global_params.cfg, line 121, column 54: > Can't initialize shared memory > Jul 24 10:19:37 RNDSRV kamailio: ERROR: mi_fifo [mi_fifo.c:271]: FIFO stat >

[SR-Users] Cant make from_uri, request_uri work for LCR module

2012-07-24 Thread Antanas Masevicius
Hello, having trouble running LCR in kamailio 3.3 (head). Here is my DB excerpt which i use to reproduce the problem: INSERT INTO `lcr_rule` VALUES (2617960,90,'118','.*',1,1,'.*'); INSERT INTO `lcr_rule_target` VALUES (7771454,90,2617960,1424,0,100); INSERT INTO `lcr_gw` VALUES (1424,90,'OP1','1

Re: [SR-Users] Cant make from_uri, request_uri work for LCR module

2012-07-24 Thread Alex Balashov
When calling load_gws(), try putting $rU and $fu in double quotes, e.g. "$rU" rather than $rU bare.  -- Alex -- Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Su

Re: [SR-Users] Kamailio with APNS

2012-07-24 Thread Nguyen Thanh Tien
I think you can find the 404 message at the onreply_route[]. I tried and found the 200 OK here. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/l

Re: [SR-Users] Cant make from_uri, request_uri work for LCR module

2012-07-24 Thread Antanas Masevicius
Hello, thanks for the tip Alex, but still getting the same error: lcr [hash.c:166]: could not find (disabled) rule with id <2617960> if it helps, here is my ldd output for lcr.so: linux-vdso.so.1 => (0x7e7ff000) libpcre.so.3 => /lib/libpcre.so.3 (0x7faf0cfd1000)

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

2012-07-24 Thread Alex Hermann
On Tuesday 24 July 2012 04:46:43 Alex Balashov wrote: > So, perhaps my issue comes down to the while() loop breaking before the > queue is truly empty. That is, unless those thousands of records are > somehow showing up between the while() condition evaluation and my log > statement, which seem

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

2012-07-24 Thread Alex Balashov
On 07/24/2012 04:20 AM, Alex Hermann wrote: On Tuesday 24 July 2012 04:46:43 Alex Balashov wrote: So, perhaps my issue comes down to the while() loop breaking before the queue is truly empty. That is, unless those thousands of records are somehow showing up between the while() condition evalua

Re: [SR-Users] Cant make from_uri, request_uri work for LCR module

2012-07-24 Thread Antanas Masevicius
Hello, Looks like i finally got it. REGEXP patterns in from_uri and request_uri must be terminated between //. Maybe someone could add a notice about this in LCR documentation? Only got it after reading some documentation on pcre lib. best regards, Antanas NTT On 2012.07.24 11:17, Antanas Masev

Re: [SR-Users] Kamailio with APNS

2012-07-24 Thread Neill Wilkinson
Are you doing this because your SIP client is sleeping on the device? If so did you set the properties for the application to change the background mode for VoIP apps, the UIBackgroundModes settings in the info.plist file for the app? http://developer.apple.com/library/ios/#documentation/general/

Re: [SR-Users] Cant make from_uri, request_uri work for LCR module

2012-07-24 Thread Antanas Masevicius
Hello once again, It looks like core issue was not a termination of regexp. Was not getting segfaults, but did not get a match either. After changing rule_id from 2617960 to 0, rule got loaded properly: sercmd> lcr.dump_rules { lcr_id: 90 rule_id: 0 prefix: 118 fro

Re: [SR-Users] Kamailio with APNS

2012-07-24 Thread Klaus Darilion
Hi! You have to use a failure route (http://kamailio.org/docs/modules/3.3.x/modules/tm.html#t_on_failure). In the failure route check if the reply code is 404 and if yes, trigger the APNS logic and then put the call e.g. on a stack and resume e.g. every second and ofrward to the "SIP server"

Re: [SR-Users] Kamailio with APNS

2012-07-24 Thread Andreas Granig
Hi, On 07/24/2012 03:53 PM, Klaus Darilion wrote: > In the failure route check if the reply code is 404 and if yes, trigger > the APNS logic and then put the call e.g. on a stack and resume e.g. > every second and ofrward to the "SIP server" again to see if the client > is registered meanwhile. >

Re: [SR-Users] Cant make from_uri, request_uri work for LCR module

2012-07-24 Thread Alexey Mechanoshin
My lcr module *not* work in 3.3.x version if use from_uri data table. Only in 3.2 ! Check thread: http://lists.sip-router.org/pipermail/sr-users/2012-June/073712.html 2012/7/24 Antanas Masevicius [skip] --- С Уважением, Механошин Алексей ___ SIP Expre

Re: [SR-Users] Kamailio with APNS

2012-07-24 Thread Klaus Darilion
On 24.07.2012 16:32, Andreas Granig wrote: Hi, On 07/24/2012 03:53 PM, Klaus Darilion wrote: In the failure route check if the reply code is 404 and if yes, trigger the APNS logic and then put the call e.g. on a stack and resume e.g. every second and ofrward to the "SIP server" again to see i

[SR-Users] lcr.dump_gws problem

2012-07-24 Thread Gary Chen
Kamailio 3.2.0 When testing Kamailio 3.2.0, I notice that lcr.dump_gws command does not display ip_addr correctly. Here is my output: lcr_id: 3 gw_id: 15 gw_index: 2 gw_name: gateway_1 scheme: sip ip_addr: 1273060816.0.0.0 hostname:

Re: [SR-Users] lcr.dump_gws problem

2012-07-24 Thread Gary Chen
Sorry, it should be Kamailio 3.3.0 not 3.2.0. From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Gary Chen Sent: Tuesday, July 24, 2012 3:39 PM To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List Subject: [SR-

Re: [SR-Users] lcr.dump_gws problem

2012-07-24 Thread Andrew Pogrebennyk
Hi Gary, Yes, that's an old/known issue. You can convert the IP to common format with a simple command: perl -MSocket -le 'print inet_ntoa(pack("N", 1273060816))' Maybe somebody from the kamailio team will take time to fix this. On 07/24/2012 09:39 PM, Gary Chen wrote: > Kamailio 3.2.0 > > > >

[SR-Users] Cleanup location table on failed NAT ping

2012-07-24 Thread David
Hello, I am using kamailio 3.2.3. I am using the nathelper module to "ping" users in the location table to keep the NAT bindings alive. In the event of 3 failed NAT pings, I would like to mark the entry as "unavailable" or completely delete it from the location table to avoid having stale d

[SR-Users] Error Loading db_postgres.so on Startup

2012-07-24 Thread Akan
I am getting this error when trying to run kamailio on Centos 5.5. I have Postgresql 9.1.4 installed and I have tried with both OpenSSL v0.9.8e and v1.0.1c and I still get the same error. Any help would be appreciated. ERROR: [sr_module.c:565]: ERROR: load_module: could not open module : /u

Re: [SR-Users] Error Loading db_postgres.so on Startup

2012-07-24 Thread Alex Balashov
Please post output of: ldd /usr/local/kamailio-3.2/lib64/kamailio/modules/db_postgres.so On 07/25/2012 01:28 AM, Akan wrote: I am getting this error when trying to run kamailio on Centos 5.5. I have Postgresql 9.1.4 installed and I have tried with both OpenSSL v0.9.8e and v1.0.1c and I still

Re: [SR-Users] Error Loading db_postgres.so on Startup

2012-07-24 Thread Akan
Here is the output: ldd /usr/local/kamailio-3.2/lib64/kamailio/modules/db_postgres.so libsrdb2.so.1 => /usr/local/kamailio-3.2/lib64/kamailio/libsrdb2.so.1 (0x2b1e331ea000) libsrdb1.so.1 => /usr/local/kamailio-3.2/lib64/kamailio/libsrdb1.so.1 (0x2b1e333f1000) li

Re: [SR-Users] Error Loading db_postgres.so on Startup

2012-07-24 Thread Alex Balashov
Did you build from source? On 07/25/2012 02:26 AM, Akan wrote: Here is the output: ldd /usr/local/kamailio-3.2/lib64/kamailio/modules/db_postgres.so libsrdb2.so.1 => /usr/local/kamailio-3.2/lib64/kamailio/libsrdb2.so.1 (0x2b1e331ea000) libsrdb1.so.1 => /usr/local/kamailio

Re: [SR-Users] Error Loading db_postgres.so on Startup

2012-07-24 Thread Akan
Kamailio was build from the git source, postgres and openssl was installed with yum On 7/25/2012 1:29 AM, Alex Balashov wrote: Did you build from source? On 07/25/2012 02:26 AM, Akan wrote: Here is the output: ldd /usr/local/kamailio-3.2/lib64/kamailio/modules/db_postgres.so libsr