Re: [OpenSIPS-Users] opensips crash with location data

2014-06-05 Thread Pasan Meemaduma
Hi Bogdan,

I just found that I have got the key constraint wrong. Will that be the issue ?

| location | CREATE TABLE `location` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `username` char(64) NOT NULL DEFAULT '',
  `domain` char(64) DEFAULT NULL,
  `contact` char(255) NOT NULL DEFAULT '',
  `received` char(128) DEFAULT NULL,
  `path` char(128) DEFAULT NULL,
  `expires` datetime NOT NULL DEFAULT '2020-05-28 21:32:15',
  `q` float(10,2) NOT NULL DEFAULT '1.00',
  `callid` char(255) NOT NULL DEFAULT 'Default-Call-ID',
  `cseq` int(11) NOT NULL DEFAULT '13',
  `last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
  `flags` int(11) NOT NULL DEFAULT '0',
  `cflags` int(11) NOT NULL DEFAULT '0',
  `user_agent` char(255) NOT NULL DEFAULT '',
  `socket` char(64) DEFAULT NULL,
  `methods` int(11) DEFAULT NULL,
  `sip_instance` char(255) DEFAULT NULL,
  `attr` char(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `account_contact_idx` (`username`,`domain`,`contact`)
) ENGINE=MyISAM AUTO_INCREMENT=25375081 DEFAULT CHARSET=latin1 |


account_contact_idx is missing callid column. Will this has any relation to 
crash ?



On Friday, 6 June 2014, 8:48, Pasan Meemaduma  wrote:
 


Hi Bogdan,

Thanks for the reply. I created the table using normal schema it looks fine to 
me. I was refering to the old url you gave me. There in that table attr was 
missing :)


this is the url missing attr in location table
http://www.opensips.org/Documentation/Install-DBSchema-1-10#AEN7254  


below is my table schema,

mysql> desc location;
+---+--+--+-+-++
| Field | Type | Null | Key | Default | Extra   
   |
+---+--+--+-+-++
| id    | int(10) unsigned | NO   | PRI | NULL    | 
auto_increment |
|
 username  | char(64) | NO   | MUL | |  
  |
| domain    | char(64) | YES  | | NULL    | 
   |
| contact   | char(255)    | NO   |
 | |    |
| received  | char(128)    | YES  | | NULL    | 
   |
| path  | char(128)    | YES  | | NULL    | 
   |
|
 expires   | datetime | NO   | | 2020-05-28 21:32:15 |  
  |
| q | float(10,2)  | NO   | | 1.00    | 
   |
| callid    | char(255)    | NO   | | Default-Call-ID | 
   |
|
 cseq  | int(11)  | NO   | | 13  |  
  |
| last_modified | datetime | NO   | | 1900-01-01 00:00:01 | 
   |
| flags | int(11)  | NO   | | 0  
 |    |
| cflags    | int(11)  | NO   | | 0   | 
   |
| user_agent    | char(255)    | NO   | | | 
   |
| socket    |
 char(64) | YES  | | NULL    |    |
| methods   | int(11)  | YES  | | NULL    | 
   |
| sip_instance  | char(255)    | YES  | | NULL   
 |    |
| attr  | char(255)    | YES  | | NULL    | 
   |
+---+--+--+-+-++


attr holds NULL values for all entries.

do I have to run below in gdb after running bt full right ?

this is what i got

(gdb) f 1
#1  0x7f64823a60a2 in dbrow2info
 (contact=0x7fffe0246180, vals=0x7f648287a260) at udomain.c:306
306    in udomain.c
(gdb) p (vals+6)->val.string_val
$2 = 0x0
(gdb) 


-without running bt full - just in case :)
(gdb) f 1
#1  0x7f64823a60a2 in dbrow2info (contact=0x7fffe0246180, 
vals=0x7f648287a260) at udomain.c:306
306    udomain.c: No such file or directory.
(gdb) p (vals+6)->val.string_val
$1 = 0x0




On Thursday, 5 June 2014, 17:07, Bogdan-Andrei Iancu  
wrote:
 


Thanks for the backtrace. In DB, what do you have for the "attr" value ? NULL 
or an empty string ?

In gdb, could you do:
    f 1
    p (vals+6)->val.string_val

Thanks,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer http://www.opensips-solutions.com
On 05.06.2014 06:15, Pasan Meemaduma wrote:

oops sorry I forgot opensips-dbg :) bt reattached.
>
>
>I have change some sensitive values with 'x' as below, hope it wont affect u r 
>investigations
>
>
>    contact = {s = 0xf91eab "sip:xxx...@xxx.xxx.xxx.xx", len = 29}
>
>
>
>
>On Thursday, 5 June 2014, 8:34, Pasan Meemaduma  wrote:
> 
>
>
>Hi Bogdan,
>
>
>I double checked the schema and it is correct. btw doc needs fixing its 
>missing attr column which is needed by 1.10 for location table otherwise I'll 
>get below error.
>
>
>Jun  5 12:57:26  x/usr

Re: [OpenSIPS-Users] opensips crash with location data

2014-06-05 Thread Pasan Meemaduma
Hi Bogdan,

Thanks for the reply. I created the table using normal schema it looks fine to 
me. I was refering to the old url you gave me. There in that table attr was 
missing :)


this is the url missing attr in location table
http://www.opensips.org/Documentation/Install-DBSchema-1-10#AEN7254  


below is my table schema,

mysql> desc location;
+---+--+--+-+-++
| Field | Type | Null | Key | Default | Extra   
   |
+---+--+--+-+-++
| id    | int(10) unsigned | NO   | PRI | NULL    | 
auto_increment |
| username  | char(64) | NO   | MUL | | 
   |
| domain    | char(64) | YES  | | NULL    | 
   |
| contact   | char(255)    | NO   | | | 
   |
| received  | char(128)    | YES  | | NULL    | 
   |
| path  | char(128)    | YES  | | NULL    | 
   |
| expires   | datetime | NO   | | 2020-05-28 21:32:15 | 
   |
| q | float(10,2)  | NO   | | 1.00    | 
   |
| callid    | char(255)    | NO   | | Default-Call-ID | 
   |
| cseq  | int(11)  | NO   | | 13  | 
   |
| last_modified | datetime | NO   | | 1900-01-01 00:00:01 | 
   |
| flags | int(11)  | NO   | | 0   | 
   |
| cflags    | int(11)  | NO   | | 0   | 
   |
| user_agent    | char(255)    | NO   | | | 
   |
| socket    | char(64) | YES  | | NULL    | 
   |
| methods   | int(11)  | YES  | | NULL    | 
   |
| sip_instance  | char(255)    | YES  | | NULL    | 
   |
| attr  | char(255)    | YES  | | NULL    | 
   |
+---+--+--+-+-++


attr holds NULL values for all entries.

do I have to run below in gdb after running bt full right ?

this is what i got

(gdb) f 1
#1  0x7f64823a60a2 in dbrow2info (contact=0x7fffe0246180, 
vals=0x7f648287a260) at udomain.c:306
306    in udomain.c
(gdb) p (vals+6)->val.string_val
$2 = 0x0
(gdb) 


-without running bt full - just in case :)
(gdb) f 1
#1  0x7f64823a60a2 in dbrow2info (contact=0x7fffe0246180, 
vals=0x7f648287a260) at udomain.c:306
306    udomain.c: No such file or directory.
(gdb) p (vals+6)->val.string_val
$1 = 0x0




On Thursday, 5 June 2014, 17:07, Bogdan-Andrei Iancu  
wrote:
 


Thanks for the backtrace. In DB, what do you have for the "attr" value ? NULL 
or an empty string ?

In gdb, could you do:
    f 1
    p (vals+6)->val.string_val

Thanks,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer http://www.opensips-solutions.com
On 05.06.2014 06:15, Pasan Meemaduma wrote:

oops sorry I forgot opensips-dbg :) bt reattached.
>
>
>I have change some sensitive values with 'x' as below, hope it wont affect u r 
>investigations
>
>
>    contact = {s = 0xf91eab "sip:xxx...@xxx.xxx.xxx.xx", len = 29}
>
>
>
>
>On Thursday, 5 June 2014, 8:34, Pasan Meemaduma  wrote:
> 
>
>
>Hi Bogdan,
>
>
>I double checked the schema and it is correct. btw doc needs fixing its 
>missing attr column which is needed by 1.10 for location table otherwise I'll 
>get below error.
>
>
>Jun  5 12:57:26  x/usr/sbin/opensips[30176]: 
>CRITICAL:db_mysql:wrapper_single_mysql_real_query: driver error (1054): 
>Unknown column 'attr' in 'field list'
>Jun  5 12:57:26 x /usr/sbin/opensips[30177]:
DBG:core:db_do_init: connection 0x7f4dc04c1c28
inserted in pool as 0x7f4dc04c1d30
>Jun  5 12:57:26 x /usr/sbin/opensips[30176]:
ERROR:core:db_do_query: error while submitting
query - [select

username,contact,expires,q,callid,cseq,flags,cflags,user_agent,received,path,socket,methods,last_modified,sip_instance,attr
from location ]
>Jun  5 12:57:26 anacardium3backup
/usr/sbin/opensips[30176]:
ERROR:usrloc:preload_udomain: db_query (1)
failed
>
>
>:)
>
>
>
>I got the backtrace as you requested , It doesn't seems right to me.  does it 
>make any sense ? or did I miss something getting it ?
>
>
>
>___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] OpenSIPS_VM

2014-06-05 Thread Mustafa Tambunan
Dear All,

I try to download "OpenSIPS_VM_1.7.tar.gz
"
and install on my VM. I create ext 1000 & 1001. I try call from 1000 to
1001 but not success, the error are "invalid extensions"

The 2st questions is : how can i try call to pstn? Anyone know step by step
config opensips control panel?


-- 

Thanks

Best Regards

*Mustafa Tambunan*



Mobile Phone: +6281287264002

Email: must...@intelix.co.id

Skype: *mustafa.tambunan*

MSN messenger: mustafa.tambu...@hotmail.com

Yahoo Messenger: moses.spac...@yahoo.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] RabbitMQ Timer Route Not Working

2014-06-05 Thread Kneeoh
That's correct, I move the ip via corosync by disabling the active node. 
Corosync does the moving automatically. The subscriber list never changes, and 
its odd that expire=never when I have it set to 5 in the opensips subscribe 
command.

root@opensips:/var/log# opensipsctl fifo subscribers_list
Event:: E_ACC_EVENT id=6
        Subscriber::  socket=rabbitmq:rabbitmq@192.168.2.30/cdr1 expire=never
Event:: E_ACC_CDR id=7
        Subscriber::  socket=rabbitmq:rabbitmq@192.168.2.30/cdr1 expire=never
Event:: E_ACC_MISSED_EVENT id=8
        Subscriber::  socket=rabbitmq:rabbitmq@192.168.2.30/cdr1 expire=never
Event:: E_CHANNEL_LIMIT id=9
        Subscriber::  socket=rabbitmq:rabbitmq@192.168.2.30/limits expire=never
Event:: E_CPS_LIMIT id=10
        Subscriber::  socket=rabbitmq:rabbitmq@192.168.2.30/limits expire=never


I think it may have to do with the fact that the subscription to rabbit comes 
from the local IP of the haproxy not the VIP. Opensips talks to the VIP, the 
local IP on the proxy is what shows up on RabbitMQ as the channel. I would 
think this would resolve via the resubscription I'm doing in the timer route, 
but it's not.

               opensips
  |
  |
192.168.2.30 (haproxy VIP)
  /   \
     /     \
192.168.2.31 (haproxy01)    192.168.2.32 (haproxy02)
    \        /
     \      /    
 RabbitMQ01
 RabbitMQ02
 RabbitMQ03


On Thursday, June 5, 2014 11:33 AM, Bogdan-Andrei Iancu  
wrote:
So it seems the subscribing works fine. You can check that via the 
"subscribers_list" MI command (see 
http://www.opensips.org/Documentation/Interface-CoreMI-1-11#toc18).

The problem is when the actual event is generated - it looks like it 
cannot be delivered via the rabbitmq driver. What you do is you move the 
IP of the HAproxy on a different machine ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com




On 05.06.2014 17:31, Kneeoh wrote:
> Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: 
> DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
> Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: Subscribing to 
> MISSED Event
> Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: 
> DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
> Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: Subscribing to 
> CHANNEL Event
> Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: 
> DBG:event_rabbitmq:rmq_match: socket matched: 
> rabbitmq@192.168.2.30:5672/limits
> Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: Subscribing to CPS 
> Event
> Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: 
> DBG:event_rabbitmq:rmq_match: socket matched: 
> rabbitmq@192.168.2.30:5672/limits
> Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19020]: Enforcing Limits
> Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19020]: Account Channel 
> Limit OK. Channels Up: 0 Channel Limit: 1
> Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19020]: Call Rejected due 
> to Account CPS Limit. CPS Limit: 0
> Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to CDR 
> Event
> Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
> DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
> Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to ACC 
> Event
> Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
> DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
> Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to 
> MISSED Event
> Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
> DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
> Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to 
> CHANNEL Event
> Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
> DBG:event_rabbitmq:rmq_match: socket matched: 
> rabbitmq@192.168.2.30:5672/limits
> Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to CPS 
> Event
> Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
> DBG:event_rabbitmq:rmq_match: socket matched: 
> rabbitmq@192.168.2.30:5672/limits
> Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19021]: ACK - Attempting to 
> match dialog
> Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: Subscribing to CDR 
> Event
> Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: 
> DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
> Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: Subscribing to ACC 
> Event
> Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: 
> DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
> Jun  5 14:19:33 opensips /usr/local/sbin/open

Re: [OpenSIPS-Users] OpenSIPScrashing after specific interval of time

2014-06-05 Thread Bogdan-Andrei Iancu
btw, do you see message from kernel like "opensips[xxx]: segfault at 
X ip ." ?


Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 15:03, Bogdan-Andrei Iancu wrote:
Those are just memory reports (on usage) and it is done at shutdown - 
nothing unusual.


Are you sure your opensips is not getting terminated (stopped) by 
mistake by other scripts on your server ? I see no indication of a 
crash so far.


Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 05.06.2014 14:59, Juned Khan wrote:

Hi Bogdan

No I don't see any other signal than 15.
I was little bit curious about this logs

Jun 5 06:39:57 proxy02 opensips[24206]: used= 374656, 
used+overhead=453616, free=1722496

Jun 5 06:39:57 proxy02 opensips[24206]:  max used (+overhead)= 453616
Jun 5 06:39:57 proxy02 opensips[24206]: dumping free list:
Jun 5 06:39:57 proxy02 opensips[24200]:  max used (+overhead)= 453616
Jun 5 06:39:57 proxy02 opensips[24180]: used= 334936, 
used+overhead=417856, free=1762216

Jun 5 06:39:57 proxy02 opensips[24200]: dumping free list:
Jun 5 06:39:57 proxy02 opensips[24180]:  max used (+overhead)= 421648
Jun 5 06:39:57 proxy02 opensips[24199]: TOTAL: 4 free fragments = 
1781264 free bytes

Jun 5 06:39:57 proxy02 opensips[24179]:  max used (+overhead)= 405112
Jun 5 06:39:57 proxy02 opensips[24197]:  max used (+overhead)= 395824
This is the only log when OpenSIPS crashes, which quite different then normal 
logs.
And it looks like memory problem to me but I am not sure, you better know about 
this.


On Thu, Jun 5, 2014 at 5:12 PM, Bogdan-Andrei Iancu 
mailto:bog...@opensips.org>> wrote:


Hi Juned,

Your log (as per IRC discussion ) shows only signal 15 (which is
SIG TERM) when doing normal shutdown - do you have any other
"signal" reported in the logs ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 09:39, Juned Khan wrote:

Hi All.

Since last few months I am facing very strange issue of
OpenSIPS, its crashing after specific interval of time.

I have enabled core dump parameters but dump is not generating.
it seems some memory related problem. I hope someone expert can
give me idea through this. how to solve this issue.

I am using

OpenSIPS 1.7.1
Debian squeeze 6.0.9
RAM : 16GB


Here is the opensips log

http://pastebin.com/5YnvF6ub

-- 
Thanks,

Juned Khan



___
Users mailing list
Users@lists.opensips.org  
http://lists.opensips.org/cgi-bin/mailman/listinfo/users





--
Thanks,
Juned Khan




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] RabbitMQ Timer Route Not Working

2014-06-05 Thread Bogdan-Andrei Iancu
So it seems the subscribing works fine. You can check that via the 
"subscribers_list" MI command (see 
http://www.opensips.org/Documentation/Interface-CoreMI-1-11#toc18).


The problem is when the actual event is generated - it looks like it 
cannot be delivered via the rabbitmq driver. What you do is you move the 
IP of the HAproxy on a different machine ?


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 17:31, Kneeoh wrote:

Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: Subscribing to MISSED 
Event
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: Subscribing to 
CHANNEL Event
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/limits
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: Subscribing to CPS 
Event
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/limits
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19020]: Enforcing Limits
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19020]: Account Channel Limit 
OK. Channels Up: 0 Channel Limit: 1
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19020]: Call Rejected due to 
Account CPS Limit. CPS Limit: 0
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to CDR 
Event
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to ACC 
Event
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to MISSED 
Event
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to 
CHANNEL Event
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/limits
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to CPS 
Event
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/limits
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19021]: ACK - Attempting to 
match dialog
Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: Subscribing to CDR 
Event
Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: Subscribing to ACC 
Event
Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: Subscribing to MISSED 
Event
Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: Subscribing to 
CHANNEL Event



The above works and sends an event to RabbitMQ via 192.168.2.30 (the virtual IP 
of haproxy)



FAIL OVER HAPROXY - IP moves to backup HAProxy identical to the first Opensips 
is none the wiser.

NEW CALL



Jun  5 14:20:17 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/limits
Jun  5 14:20:20 opensips /usr/local/sbin/opensips[19020]: Enforcing Limits
Jun  5 14:20:20 opensips /usr/local/sbin/opensips[19020]: Account Channel Limit 
OK. Channels Up: 0 Channel Limit: 1
Jun  5 14:20:20 opensips /usr/local/sbin/opensips[19020]: Call Rejected due to 
Account CPS Limit. CPS Limit: 0
Jun  5 14:20:20 opensips /usr/local/sbin/opensips[19012]: 
ERROR:event_rabbitmq:rmq_process: cannot send message
Jun  5 14:20:20 opensips /usr/local/sbin/opensips[19012]: 
ERROR:event_rabbitmq:rmq_process: cannot send message
Jun  5 14:20:20 opensips /usr/local/sbin/opensips[19012]: 
ERROR:event_rabbitmq:rmq_process: cannot send message
Jun  5 14:20:20 opensips /usr/local/sbin/opensips[19021]: ACK - Attempting to 
match dialog
Jun  5 14:20:21 opensips /usr/local/sbin/opensips[19027]: Subscribing to CDR 
Event
Jun  5 14:20:21 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:20:21 opensips /usr/local/sbin/opensips[19027]: Subscribing to ACC 
Event
Jun  5 14:20:21 opensips /usr/local/s

Re: [OpenSIPS-Users] RabbitMQ Timer Route Not Working

2014-06-05 Thread Kneeoh
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: Subscribing to MISSED 
Event
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: Subscribing to 
CHANNEL Event
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/limits
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: Subscribing to CPS 
Event
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/limits
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19020]: Enforcing Limits
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19020]: Account Channel Limit 
OK. Channels Up: 0 Channel Limit: 1
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19020]: Call Rejected due to 
Account CPS Limit. CPS Limit: 0
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to CDR 
Event
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to ACC 
Event
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to MISSED 
Event
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to 
CHANNEL Event
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/limits
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to CPS 
Event
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/limits
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19021]: ACK - Attempting to 
match dialog
Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: Subscribing to CDR 
Event
Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: Subscribing to ACC 
Event
Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: Subscribing to MISSED 
Event
Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:33 opensips /usr/local/sbin/opensips[19027]: Subscribing to 
CHANNEL Event



The above works and sends an event to RabbitMQ via 192.168.2.30 (the virtual IP 
of haproxy)



FAIL OVER HAPROXY - IP moves to backup HAProxy identical to the first Opensips 
is none the wiser.

NEW CALL



Jun  5 14:20:17 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/limits 
Jun  5 14:20:20 opensips /usr/local/sbin/opensips[19020]: Enforcing Limits  
Jun  5 14:20:20 opensips /usr/local/sbin/opensips[19020]: Account Channel Limit 
OK. Channels Up: 0 Channel Limit: 1  
Jun  5 14:20:20 opensips /usr/local/sbin/opensips[19020]: Call Rejected due to 
Account CPS Limit. CPS Limit: 0  
Jun  5 14:20:20 opensips /usr/local/sbin/opensips[19012]: 
ERROR:event_rabbitmq:rmq_process: cannot send message 
Jun  5 14:20:20 opensips /usr/local/sbin/opensips[19012]: 
ERROR:event_rabbitmq:rmq_process: cannot send message 
Jun  5 14:20:20 opensips /usr/local/sbin/opensips[19012]: 
ERROR:event_rabbitmq:rmq_process: cannot send message 
Jun  5 14:20:20 opensips /usr/local/sbin/opensips[19021]: ACK - Attempting to 
match dialog 
Jun  5 14:20:21 opensips /usr/local/sbin/opensips[19027]: Subscribing to CDR 
Event  
Jun  5 14:20:21 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1 
Jun  5 14:20:21 opensips /usr/local/sbin/opensips[19027]: Subscribing to ACC 
Event  
Jun  5 14:20:21 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1 
Jun  5 14:20:21 opensips /usr/local/sbin/opensips[19027]: Subscribing to MISSED 
Event  
Jun  5 14:20:21 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1 
Jun  5 14:20:21 opensips /usr/local/sbin/opensips[19027]: Subscribing to 
CHANNEL Event  
Jun  5 14:20:21 opensips /usr/local/sbin/opensips[19027]: 
DB

Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

2014-06-05 Thread Bogdan-Andrei Iancu

Hi,

-1 ret code means some internal error - check the opensips logs for any 
error.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 03.06.2014 07:01, dpa wrote:


Hello Bogdan

Sorry for long answer.

I changed opensips.cfg just a little



radius_send_auth("set1","set2");

 switch($rc){

 case -2:

 xlog ("Case -2 in radius route detected");

 break;

 case -1:

 xlog ("Case -1 in radius route detected");

 break;

   }



In log file I see

"Jun  3 07:19:13 opensips-mirror 
/usr/local/opensipsdev/sbin/opensips[14956]: Case -1 in radius route 
detected"


Meanwhile tcpdump shows that radius server answers "Rejected" on the 
request.


*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* Thursday, May 29, 2014 11:26 AM
*To:* OpenSIPS users mailling list; Denis Putyato
*Subject:* Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

Hi,

On each "case", please an "xlog" to print something from the script - 
in this way you can double check which way your script went. Or, you 
can use the script_trace() function to do that . See:

http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc42

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 29.05.2014 09:22, dpa wrote:

Hello!

I have such configuration in opensips.cfg



radius_send_auth("set1","set2");

 switch($rc){

 case -2:

 exec_msg("echo '$avp(500) $rU $time(%c) rejected' >>
/opensips/alarmradius.txt");

 break;

 case -1:

 exec_msg("echo '$avp(500) $rU $time(%c) radius' >>
/opensips/alarmradius.txt");

 break;

   }

...

In attachment you can see communication of Opensips with radius
server during making some test call (1.1.1.1 -- Opensips, 2.2.2.2
-- radius server)

After making a test call i see in alarmradius.txt record with
"radius" word.

The question is why do I see "radius" word (and it means that
Opensips detected "retcode -1") but not "rejected" ("retcode -2")
word?

Thank you for any help.




___

Users mailing list

Users@lists.opensips.org  

http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] SipCapture Module

2014-06-05 Thread Bogdan-Andrei Iancu
upgrading to 1.8 may change things in your cfg . See the doc on 
migration from 1.7 to 1.8 :

http://www.opensips.org/Documentation/Migration-1-7-0-to-1-8-0
and evaluate the impact on your setup.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 16:54, Mike Claudi Pedersen wrote:
will updating to a newer version have any effect on my current config? 
(using it for exam project which is due in 1 week)... so should i wait 
until after i'm done documenting. The sipcapture module is more of a 
"nice to have" than a "need to have"



2014-06-05 15:44 GMT+02:00 Bogdan-Andrei Iancu >:


sipcapture module was introduced starting with 1.8.0 so , you need
to use some of the above versions.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 16:12, Mike Claudi Pedersen wrote:

i used yum install, and the version is 1.7.2-tls


2014-06-05 15:03 GMT+02:00 Bogdan-Andrei Iancu
mailto:bog...@opensips.org>>:

Hi Mike,

What opensips version you have and how did you install it
(from srcs, debs, etc) ?


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 15:36, Mike Claudi Pedersen wrote:

Hi bogdan, i just found out that i dont have the sipcapture
modulein the /usr/lib64/opensips/modules/ directory, i had
wrongly mistaken the siptrace as sipcapture, how can i load
this module into my existing opensips modules dir ?


2014-05-29 9:18 GMT+02:00 Bogdan-Andrei Iancu
mailto:bog...@opensips.org>>:

I run out of ideas.definitelythere is something
wrong with your installation.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 28.05.2014 11:51, Mike Claudi Pedersen wrote:

yes that i did when you first stated where to look for
it :)



2014-05-28 10:51 GMT+02:00 Bogdan-Andrei Iancu
mailto:bog...@opensips.org>>:

And, have you checked if the sipcapture.so file
exists in the /usr/lib64/opensips/modules/
directory ??


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 28.05.2014 09:26, Mike Claudi Pedersen wrote:

loadmodule "sipcapture.so"



2014-05-28 8:02 GMT+02:00 Bogdan-Andrei Iancu
mailto:bog...@opensips.org>>:

Could you post the load line you have for the
sipcapture module ?

Thanks,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 27.05.2014 16 :45,
Mike Claudi Pedersen wrote:

but still gets the same error



2014-05-27 15:44 GMT+02:00 Mike Claudi
Pedersen mailto:mike.peder...@ipnordic.dk>>:

nevermind, it is installed in that lib...
just checked



2014-05-27 15:43 GMT+02:00 Mike Claudi
Pedersen mailto:mike.peder...@ipnordic.dk>>:

yes that part.. how do i do that post
installation :)



2014-05-27 15:42 GMT+02:00
Bogdan-Andrei Iancu
mailto:bog...@opensips.org>>:

Be sure you "sipcapture" module
is compiled and installed in the
'/usr/lib64/opensips/modules/'directory
. By default this module is
compiled and install if not
excluded on purpose.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 27.05.2014 16
:37, Mike
Claudi Pedersen wrote:

then i get this?

ERROR:core:yyparse: module
'sipcapture.so' not found in
'/usr/lib64/opensips/modules/'
May 27 13:36:58 [53015]
CRITICAL:core:yyerror: parse
error in c

Re: [OpenSIPS-Users] SipCapture Module

2014-06-05 Thread Bogdan-Andrei Iancu
sipcapture module was introduced starting with 1.8.0 so , you need to 
use some of the above versions.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 16:12, Mike Claudi Pedersen wrote:

i used yum install, and the version is 1.7.2-tls


2014-06-05 15:03 GMT+02:00 Bogdan-Andrei Iancu >:


Hi Mike,

What opensips version you have and how did you install it (from
srcs, debs, etc) ?


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 15:36, Mike Claudi Pedersen wrote:

Hi bogdan, i just found out that i dont have the sipcapture
modulein the /usr/lib64/opensips/modules/ directory, i had
wrongly mistaken the siptrace as sipcapture, how can i load this
module into my existing opensips modules dir ?


2014-05-29 9:18 GMT+02:00 Bogdan-Andrei Iancu
mailto:bog...@opensips.org>>:

I run out of ideas.definitelythere is something wrong
with your installation.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 28.05.2014 11:51, Mike Claudi Pedersen wrote:

yes that i did when you first stated where to look for it :)



2014-05-28 10:51 GMT+02:00 Bogdan-Andrei Iancu
mailto:bog...@opensips.org>>:

And, have you checked if the sipcapture.so file exists
in the /usr/lib64/opensips/modules/ directory ??


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 28.05.2014 09:26, Mike Claudi Pedersen wrote:

loadmodule "sipcapture.so"



2014-05-28 8:02 GMT+02:00 Bogdan-Andrei Iancu
mailto:bog...@opensips.org>>:

Could you post the load line you have for the
sipcapture module ?

Thanks,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 27.05.2014 16 :45, Mike
Claudi Pedersen wrote:

but still gets the same error



2014-05-27 15:44 GMT+02:00 Mike Claudi Pedersen
mailto:mike.peder...@ipnordic.dk>>:

nevermind, it is installed in that lib... just
checked



2014-05-27 15:43 GMT+02:00 Mike Claudi
Pedersen mailto:mike.peder...@ipnordic.dk>>:

yes that part.. how do i do that post
installation :)



2014-05-27 15:42 GMT+02:00 Bogdan-Andrei
Iancu mailto:bog...@opensips.org>>:

Be sure you "sipcapture" module is
compiled and installed in the
'/usr/lib64/opensips/modules/'directory .
By default this module is compiled and
install if not excluded on purpose.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 27.05.2014 16
:37, Mike Claudi
Pedersen wrote:

then i get this?

ERROR:core:yyparse: module
'sipcapture.so' not found in
'/usr/lib64/opensips/modules/'
May 27 13:36:58 [53015]
CRITICAL:core:yyerror: parse error in
config file, line 73, column 13-14:
failed to load module
May 27 13:36:58 [53015]
ERROR:core:sr_load_module: could not
open module
:
/usr/lib64/opensips/modules/: cannot
read file data: Is a directory
May 27 13:36:58 [53015]
CRITICAL:core:yyerror: parse error in
config file, line 73, column 13-14:
failed to load module
May 27 13:36:58 [53015]
ERROR:core:main: bad config file (2
errors)







--
Med venlig hilsen
ipnordic A/S

Mike Claudi Pedersen
Tekniker

Telefon: 79301033
www.ipnordic.dk 


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] SipCapture Module

2014-06-05 Thread Bogdan-Andrei Iancu

Hi Mike,

What opensips version you have and how did you install it (from srcs, 
debs, etc) ?


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 15:36, Mike Claudi Pedersen wrote:
Hi bogdan, i just found out that i dont have the sipcapture modulein 
the /usr/lib64/opensips/modules/ directory, i had wrongly mistaken the 
siptrace as sipcapture, how can i load this module into my existing 
opensips modules dir ?



2014-05-29 9:18 GMT+02:00 Bogdan-Andrei Iancu >:


I run out of ideas.definitelythere is something wrong with
your installation.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 28.05.2014 11:51, Mike Claudi Pedersen wrote:

yes that i did when you first stated where to look for it :)



2014-05-28 10:51 GMT+02:00 Bogdan-Andrei Iancu
mailto:bog...@opensips.org>>:

And, have you checked if the sipcapture.so file exists in the
/usr/lib64/opensips/modules/ directory ??


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 28.05.2014 09:26, Mike Claudi Pedersen wrote:

loadmodule "sipcapture.so"



2014-05-28 8:02 GMT+02:00 Bogdan-Andrei Iancu
mailto:bog...@opensips.org>>:

Could you post the load line you have for the sipcapture
module ?

Thanks,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 27.05.2014 16 :45, Mike Claudi
Pedersen wrote:

but still gets the same error



2014-05-27 15:44 GMT+02:00 Mike Claudi Pedersen
mailto:mike.peder...@ipnordic.dk>>:

nevermind, it is installed in that lib... just checked



2014-05-27 15:43 GMT+02:00 Mike Claudi Pedersen
mailto:mike.peder...@ipnordic.dk>>:

yes that part.. how do i do that post
installation :)



2014-05-27 15:42 GMT+02:00 Bogdan-Andrei Iancu
mailto:bog...@opensips.org>>:

Be sure you "sipcapture" module is compiled
and installed in the
'/usr/lib64/opensips/modules/'directory .
By default this module is compiled and
install if not excluded on purpose.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 27.05.2014 16 :37,
Mike Claudi Pedersen wrote:

then i get this?

ERROR:core:yyparse: module 'sipcapture.so'
not found in '/usr/lib64/opensips/modules/'
May 27 13:36:58 [53015]
CRITICAL:core:yyerror: parse error in
config file, line 73, column 13-14: failed
to load module
May 27 13:36:58 [53015]
ERROR:core:sr_load_module: could not open
module :
/usr/lib64/opensips/modules/: cannot read
file data: Is a directory
May 27 13:36:58 [53015]
CRITICAL:core:yyerror: parse error in
config file, line 73, column 13-14: failed
to load module
May 27 13:36:58 [53015] ERROR:core:main:
bad config file (2 errors)




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPScrashing after specific interval of time

2014-06-05 Thread Bogdan-Andrei Iancu
Those are just memory reports (on usage) and it is done at shutdown - 
nothing unusual.


Are you sure your opensips is not getting terminated (stopped) by 
mistake by other scripts on your server ? I see no indication of a crash 
so far.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 14:59, Juned Khan wrote:

Hi Bogdan

No I don't see any other signal than 15.
I was little bit curious about this logs

Jun 5 06:39:57 proxy02 opensips[24206]: used= 374656, 
used+overhead=453616, free=1722496

Jun 5 06:39:57 proxy02 opensips[24206]:  max used (+overhead)= 453616
Jun 5 06:39:57 proxy02 opensips[24206]: dumping free list:
Jun 5 06:39:57 proxy02 opensips[24200]:  max used (+overhead)= 453616
Jun 5 06:39:57 proxy02 opensips[24180]: used= 334936, 
used+overhead=417856, free=1762216

Jun 5 06:39:57 proxy02 opensips[24200]: dumping free list:
Jun 5 06:39:57 proxy02 opensips[24180]:  max used (+overhead)= 421648
Jun 5 06:39:57 proxy02 opensips[24199]: TOTAL: 4 free fragments = 
1781264 free bytes

Jun 5 06:39:57 proxy02 opensips[24179]:  max used (+overhead)= 405112
Jun 5 06:39:57 proxy02 opensips[24197]:  max used (+overhead)= 395824
This is the only log when OpenSIPS crashes, which quite different then normal 
logs.
And it looks like memory problem to me but I am not sure, you better know about 
this.


On Thu, Jun 5, 2014 at 5:12 PM, Bogdan-Andrei Iancu 
mailto:bog...@opensips.org>> wrote:


Hi Juned,

Your log (as per IRC discussion ) shows only signal 15 (which is
SIG TERM) when doing normal shutdown - do you have any other
"signal" reported in the logs ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 09:39, Juned Khan wrote:

Hi All.

Since last few months I am facing very strange issue of OpenSIPS,
its crashing after specific interval of time.

I have enabled core dump parameters but dump is not generating.
it seems some memory related problem. I hope someone expert can
give me idea through this. how to solve this issue.

I am using

OpenSIPS 1.7.1
Debian squeeze 6.0.9
RAM : 16GB


Here is the opensips log

http://pastebin.com/5YnvF6ub

-- 
Thanks,

Juned Khan



___
Users mailing list
Users@lists.opensips.org  
http://lists.opensips.org/cgi-bin/mailman/listinfo/users





--
Thanks,
Juned Khan


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPScrashing after specific interval of time

2014-06-05 Thread Juned Khan
Hi Bogdan

No I don't see any other signal than 15.

I was little bit curious about this logs

Jun  5 06:39:57 proxy02 opensips[24206]:  used= 374656, used+overhead=453616,
free=1722496
Jun  5 06:39:57 proxy02 opensips[24206]:  max used (+overhead)= 453616
Jun  5 06:39:57 proxy02 opensips[24206]: dumping free list:
Jun  5 06:39:57 proxy02 opensips[24200]:  max used (+overhead)= 453616
Jun  5 06:39:57 proxy02 opensips[24180]:  used= 334936, used+overhead=417856,
free=1762216
Jun  5 06:39:57 proxy02 opensips[24200]: dumping free list:
Jun  5 06:39:57 proxy02 opensips[24180]:  max used (+overhead)= 421648
Jun  5 06:39:57 proxy02 opensips[24199]: TOTAL:  4 free fragments =
1781264 free bytes
Jun  5 06:39:57 proxy02 opensips[24179]:  max used (+overhead)= 405112
Jun  5 06:39:57 proxy02 opensips[24197]:  max used (+overhead)= 395824

This is the only log when OpenSIPS crashes, which quite different then
normal logs.
And it looks like memory problem to me but I am not sure, you better
know about this.




On Thu, Jun 5, 2014 at 5:12 PM, Bogdan-Andrei Iancu 
wrote:

>  Hi Juned,
>
> Your log (as per IRC discussion ) shows only signal 15 (which is SIG TERM)
> when doing normal shutdown - do you have any other "signal" reported in the
> logs ?
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
> On 05.06.2014 09:39, Juned Khan wrote:
>
>Hi All.
>
>  Since last few months I am facing very strange issue of OpenSIPS, its
> crashing after specific interval of time.
>
>  I have enabled core dump parameters but dump is not generating. it seems
> some memory related problem. I hope someone expert can give me idea through
> this. how to solve this issue.
>
>  I am using
>
> OpenSIPS 1.7.1
>  Debian squeeze 6.0.9
>  RAM : 16GB
>
>
>  Here is the opensips log
>
> http://pastebin.com/5YnvF6ub
>
> --
> Thanks,
> Juned Khan
>
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>


-- 
Thanks,
Juned Khan

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] opensips crash with location data

2014-06-05 Thread Bogdan-Andrei Iancu

Hi Pasan,

The schema is correct (see 
https://github.com/OpenSIPS/opensips/blob/1.10/scripts/mysql/usrloc-create.sql) 
- it contain the "attr" field. How did you created the location table 
for 1.10 ??


about the crash - looking into the bt in the next email.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 06:03, Pasan Meemaduma wrote:

Hi Bogdan,

I double checked the schema and it is correct. btw doc needs fixing 
its missing attr column which is needed by 1.10 for location table 
otherwise I'll get below error.


Jun  5 12:57:26  x/usr/sbin/opensips[30176]: 
CRITICAL:db_mysql:wrapper_single_mysql_real_query: driver error 
(1054): Unknown column 'attr' in 'field list'
Jun  5 12:57:26 x /usr/sbin/opensips[30177]: DBG:core:db_do_init: 
connection 0x7f4dc04c1c28 inserted in pool as 0x7f4dc04c1d30
Jun  5 12:57:26 x /usr/sbin/opensips[30176]: ERROR:core:db_do_query: 
error while submitting query - [select 
username,contact,expires,q,callid,cseq,flags,cflags,user_agent,received,path,socket,methods,last_modified,sip_instance,attr 
from location ]
Jun  5 12:57:26 anacardium3backup /usr/sbin/opensips[30176]: 
ERROR:usrloc:preload_udomain: db_query (1) failed


:)

I got the backtrace as you requested , It doesn't seems right to me.  
does it make any sense ? or did I miss something getting it ?



gdb opensips core.opensips.sig11.29154
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 


This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /usr/sbin/opensips...(no debugging symbols 
found)...done.

[New LWP 29154]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

warning: no loadable sections found in added symbol-file 
system-supplied DSO at 0x779fe000
Core was generated by `/usr/sbin/opensips -P 
/var/run/opensips/opensips.pid -m 512 -M 16 -u opensips -'.

