Re: [OpenSIPS-Users] error when use function t_relay

2011-09-14 Thread nguyen khue
Hi Robert, My model: kapanga --> sipproxy (opensips-1.6.2) --> asterisk (1.6) kapanga: 192.168.0.34 sipproxy: 192.168.0.35 asterisk: 192.168.0.179 This is my config file (reduce): if (is_method("INFO")){                 #t_relay();                 if (!vega_process_info()){                    

Re: [OpenSIPS-Users] error when use function t_relay

2011-09-14 Thread Robert Thomas
Hi Khue, Can you please post your full opensips.cfg file, and a packet capture so we can understand better what opensips is doing to the sip packets. A capture with ngrep with work as well. That way we can try to help. On Mon, Sep 12, 2011 at 10:19 PM, nguyen khue wrote: > Hi all, > > I have a

Re: [OpenSIPS-Users] error when use function t_relay

2011-09-14 Thread nguyen khue
Hi all, I still cannot resolve this problem. Can you help me? Thank you very much Khue Nguyen. From: nguyen khue To: "users@lists.opensips.org" Sent: Tuesday, September 13, 2011 11:19 AM Subject: [OpenSIPS-Users] error when use function t_relay Hi all, I ha

Re: [OpenSIPS-Users] How two OpenSIPS Active - Active Load balancing

2011-09-14 Thread Robert Thomas
I know perhaps it's a little too soon since we just have 1.7 out, to know when to expect 1.8 but in a general point of view, whats is the road map for 1.8, end this year, early next one? On Wed, Sep 14, 2011 at 12:18 PM, Bogdan-Andrei Iancu wrote: > ** > will be 1.82.0 is a completely differe

Re: [OpenSIPS-Users] Strange performance problem - SOLVED

2011-09-14 Thread Brett Nemeroff
2011/9/14 Alejandro Ríos > Alright, both the /var/log/messages file AND the opensips log file have to > be in async mode. > > So, problem solved, thanks! :) > > Glad to have helped. Tell the next person you see complain about performance about it. :) -Brett ___

Re: [OpenSIPS-Users] Strange performance problem - SOLVED

2011-09-14 Thread Alejandro Ríos
Alright, both the /var/log/messages file AND the opensips log file have to be in async mode. So, problem solved, thanks! :) El 14 de septiembre de 2011 15:40, Alejandro Ríos escribió: > Yes, I already had tried changing syslog settings to async mode, but the > errors kept showing: > > local0.*

Re: [OpenSIPS-Users] B2BUA mangling To header

2011-09-14 Thread Anca Vamanu
Hi Ryan, You are right - the To and From headers in ACK are not the same as in Invite in case the URIs contain parameters. I will handle this. Thanks, Anca On Thu, Sep 8, 2011 at 4:40 PM, Ryan Revels wrote: > I'm running Revision 8257 from SVN branch of 1.6. > I've run into an issue with the B

Re: [OpenSIPS-Users] Strange performance problem

2011-09-14 Thread Alejandro Ríos
Yes, I already had tried changing syslog settings to async mode, but the errors kept showing: local0.* -/var/log/opensips.log Then I set log_stderr=yes and redirected output to a log file, and the errors were gone. I'm using Centos 5.6, maybe a syslog issue on that version? Thanks again :) 2

Re: [OpenSIPS-Users] Strange performance problem

2011-09-14 Thread Brett Nemeroff
2011/9/14 Alejandro Ríos Peña > Hi guys, > > You were right! shutting down syslog logging resulted in clean successful > tests. I still don't have the fix for this, but will post it here when I > do. > It's an easy fix Go into your syslog and put a "-" before the logfile name for the log that

Re: [OpenSIPS-Users] Strange performance problem

2011-09-14 Thread Alejandro Ríos Peña
Hi guys, You were right! shutting down syslog logging resulted in clean successful tests. I still don't have the fix for this, but will post it here when I do. Thanks! Alejandro. 2011/9/14 Vlad Paiu > ** > Hello, > > Please check, as Brett said, if your logging is not the issue - if syslog >

Re: [OpenSIPS-Users] How two OpenSIPS Active - Active Load balancing

2011-09-14 Thread Bogdan-Andrei Iancu
you mean how to do LB ? if so , see http://www.opensips.org/Resources/DocsTutorials#toc4 Regards, Bogdan On 09/14/2011 09:35 PM, vip killa wrote: Would you mind posting your opensips.cfg ? I'm attempting to do same setup but I'm new to opensips and I don't understand how to do this. On Wed,

Re: [OpenSIPS-Users] How two OpenSIPS Active - Active Load balancing

2011-09-14 Thread vip killa
Would you mind posting your opensips.cfg ? I'm attempting to do same setup but I'm new to opensips and I don't understand how to do this. On Wed, Sep 14, 2011 at 12:41 PM, Robert Thomas wrote: > Hello List, > > I currently have this setup. > > Opensips -> Asterisk farm > > Opensips is using the