Program terminated with signal 11, Segmentation fault.
#0  0x7f3a71ab4f21 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt full
#0  0x7f3a71ab4f21 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x7f3a703b50a2 in preload_udomain () from 
/usr/lib/opensips/modules/usrloc.so

No symbol table info available.
#2  0x7f3a703b8fb6 in ?? () from /usr/lib/opensips/modules/usrloc.so
No symbol table info available.
#3  0x0047c617 in ?? ()
No symbol table info available.
#4  0x0047c4e7 in ?? ()
No symbol table info available.
#5  0x0047c4e7 in ?? ()
No symbol table info available.
#6  0x0047c4e7 in ?? ()
No symbol table info available.
#7  0x0047c4e7 in ?? ()
No symbol table info available.
#8  0x0047c4e7 in ?? ()
No symbol table info available.
#9  0x0047c4e7 in ?? ()
No symbol table info available.
#10 0x0047c4e7 in ?? ()
No symbol table info available.
#11 0x0047c4e7 in ?? ()
No symbol table info available.
#12 0x0047c4e7 in ?? ()
No symbol table info available.
#13 0x0047c4e7 in ?? ()
No symbol table info available.
#14 0x0047c4e7 in ?? ()
No symbol table info available.
#15 0x0047c4e7 in ?? ()
No symbol table info available.
#16 0x0047c4e7 in ?? ()
No symbol table info available.
#17 0x0047c4e7 in ?? ()
No symbol table info available.
#18 0x0047c4e7 in ?? ()
No symbol table info available.
#19 0x0047c4e7 in ?? ()
No symbol table info available.
#20 0x0047c4e7 in ?? ()
No symbol table info available.
#21 0x0047c4e7 in ?? ()
No symbol table info available.
#22 0x0047c4e7 in ?? ()
No symbol table info available.
---Type  to continue, or q  to quit---
#23 0x0047c4e7 in ?? ()
No symbol table info available.
#24 0x0047c4e7 in ?? ()
No symbol table info available.
#25 0x0047c4e7 in ?? ()
No symbol table info available.
#26 0x0047c4e7 in ?? ()
No symbol table info available.
#27 0x0047c4e7 in ?? ()
No symbol table info available.
#28 0x0047c4e7 in ?? ()
No symbol table info available.
#29 0x004186be in main ()
No symbol table info available.



On Wednesday, 4 June 2014, 17:49, Bogdan-Andrei Iancu 
 wrote:



Hi Pasan,

Please be sure you are using the DB schema for 1.11 (see 
http://www.opensips.org/Documentation/Install-DBSchema-1-10#AEN7254 ) 
- check the DB types and the content.


Also, follow this tutorial 
http://www.opensips.org/Documentation/TroubleShooting-Crash in order 
to extract and post here the backtrace of your cra

Re: [OpenSIPS-Users] opensips crash with location data

2014-06-05 Thread Pasan Meemaduma
oops sorry I forgot opensips-dbg :) bt reattached.

I have change some sensitive values with 'x' as below, hope it wont affect u r 
investigations

    contact = {s = 0xf91eab "sip:xxx...@xxx.xxx.xxx.xx", len = 29}



On Thursday, 5 June 2014, 8:34, Pasan Meemaduma  wrote:
 


Hi Bogdan,

I double checked the schema and it is correct. btw doc needs fixing its missing 
attr column which is needed by 1.10 for location table otherwise I'll get below 
error.

Jun  5 12:57:26  x/usr/sbin/opensips[30176]: 
CRITICAL:db_mysql:wrapper_single_mysql_real_query: driver error (1054): Unknown 
column 'attr' in 'field list'
Jun  5 12:57:26 x /usr/sbin/opensips[30177]: DBG:core:db_do_init: connection 
0x7f4dc04c1c28 inserted in pool as 0x7f4dc04c1d30
Jun  5 12:57:26 x /usr/sbin/opensips[30176]: ERROR:core:db_do_query: error 
while submitting query - [select 
username,contact,expires,q,callid,cseq,flags,cflags,user_agent,received,path,socket,methods,last_modified,sip_instance,attr
 from location ]