Re: [OpenSIPS-Users] OpenSips B2B and MediaProxy

2011-09-14 Thread Bogdan-Andrei Iancu
Hi Wilmar, If you want to use B2Bua only for topology hiding purposes, you should better consider the support provided by dialog module: http://www.opensips.org/html/docs/modules/1.7.x/dialog.html#id294766 with this approach, you can use dialog and mediaproxy in the same instance of OpenS

Re: [OpenSIPS-Users] How two OpenSIPS Active - Active Load balancing

2011-09-14 Thread Bogdan-Andrei Iancu
will be 1.82.0 is a completely different thing. Regards, Bogdan On 09/14/2011 09:10 PM, duane.lar...@gmail.com wrote: Will this "distributed version" be in a 1.7 version or 1.8 or the expected 2.0? On Sep 14, 2011 12:50pm, Bogdan-Andrei Iancu wrote: > > > > > > > > > > > > > Hi Robert,

Re: [OpenSIPS-Users] How two OpenSIPS Active - Active Load balancing

2011-09-14 Thread duane . larson
Will this "distributed version" be in a 1.7 version or 1.8 or the expected 2.0? On Sep 14, 2011 12:50pm, Bogdan-Andrei Iancu wrote: Hi Robert, This is cannot be done with the actual code (there is no way to share the dialog infos with other opensips instance), but, for

Re: [OpenSIPS-Users] methods= from register contact

2011-09-14 Thread Bogdan-Andrei Iancu
Hi Dani, Actually the lookup() function has an "m" flag to do "method filtering" - if the current method you are doing lookup for does not exists in the method bitmask of the record, the record is considered not matching. See : http://www.opensips.org/html/docs/modules/1.7.x/registrar.html

Re: [OpenSIPS-Users] Session-Expires with incoming calls from GW with client with no Session timers

2011-09-14 Thread Bogdan-Andrei Iancu
Hi Joel, On 09/14/2011 06:23 PM, joel.oliveira wrote: Hello all, Just dropping the message of "I finally did it". It seems like I was on the right track all the time, but failed completely on something very simple: append_hf("Session-Expires: 1800;refresher=uac\r\n", "User-Agent"); It seems t

Re: [OpenSIPS-Users] How two OpenSIPS Active - Active Load balancing

2011-09-14 Thread Bogdan-Andrei Iancu
Hi Robert, This is cannot be done with the actual code (there is no way to share the dialog infos with other opensips instance), but, for next release, we are working on a distributed version for several modules like dialog, usrloc, load-balanced, pike, ratelimit Regards, Bogdan On 09/14/20

Re: [OpenSIPS-Users] OpenSIPS 1.7.0 Topology Hiding and NAT Traversal

2011-09-14 Thread Bogdan-Andrei Iancu
Hi Jeremy, Indeed, seems to be an incompatibility here...What I would suggest is a bit of a trick, to manually handle the NATed contact in a dialog variable...Haven;t tried it, just an idea. On initial INVITE : modparam("nathelper", "received_avp", "$avp(contact)") ... topology_hiding(); if

[OpenSIPS-Users] How two OpenSIPS Active - Active Load balancing

2011-09-14 Thread Robert Thomas
Hello List, I currently have this setup. Opensips -> Asterisk farm Opensips is using the dialog module and Load balancer module. Right now the Opensips keeps track of the amount of active dialogs and balance calls between my server farm. I would like to have two opensips doing balancing for a f

Re: [OpenSIPS-Users] Session-Expires with incoming calls from GW with client with no Session timers

2011-09-14 Thread joel.oliveira
Hello all, Just dropping the message of "I finally did it". It seems like I was on the right track all the time, but failed completely on something very simple: append_hf("Session-Expires: 1800;refresher=uac\r\n", "User-Agent"); It seems to me that the GW was a little stubborn on the header; I

Re: [OpenSIPS-Users] opensips 1.6.4 core/bug

2011-09-14 Thread Dani Popa
hi, i imagine that. I patched and start opensips with new patch and now waiting. Thanks, Dani On 09/14/11 16:29, Vlad Paiu wrote: Hello, Ok, that wasn't of really much help :) Please try the attached patch and let me know if OpenSIPS still crashes. Regards, Vlad Paiu OpenSIPS Developer On

Re: [OpenSIPS-Users] opensips 1.6.4 core/bug

2011-09-14 Thread Vlad Paiu
Hello, Ok, that wasn't of really much help :) Please try the attached patch and let me know if OpenSIPS still crashes. Regards, Vlad Paiu OpenSIPS Developer On 09/14/2011 03:53 PM, Dani Popa wrote: Hi, (gdb) frame 0 #0 0xb6c2c3ee in get_rules_doc (user=0xbfb603ac, domain=0xbfb603bc, type=