Jun  5 12:57:26 anacardium3backup /usr/sbin/opensips[30176]: 
ERROR:usrloc:preload_udomain: db_query (1) failed


:)


I got the backtrace as you requested , It doesn't seems right to me.  does it 
make any sense ? or did I miss something getting it ?


gdb opensips core.opensips.sig11.29154
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by
 law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /usr/sbin/opensips...(no debugging symbols found)...done.
[New LWP 29154]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

warning: no loadable sections found in added symbol-file system-supplied DSO at 
0x779fe000
Core was generated by `/usr/sbin/opensips -P /var/run/opensips/opensips.pid -m 
512 -M 16 -u opensips -'.
Program terminated with signal 11, Segmentation fault.
#0  0x7f3a71ab4f21 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt full
#0  0x7f3a71ab4f21 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x7f3a703b50a2 in preload_udomain () from 
/usr/lib/opensips/modules/usrloc.so
No symbol table info available.
#2  0x7f3a703b8fb6 in ?? () from /usr/lib/opensips/modules/usrloc.so
No symbol table info available.
#3  0x0047c617 in ?? ()
No symbol table info available.
#4  0x0047c4e7 in ?? ()
No symbol table info available.
#5  0x0047c4e7 in ?? ()
No symbol table info available.
#6  0x0047c4e7 in ?? ()
No symbol table info available.
#7  0x0047c4e7 in ?? ()
No symbol table info available.
#8  0x0047c4e7 in ?? ()
No symbol table info available.
#9  0x0047c4e7 in ?? ()
No symbol table info available.
#10 0x0047c4e7 in ?? ()
No symbol table info available.
#11 0x0047c4e7 in ?? ()
No symbol table info available.
#12 0x0047c4e7 in ?? ()
No symbol table info available.
#13 0x0047c4e7 in ?? ()
No symbol table info available.
#14 0x0047c4e7 in ?? ()
No symbol table info available.
#15 0x0047c4e7 in ?? ()
No symbol table info available.
#16 0x0047c4e7 in ?? ()
No symbol table info available.
#17 0x0047c4e7 in ?? ()
No symbol table info available.
#18 0x0047c4e7 in ?? ()
No symbol table info available.
#19 0x0047c4e7 in ?? ()
No symbol table info available.
#20 0x0047c4e7 in ?? ()
No symbol table info available.
#21 0x0047c4e7 in ?? ()
No symbol table info available.
#22 0x0047c4e7 in ?? ()
No symbol table info available.
---Type  to continue, or q
  to quit---
#23 0x0047c4e7 in ?? ()
No symbol table info available.
#24 0x0047c4e7 in ?? ()
No symbol table info available.
#25 0x0047c4e7 in ?? ()
No symbol table info available.
#26 0x0047c4e7 in ?? ()
No symbol table info available.
#27 0x0047c4e7 in ?? ()
No symbol table info available.
#28 0x0047c4e7 in ?? ()
No symbol table info available.
#29 0x004186be in main ()
No symbol table info available.




On Wednesday, 4 June 2014, 17:49, Bogdan-Andrei Iancu  
wrote:
 


Hi Pasan,

Please be sure you are using the DB schema for 1.11 (see 
http://www.opensips.org/Documentation/Install-DBSchema-1-10#AEN7254 ) - check 
the DB types and the content.

Also, follow this tutorial 
http://www.opensips.org/Documentation/TroubleShooting-Crash in order to extract 
and post here the backtrace of your crash.

Regards,
 
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer http://www.opensips-solutions.com
On 03.06.2014 06:34, P

[OpenSIPS-Users] OpenSIPS 1.11.1 - TLS not compiling in / Using menuconfig tool

2014-06-05 Thread Gary Patton
Hello everyone!  Pretty new to Linux and OpenSIPS.  Trying to build OpenSIPS on 
a Debian 7.5 server.
Using documentation from the OpenSIPS site and GitHub site, i downloaded the 
source code for 1.11.1 as a gzip file and successfully un-tarred it to 
/usr/src/opensips-1.11.-tls.  I followed the 2012 OpenSIPS kick start video 
tutorial from the OpenSIPS.org web site and started the menuconfig tool to 
compile and install OpenSIPS.  Using menuconfig, I configured these flags (and 
some optional modules):
  

Then I used the arrow key to get back to the prior menu and saved the compile 
options changes:
  

I successfully installed all of the dependencies of the modules I selected and 
then directed menuconfig to compile and install 1.11.1:
  

I got no error messages during compilation/installation.  I checked the modules 
directory and saw (what I think) is the TLS module in the directory:
  
I followed the instructions in the 2012 kick start video for creating a 
residential config file and changing mpaths, MySQL info, use of TLS and other 
start options, etc., etc., in the config files, init files, etc.
I stopped opensips and then restarted it:
  

Then I looked at the syslog files as the presenter did at approx. 32:35 in the 
kick start video tutorial but, unlike the clean log in the video, my log file 
said that TLS support wasn't compiled in into my OpenSIPS executables:
  
Any ideas where I went wrong or how to fix things?  Any direction would be 
really appreciated.  Thanks!
Gary P.



  ___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] RabbitMQ Timer Route Not Working

2014-06-05 Thread Bogdan-Andrei Iancu

Hi,

Try to get some debug logs from that route. Do:

timer_route[event_subscribe, 4] {
 setdebug(4);
 xlog("Subscribing from timer route\n");
 if (!subscribe_event("E_ACC_CDR", "rabbitmq:cdr:rabbit@192.168.2.30/cdr1", 5)) 
{
  xlog("L_INFO", "Can't connect to RabbitMQ \n");
 }
 setdebug();
}

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 02.06.2014 17:55, Kneeoh wrote:

After following the example here: 
http://www.opensips.org/Documentation/Tutorials-EventInterface

Shouldn't this resubscribe every 4 seconds and expire in 5 (i.e. never)? in my 
script it's not subscribing to rabbit at all. I'm running version: Server:: 
OpenSIPS (1.10.1-notls (x86_64/linux))

timer_route[event_subscribe, 4] {
  if (!subscribe_event("E_ACC_CDR", "rabbitmq:cdr:rabbit@192.168.2.30/cdr1", 
5)) {
   xlog("L_INFO", "Can't connect to RabbitMQ \n");
  }
}

root@osips:/var/log# tcpdump -s0 -ni eth1 host 192.168.2.30
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] strange behaviour, UAC needs to be rebooted

2014-06-05 Thread Miha

Hi Bogdan,

it is not related with NAT as modems are on public ip's.

From what I have understand is that modem memory become fully used as 
some memory leak thing. I also thruly do not know when exacly happens as 
I am waiting for some explenation feedback from vendor (about memory 
they told me throught the phone).


I will try to get some info from vendor as quick as possible to describe 
things more clear.


br
miha


Dne 6/5/2014 1:49 PM, piše Bogdan-Andrei Iancu:

Hi Miha,

I do not understand the explanation from the modem vendor (about the 
buffer) - what data is kept in that buffer ? is it something SIP 
related ? Do you do NAT pinging to those devices ?


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 14:15, Miha wrote:

Hi,

we are experiancing strange thing on UAC's that are registered on 
opensips (not all). After I while they just stop responding, call 
reaches UAC, you can hear rinback tone but the UAC does not send this 
call to heandset, also outside calls do not work. When you restart 
UAC everything is back to normal, for 1 week, maybe 2 but than again 
UAC must be restarted. This we are experiancing on cable modems and 
also on gigaset ip phones.


Company that we are buying modems from, send as fw fix (they said 
that the modem buffer is full and that is why this happens on modem).


Ok on first look this is not related with opensips but it is UAC 
thing, yes i know that but interesting thing is that when we have 
this modems on three other softswithes this did not happen for about 
6 years (this is how long we are having this modems).


If someone has experianced the same thing i have a clue what could be 
wrong or could halp in this case please help me:)


p.s.: company send as non production fw, which has hallped on this 
issue but still they are refusing to do official releas as some of 
this modem are out of support (not supported any more).


tnx
miha

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users








___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] db_http expectations

2014-06-05 Thread Bogdan-Andrei Iancu

Hi Tito,

Simply return 200 HTTP reply but with no set of values (no rows).

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 04:23, Tito Cumpen wrote:

Group,

I am having a bit a of confusion dealing with the type of replies 
db_http is expecting when users cannot be found in a query the 
document does not specify. I am attempting to send it 404 not found 
but this does not relay.



ERROR:db_http:do_http_op: Error in CURL: HTTP response code said error

Jun  5 01:19:27 /sbin/opensips[15920]: ERROR:db_http:do_http_op: 
Description  : The requested URL returned error: 404 Not Found


Jun  5 01:19:27 /sbin/opensips[15920]: ERROR:auth_db:get_ha1: failed 
to query database



Thanks,

Tito



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Trouble with some ip adresses

2014-06-05 Thread Bogdan-Andrei Iancu

Hi Mike,

Simply place before the "if" an xlog to print the $var(FROMIP) to see if 
you get there and if the variable contains the IP you expected.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 12:55, Mike Claudi Pedersen wrote:


Hi guys

im currently testing my setup, ive made a rule:

if ($var(FROMIP) == "xxx.xxx.xxx.201" || $var(FROMIP) == 
"xxx.xxx.xxx.86" || $var(FROMIP) == "xxx.xxx.xxx.13")

{
xlog("L_INFO","\n IP OK \n");
if (!lookup("location","m")) {
switch ($retcode)
{
case -1:
route(2);
case -3:
t_newtran();
t_reply("404", "Not Found");
exit;
case -2:
sl_send_reply("405", "Method Not Allowed");
exit;
}
}


# when routing via usrloc, log the missed calls also
setflag(2);

route(1);
}

but for some reason this rule only works when using xxx.xxx.xxx.86 or 
xxx.xxx.xxx.13, whenenver a call originates from xxx.xxx.xxx.201 it 
never gets into the location lookup it just goes directly to route(1) 
loops around a couple of times and then changes src ip.


i suspect that it goes into the loose_route part of the default 
config. but im not sure why or how ?



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] strange behaviour, UAC needs to be rebooted

2014-06-05 Thread Bogdan-Andrei Iancu

Hi Miha,

I do not understand the explanation from the modem vendor (about the 
buffer) - what data is kept in that buffer ? is it something SIP related 
? Do you do NAT pinging to those devices ?


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 14:15, Miha wrote:

Hi,

we are experiancing strange thing on UAC's that are registered on 
opensips (not all). After I while they just stop responding, call 
reaches UAC, you can hear rinback tone but the UAC does not send this 
call to heandset, also outside calls do not work. When you restart UAC 
everything is back to normal, for 1 week, maybe 2 but than again UAC 
must be restarted. This we are experiancing on cable modems and also 
on gigaset ip phones.


Company that we are buying modems from, send as fw fix (they said that 
the modem buffer is full and that is why this happens on modem).


Ok on first look this is not related with opensips but it is UAC 
thing, yes i know that but interesting thing is that when we have this 
modems on three other softswithes this did not happen for about 6 
years (this is how long we are having this modems).


If someone has experianced the same thing i have a clue what could be 
wrong or could halp in this case please help me:)


p.s.: company send as non production fw, which has hallped on this 
issue but still they are refusing to do official releas as some of 
this modem are out of support (not supported any more).


tnx
miha

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users





___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPScrashing after specific interval of time

2014-06-05 Thread Bogdan-Andrei Iancu

Hi Juned,

Your log (as per IRC discussion ) shows only signal 15 (which is SIG 
TERM) when doing normal shutdown - do you have any other "signal" 
reported in the logs ?


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 09:39, Juned Khan wrote:

Hi All.

Since last few months I am facing very strange issue of OpenSIPS, its 
crashing after specific interval of time.


I have enabled core dump parameters but dump is not generating. it 
seems some memory related problem. I hope someone expert can give me 
idea through this. how to solve this issue.


I am using

OpenSIPS 1.7.1
Debian squeeze 6.0.9
RAM : 16GB


Here is the opensips log

http://pastebin.com/5YnvF6ub

--
Thanks,
Juned Khan



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Script variables

2014-06-05 Thread Bogdan-Andrei Iancu
Just to complete Liviu's answer - a process is handling the SIP messages 
one at a time, so there is no risk of overwritten (as you feared).


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 08:09, Aleksandr Chusov wrote:

Hello
I'm sorry, maybe a stupid question but still.
Documentation Script variables are available within the same process,
whether I understand that their dangerous to use because they can be
overwritten when another message is processed by the same process?

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] opensips crash with location data

2014-06-05 Thread Bogdan-Andrei Iancu
Thanks for the backtrace. In DB, what do you have for the "attr" value ? 
NULL or an empty string ?


In gdb, could you do:
f 1
p (vals+6)->val.string_val

Thanks,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 06:15, Pasan Meemaduma wrote:

oops sorry I forgot opensips-dbg :) bt reattached.

I have change some sensitive values with 'x' as below, hope it wont 
affect u r investigations


contact = {s = 0xf91eab "sip:xxx...@xxx.xxx.xxx.xx", len = 29}


On Thursday, 5 June 2014, 8:34, Pasan Meemaduma  
wrote:



Hi Bogdan,

I double checked the schema and it is correct. btw doc needs fixing 
its missing attr column which is needed by 1.10 for location table 
otherwise I'll get below error.


Jun 5 12:57:26  x/usr/sbin/opensips[30176]: 
CRITICAL:db_mysql:wrapper_single_mysql_real_query: driver error 
(1054): Unknown column 'attr' in 'field list'
Jun  5 12:57:26 x /usr/sbin/opensips[30177]: DBG:core:db_do_init: 
connection 0x7f4dc04c1c28 inserted in pool as 0x7f4dc04c1d30
Jun  5 12:57:26 x /usr/sbin/opensips[30176]: ERROR:core:db_do_query: 
error while submitting query - [select 
username,contact,expires,q,callid,cseq,flags,cflags,user_agent,received,path,socket,methods,last_modified,sip_instance,attr 
from location ]
Jun  5 12:57:26 anacardium3backup /usr/sbin/opensips[30176]: 
ERROR:usrloc:preload_udomain: db_query (1) failed


:)

I got the backtrace as you requested , It doesn't seems right to me. 
does it make any sense ? or did I miss something getting it ?






___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] strange behaviour, UAC needs to be rebooted

2014-06-05 Thread Miha

Hi,

we are experiancing strange thing on UAC's that are registered on 
opensips (not all). After I while they just stop responding, call 
reaches UAC, you can hear rinback tone but the UAC does not send this 
call to heandset, also outside calls do not work. When you restart UAC 
everything is back to normal, for 1 week, maybe 2 but than again UAC 
must be restarted. This we are experiancing on cable modems and also on 
gigaset ip phones.


Company that we are buying modems from, send as fw fix (they said that 
the modem buffer is full and that is why this happens on modem).


Ok on first look this is not related with opensips but it is UAC thing, 
yes i know that but interesting thing is that when we have this modems 
on three other softswithes this did not happen for about 6 years (this 
is how long we are having this modems).


If someone has experianced the same thing i have a clue what could be 
wrong or could halp in this case please help me:)


p.s.: company send as non production fw, which has hallped on this issue 
but still they are refusing to do official releas as some of this modem 
are out of support (not supported any more).


tnx
miha

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Script variables

2014-06-05 Thread Liviu Chircu

Hello Aleksandr,

You should not worry at all about that. The only variables which could 
(in theory) be overwritten by other processes are AVPs.


But even with AVPs, writes inside the same transaction coming from 
different processes are protected at module level (e.g. the tm module 
uses such locking logic)


Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 06/05/2014 08:09 AM, Aleksandr Chusov wrote:

Hello
I'm sorry, maybe a stupid question but still.
Documentation Script variables are available within the same process,
whether I understand that their dangerous to use because they can be
overwritten when another message is processed by the same process?

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Trouble with some ip adresses

2014-06-05 Thread Mike Claudi Pedersen
Hi guys

im currently testing my setup, ive made a rule:

if ($var(FROMIP) == "xxx.xxx.xxx.201" || $var(FROMIP) == "xxx.xxx.xxx.86"
|| $var(FROMIP) == "xxx.xxx.xxx.13")
{
xlog("L_INFO","\n IP OK \n");
if (!lookup("location","m")) {
switch ($retcode)
{
case -1:
route(2);
case -3:
t_newtran();
t_reply("404", "Not Found");
exit;
case -2:
sl_send_reply("405", "Method Not
Allowed");
exit;
}
}


# when routing via usrloc, log the missed calls also
setflag(2);

route(1);
}

but for some reason this rule only works when using xxx.xxx.xxx.86 or
xxx.xxx.xxx.13, whenenver a call originates from xxx.xxx.xxx.201 it never
gets into the location lookup it just goes directly to route(1) loops
around a couple of times and then changes src ip.

i suspect that it goes into the loose_route part of the default config. but
im not sure why or how ?
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users