Re: [OpenSIPS-Users] opensips 1.6.4 core/bug

2011-09-14 Thread Dani Popa
Hi, (gdb) frame 0 #0 0xb6c2c3ee in get_rules_doc (user=0xbfb603ac, domain=0xbfb603bc, type=2, rules_doc=0xb6c6a2a4) at xcap_auth.c:527 527 body.len = strlen(body.s); (gdb) p row_vals[0] value has been optimized out (gdb) On 09/14/11 15:43, Vlad Paiu wrote: Hello, In frame 0, cou

Re: [OpenSIPS-Users] opensips 1.6.4 core/bug

2011-09-14 Thread Vlad Paiu
Hello, In frame 0, could you please do p row_vals[0] and paste here the output ? Regards, Vlad Paiu OpenSIPS Developer On 09/14/2011 02:53 PM, Dani Popa wrote: Hi, My opensips used for presence stoped with Segmentation fault. root@test:/home# gdb opensips_1_6/opensips core GNU gdb (GD

Re: [OpenSIPS-Users] methods= from register contact

2011-09-14 Thread Vlad Paiu
Hi, No, OpenSIPS does not implement such a feature. Currently it acts as a blind proxy, relaying every request to the contact. Eventually, the contact will reply with 'Method not Implemented' or some similar error code. Regards, Vlad Paiu OpenSIPS Developer On 09/14/2011 02:34 PM, Dani Pop

[OpenSIPS-Users] opensips 1.6.4 core/bug

2011-09-14 Thread Dani Popa
Hi, My opensips used for presence stoped with Segmentation fault. root@test:/home# gdb opensips_1_6/opensips core GNU gdb (GDB) 7.3-debian Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you

Re: [OpenSIPS-Users] Two Basic question

2011-09-14 Thread Faisal Rehman
Hi, By the way I didn't see such users while installing & configuring OpenSIPS at my server, but here are the commands that you can run to delete these users:  opensipsctl rm 1000  opensipsctl rm 1001   With Best Regards, Faisal Rehman From: bakko To: Fai

Re: [OpenSIPS-Users] methods= from register contact

2011-09-14 Thread Dani Popa
Hi, Based on this mehods value, opensips will relay sip messages to the contact ? I mean, if methods value is matching bitwise with METHOD_MESSAGE value, opensips will sent sip MESSAGES method to the contact, otherwise, it will not send it ? Thanks, Dani On 09/14/11 11:25, Vlad Paiu wrote:

Re: [OpenSIPS-Users] Two Basic question

2011-09-14 Thread bakko
HI, I'm using a mysql database but the subscriber table is empty. Thank you. Regards ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Re: [OpenSIPS-Users] methods= from register contact

2011-09-14 Thread Dani Popa
Thanks, Dani On 09/14/11 11:25, Vlad Paiu wrote: Hello, Upon registration, each UA can supply a list of allowed/supported methods. OpenSIPS saves this information by using an integer, and bitmask flags. The enum used is : enum request_method { METHOD_UNDEF=0, /* 0 - ---

Re: [OpenSIPS-Users] Session-Expires with incoming calls from GW with client with no Session timers

2011-09-14 Thread joel.oliveira
Hello again, By setting a dialog variable when I get a Re-Invite from the GW, I managed to know on onreply_route, by comparing that variable, if the reply of the client is related to the Re-Invite. After this I can append the Session-Expires to the "200 OK" Reply and forward it to the GW: append_

Re: [OpenSIPS-Users] msg:len is too large

2011-09-14 Thread Faisal Rehman
Hi Brett, It can be a routing problem, so please see that link http://www.openser.org/pipermail/users/2007-September/013083.html which may help to solve your problem. With Best Regards, Faisal Rehman From: Brett Nemeroff To: OpenSIPS users mailling list S

Re: [OpenSIPS-Users] Two Basic question

2011-09-14 Thread Faisal Rehman
Hi Bako, First of all tell me are you connected with the database of opensips namely "opensips", if you are then you can easily delete the users from there. If your opensips is running on a public IP address but your extensions are behind NAT, then it would be better for you to use rtp or media

Re: [OpenSIPS-Users] Strange performance problem

2011-09-14 Thread Vlad Paiu
Hello, Please check, as Brett said, if your logging is not the issue - if syslog is in async mode. Further more, if logging turns out not to be the problem, you could use the time threshold parameters from the core for DNS and overall message processing [1], or the time threshold in the DB_MYS

Re: [OpenSIPS-Users] methods= from register contact

2011-09-14 Thread Vlad Paiu
Hello, Upon registration, each UA can supply a list of allowed/supported methods. OpenSIPS saves this information by using an integer, and bitmask flags. The enum used is : enum request_method { METHOD_UNDEF=0, /* 0 - --- */ METHOD_INVITE=1, /* 1 - 2^0 */