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()){
                        xlog("L_ERR","New service is not accept\n");
                        sl_send_reply("503", "Service unavaiable");
                        exit;
                }
        }
if (is_method("BYE")){
xlog("BYE from user $fU===\n");
vega_process_bye();
}
.
.
.
if (!lookup("location","m")) {
switch ($retcode) {
case -1:
case -3:
route(2);
exit;
case -2:
sl_send_reply("405", "Method Not Allowed");
exit;
}
}

route[2]{
if (is_method("INVITE")){
if (!has_totag()){
if (vega_process_invite()){
t_on_branch("2");
t_on_failure("1");
t_on_reply("2");
if ($fU =~"999887[0-9][0-9][0-9]"){
load_balance("1","pstn");
if (!t_relay()){
sl_reply_error();
}
}
else {
load_balance("2","pstn");
if (!t_relay()){
sl_reply_error();
}
}

}
else {
xlog("Process INVITE failed, drop call anyway\n");
sl_send_reply("404","Not Here");
exit;
}
}
}
exit;
}

and this is some messages that I capture on sipproxy

invite from kapanga to sipproxy

INVITE sip:1909@192.168.0.35 SIP/2.0
Via: SIP/2.0/UDP 
192.168.0.34:5060;branch=z9hG4bK2FCE61014FFB157699D2906A0C7172F2;rport
From: "977887006" 
;tag=A41C8BEBD152FC23D0F86F05097433AD
To: 
Contact: 
Call-ID: 2290815DDEAF262E60B1857F1F4FEDF1@192.168.0.34
User-Agent: Kapanga Softphone Desktop Windows 
1.00/2178d+1305879468_00FF3CC2A86A_0026C685F9F7_0026C685F9F6_0022681CF3DC_005056C1_005056C8
Supported: timer, replaces
CSeq: 1 INVITE
Max-Forwards: 70
Session-Expires: 1800;refresher=uac
Content-Type: application/sdp
Content-Length: 328

v=0
o=977887006 1316061208 1316061969 IN IP4 192.168.0.34
s=Kapanga [1316061208]
c=IN IP4 192.168.0.34
t=0 0
m=audio 5124 RTP/AVP 0 8
a=rtpmap:0 pcmu/8000
a=sendrecv
a=rtcp:5125
a=maxptime:20
a=ptime:20
a=rtpmap:8 pcma/8000
m=video 5126 RTP/AVP 34
a=rtpmap:34 h263/9
a=fmtp:34 QCIF=2
a=sendrecv
a=rtcp:5127

invite from sipproxy to asterisk

INVITE sip:1909@192.168.0.35 SIP/2.0
Record-Route: 
Via: SIP/2.0/UDP 192.168.0.35;branch=z9hG4bKd111.31b776c6.0
Via: SIP/2.0/UDP 
192.168.0.34:5060;received=192.168.0.34;branch=z9hG4bK2FCE61014FFB157699D2906A0C7172F2;rport=5060
From: "977887006" 
;tag=A41C8BEBD152FC23D0F86F05097433AD
To: 
Contact: 
Call-ID: 2290815DDEAF262E60B1857F1F4FEDF1@192.168.0.34
User-Agent: Kapanga Softphone Desktop Windows 
1.00/2178d+1305879468_00FF3CC2A86A_0026C685F9F7_0026C685F9F6_0022681CF3DC_005056C1_005056C8
Supported: timer, replaces
CSeq: 1 INVITE
Max-Forwards: 69
Session-Expires: 1800;refresher=uac
Content-Type: application/sdp
Content-Length: 328

v=0
o=977887006 1316061208 1316061969 IN IP4 192.168.0.34
s=Kapanga [1316061208]
c=IN IP4 192.168.0.34
t=0 0
m=audio 5124 RTP/AVP 0 8
a=rtpmap:0 pcmu/8000
a=sendrecv
a=rtcp:5125
a=maxptime:20
a=ptime:20
a=rtpmap:8 pcma/8000
m=video 5126 RTP/AVP 34
a=rtpmap:34 h263/9
a=fmtp:34 QCIF=2
a=sendrecv
a=rtcp:5127

INVITE message can reach destination.

200 ok from asterisk to sipproxy, and sipproxy cannot forward it to destination 
(kapanga). This message repeat six times.
SIP/2.0 200 OK
Via: SIP/2.0/UDP 
192.168.0.35;branch=z9hG4bKd111.31b776c6.0;received=192.168.0.35
Via: SIP/2.0/UDP 
192.168.0.34:5060;received=192.168.0.34;branch=z9hG4bK2FCE61014FFB157699D2906A0C7172F2;rport=5060
Record-Route: 
From: "977887006" 
;tag=A41C8BEBD152FC23D0F86F05097433AD
To: ;tag=as73bce553
Call-ID: 2290815DDEAF262E60B1857F1F4FEDF1@192.168.0.34
CSeq: 1 INVITE
Server: Asterisk PBX 1.8.4.2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, 
PUBLISH
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Contact: 
Content-Type: application/sdp
Content-Length: 255

v=0
o=root 1931374264 1931374264 IN IP4 192.168.0.179
s=Asterisk PBX 1.8.4.2
c=IN IP4 192.168.0.179
t=0 0
m=audio 18222 RTP/AVP 0 8
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
m=video 0 RTP/AVP 34

200 OK message cannot reach to destination, I captured 6 messages.

INFO sip:1909@192.168.0.179 SIP/2.0
Via: SIP/2.0/UDP 
192.168.0.34:5060;branch=z9hG4bK1D752E2B2641DAF42286B4D2B874F6DA;rport
Route: 
From: "977887006" 
;tag=A41C8BEBD152FC23D0F86F05097433AD
To: ;tag=as73bce553
Contact: 
Call-ID: 2290815DDEAF262E60B1857F1F4FEDF1@192.168.0.34
User-Agent: Kapanga Softphone Desktop Windows 
1.00/2178d+1305879468_00FF3CC2A86A_0026C685F9F7_0026C685F9F6_0022681CF3DC_005056C1_005056C8
Supported: timer, replaces
CSeq: 2 INFO
Max-Forwards: 70
Content-Type: application/dtmf-relay
Content-Length: 24

Signal=1
Duration=150

INFO message is same, it cannot reach to destination

Khue Nguyen


From: Robert Thomas 
To: nguyen khue ; OpenSIPS users mailling list 

Sent: Thursday, September 15, 2011 11:22 AM
Subject: Re: [OpenSIPS-Users] error when use function t_relay

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 module to process SIP message (INVITE, INFO, 200 OK, BYE). I have
> use t_relay function to capture 200 OK message in block onreply_route. But,
> After I use t_relay function, INFO, BYE, some ACKs messages cannot route to
> destination. If I insert some t_relay function in config file, it work
> normal.
>
> ex:
> if (is_method("INFO")){
> t_relay();  // *if this function is missing, the SIP INFO cannot reach the
> destination*
> process_info_msg();
> }
> .
> .
> .
>
> route[1]{
> t_on_branch("2"); t_on_failure("1"); t_on_reply("2");
> process_invite_msg();
> if ($fU == ){
> load_balance("1","transc");
> }
> else {
> load_balance("2","transc");
> }
> if(!t_relay()){
> sl_reply_error():
> }
> exit;
> }
>
> onreply_route[2]{
> process_ok_msg();
> }
>
> I using opensips-1.6.2. My module is : kapanga -> opensips -> asterisk.
> Kapanga and Asterisk don't register to opensips.
> Please help me resolve this problem.
>
> Thank you very much
> Khue Nguyen.
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


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


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 have a module to process SIP message (INVITE, INFO, 200 OK, BYE). I have use 
t_relay function to capture 200 OK message in block onreply_route. But, After I 
use t_relay function, INFO, BYE, some ACKs messages cannot route to 
destination. If I insert some t_relay function in config file, it work normal.

ex:
if (is_method("INFO")){
t_relay();  // if this function is missing, the SIP INFO cannot reach the 
destination
process_info_msg();
}
.
.
.

route[1]{
t_on_branch("2"); t_on_failure("1"); t_on_reply("2");
process_invite_msg();
if ($fU == ){
load_balance("1","transc");
}
else {
load_balance("2","transc");
}
if(!t_relay()){
sl_reply_error():
}
exit;
}

onreply_route[2]{
process_ok_msg();
}

I using opensips-1.6.2. My module is : kapanga -> opensips -> asterisk. Kapanga 
and Asterisk don't register to opensips.
Please help me resolve this problem.

Thank you very much
Khue Nguyen.
___
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] 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 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,
> >
> >
> >
> >
> >
> > 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/2011 07:41 PM, Robert Thomas wrote:
> >
> > 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 few
> >
> > reason. My concern is if I give 2 IPs to my customers, each server
> >
> > will know how many active channel has againts the GW but is not a
> >
> > realistic number. Each Opensips keeps its own count.
> >
> >
> >
> >
> >
> > I remember the t_replicate function from a bootcamp, so I was
> >
> > wondering if this could be a situation to use it and how.
> >
> >
> >
> >
> >
> > Has anyone tried this setup and what would be the best approach
> >
> > for scalability.
> >
> >
> >
> >
> > --
> >
> >
> > Robert
> >
> >
> >
> >
> >
> >
> > ___
> >
> > Users mailing list
> >
> > Users@lists.opensips.org
> >
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> >
> > Bogdan-Andrei Iancu
> >
> > OpenSIPS eBootcamp - 19th of September 2011
> >
> > OpenSIPS solutions and "know-how"
> >
> >
> >
> >
> >
> >
> >
>
>
> ___
> Users mailing list
> Users@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> --
> Bogdan-Andrei Iancu
> OpenSIPS eBootcamp - 19th of September 2011
> OpenSIPS solutions and "know-how"
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


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


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
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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.*
> -/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 :)
>
>
>
> 2011/9/14 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
>> opensips writes to. For example if you have an entry that looks like
>>
>> This is just to give you an idea, you'll need to be sure you edit the
>> right line..
>>
>>
>>
>> *.=info;*.=notice;*.=warning;\
>> auth,authpriv.none;\
>> cron,daemon.none;\
>> mail,news.none  /var/log/messages
>>
>>
>> Change it to this:
>>
>> *.=info;*.=notice;*.=warning;\
>> auth,authpriv.none;\
>> cron,daemon.none;\
>> mail,news.none  -/var/log/messages
>>
>> ___
>> 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] 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 B2BUA functionality. It mangles the To
> header on subsequent requests:
>
> On the initial INVITE from the B2BUA, the To header is:
> To: sip:18566625637;rn=1856380;npdi=yes@1.2.3.4
>
> On the responses, the to-tag has been added by the UAS:
> To: sip:18566625637;rn=1856380;npdi=yes@1.2.3.4;tag=gK0cdb2397
>
> The issues then occur on the ACK from the B2BUA(to 200 OK to initial
> INVITE):
> *To: ;tag=gK0cdb2397
> *
> Any help would be much appreciated.
>
> Thanks,
> Ryan
>
> ___
> 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 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 :)



2011/9/14 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
> opensips writes to. For example if you have an entry that looks like
>
> This is just to give you an idea, you'll need to be sure you edit the right
> line..
>
>
>
> *.=info;*.=notice;*.=warning;\
> auth,authpriv.none;\
> cron,daemon.none;\
> mail,news.none  /var/log/messages
>
>
> Change it to this:
>
> *.=info;*.=notice;*.=warning;\
> auth,authpriv.none;\
> cron,daemon.none;\
> mail,news.none  -/var/log/messages
>
> ___
> 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 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
opensips writes to. For example if you have an entry that looks like

This is just to give you an idea, you'll need to be sure you edit the right
line..



*.=info;*.=notice;*.=warning;\
auth,authpriv.none;\
cron,daemon.none;\
mail,news.none  /var/log/messages


Change it to this:

*.=info;*.=notice;*.=warning;\
auth,authpriv.none;\
cron,daemon.none;\
mail,news.none  -/var/log/messages
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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
> 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_MYSQL module, for queries
> [2], to check if DNS or MySQL is causing this performance issues.
>
> [1] http://www.opensips.org/Resources/DocsCoreFcn#toc49
> [2] http://www.opensips.org/html/docs/modules/devel/db_mysql.html#id249058
>
> Regards,
>
> Vlad Paiu
> OpenSIPS Developer
>
>
> On 09/14/2011 03:55 AM, Brett Nemeroff wrote:
>
> 2011/9/13 Alejandro Ríos 
>
>> Hi all,
>>
>> I'm running a sipp load test to an opensips instance on a 16 core, 8GB ram
>> blade server.  It's only 100 simultaneous calls, at 10 calls per second, and
>> I'm getting lots of retransmissions from the sipp UAC.
>>
>
> I'll give you the same advice I gave someone else just a sec ago. Check
> your syslog config and see if you are set up for async writes. Turn logging
> off completely on opensips and see if that changes anything. I've seen bad
> logging configs bring perfectly capable systems to it's knees.
> -Brett
>
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> ___
> 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] 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, Sep 14, 2011 at 12:41 PM, Robert Thomas > wrote:


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 few
reason. My concern is if I give 2 IPs to my customers, each server
will know how many active channel has againts the GW but is not a
realistic number. Each Opensips keeps its own count.

I remember the t_replicate function from a bootcamp, so I was
wondering if this could be a situation to use it and how.

Has anyone tried this setup and what would be the best approach
for scalability.

-- 
Robert


___
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



--
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 19th of September 2011
OpenSIPS solutions and "know-how"

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


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 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 few reason. My
> concern is if I give 2 IPs to my customers, each server will know how many
> active channel has againts the GW but is not a realistic number. Each
> Opensips keeps its own count.
>
> I remember the t_replicate function from a bootcamp, so I was wondering if
> this could be a situation to use it and how.
>
> Has anyone tried this setup and what would be the best approach for
> scalability.
>
> --
> Robert
>
> ___
> 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 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 OpenSIPS.


Regards,
Bogdan

On 09/14/2011 12:28 AM, Wilmar Campos wrote:

Hi,
I would like to know if the scenario for B2B and MediaProxy is 
possible.  I would like to do topology hidding but handle the media 
over a MediaProxyserver to be able to get no only SipTraces but 
MediaTraces.

Thanks!!!

--
Will


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



--
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 19th of September 2011
OpenSIPS solutions and "know-how"

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


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,
>
>
>
>
>
> 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/2011 07:41 PM, Robert Thomas wrote:
>
> 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 few
>
> reason. My concern is if I give 2 IPs to my customers, each server
>
> will know how many active channel has againts the GW but is not a
>
> realistic number. Each Opensips keeps its own count.
>
>
>
>
>
> I remember the t_replicate function from a bootcamp, so I was
>
> wondering if this could be a situation to use it and how.
>
>
>
>
>
> Has anyone tried this setup and what would be the best approach
>
> for scalability.
>
>
>
>
> --
>
>
> Robert
>
>
>
>
>
>
> ___
>
> Users mailing list
>
> Users@lists.opensips.org
>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
>
>
>
>
>
>
>
> --
>
> Bogdan-Andrei Iancu
>
> OpenSIPS eBootcamp - 19th of September 2011
>
> OpenSIPS solutions and "know-how"
>
>
>
>
>
>
>


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



--
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 19th of September 2011
OpenSIPS solutions and "know-how"

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


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 next



release, we are working on a distributed version for several modules



like dialog, usrloc, load-balanced, pike, ratelimit







Regards,




Bogdan







On 09/14/2011 07:41 PM, Robert Thomas wrote:



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 few



reason. My concern is if I give 2 IPs to my customers, each server



will know how many active channel has againts the GW but is not a



realistic number. Each Opensips keeps its own count.







I remember the t_replicate function from a bootcamp, so I was



wondering if this could be a situation to use it and how.







Has anyone tried this setup and what would be the best approach



for scalability.






--




Robert








___



Users mailing list



Users@lists.opensips.org



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













--



Bogdan-Andrei Iancu



OpenSIPS eBootcamp - 19th of September 2011



OpenSIPS solutions and "know-how"








___
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 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#id292848
   - about the "m" flag
   - about the "-2" return code.

Regards,
Bogdan


On 09/14/2011 02:34 PM, Dani Popa wrote:

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:

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 */
METHOD_CANCEL=2,  /* 2 - 2^1 */
METHOD_ACK=4, /* 3 - 2^2 */
METHOD_BYE=8, /* 4 - 2^3 */
METHOD_INFO=16,   /* 5 - 2^4 */
METHOD_OPTIONS=32,/* 6 - 2^5 */
METHOD_UPDATE=64, /* 7 - 2^6 */
METHOD_REGISTER=128,  /* 8 - 2^7 */
METHOD_MESSAGE=256,   /* 9 - 2^8 */
METHOD_SUBSCRIBE=512, /* 10 - 2^9 */
METHOD_NOTIFY=1024,   /* 11 - 2^10 */
METHOD_PRACK=2048,/* 12 - 2^11 */
METHOD_REFER=4096,/* 13 - 2^12 */
METHOD_PUBLISH=8192,  /* 14 - 2^13 */
METHOD_OTHER=16384/* 15 - 2^14 */
};

0x1F6F = 8047 = 4096 + 2048 + 1024 + 512 + 256 + 64 + 32 + 8 + 4 + 2 
+ 1 ,


Basically, using the methods integer and the above enumeration, you 
can tell what methods the registering UA supports.



Regards,
Vlad Paiu
OpenSIPS Developer

On 09/13/2011 10:42 PM, Dani Popa wrote:

Hi all,

What does it mean methods=0x1F6F from register contact when i see it 
with opensipsctl ul show, and how can i decode it ?
Contact:: 
;q=;expires=525;flags=0x0;cflags=0x0;socket=;methods=0x1F6F;user_agent=r801 / SGH-I897-7>



Thanks,

--
Dani Popa


___
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



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



--
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 19th of September 2011
OpenSIPS solutions and "know-how"

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


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 to me that the GW was a little stubborn on the header; I had 2
spaces ("  ") after "refresher=uac" when appending the header and that is
why the GW wasn't sending any more keep-alives, because it didn't detected
the header as valid.
seems that the GW is not RFC3261 compliant as before the End-of-Header, 
any amount of spacing chars can exists.


Regards,
Bogdan

--
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 19th of September 2011
OpenSIPS solutions and "know-how"


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


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/2011 07:41 PM, Robert Thomas wrote:

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 few reason. My 
concern is if I give 2 IPs to my customers, each server will know how 
many active channel has againts the GW but is not a realistic number. 
Each Opensips keeps its own count.


I remember the t_replicate function from a bootcamp, so I was 
wondering if this could be a situation to use it and how.


Has anyone tried this setup and what would be the best approach for 
scalability.


--
Robert


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



--
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 19th of September 2011
OpenSIPS solutions and "know-how"

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


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 (nat_uac_test()) {
fix_nated_register(); # puts the fix contact into received avp
$dlg_val(caller_contact) = $avp(contact);
}
...


And for sequential requests:
...
loose_route();
...
if ( match_dialog() ) {
# sequential request from callee to caller?
if ($DLG_dir=="UPSTREAM") $ru = $dlg_val(caller_contact) ;
}


Again, not tested, not sure it will work, but just an idea :)

Regards,
Bogdan

On 09/13/2011 07:30 PM, Jeremy Childs wrote:
I'm having a problem with the dialog module's topology hiding when a 
UA is behind a NAT.


If I call

if (nat_uac_test()) {
fix_nated_contact();
}
topology_hiding();

The Contact header is rewritten twice - once by fix_nated_contact() 
and again by topology_hiding(). This results in an invalid contact header.


Is there an obvious way I'm missing that could make these two modules 
coexist, or is the best solution to add NAT knowledge to 
dlg_tophiding.c? This seems like a lot of code to duplicate.



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



--
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 19th of September 2011
OpenSIPS solutions and "know-how"

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


[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 few reason. My
concern is if I give 2 IPs to my customers, each server will know how many
active channel has againts the GW but is not a realistic number. Each
Opensips keeps its own count.

I remember the t_replicate function from a bootcamp, so I was wondering if
this could be a situation to use it and how.

Has anyone tried this setup and what would be the best approach for
scalability.

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


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 had 2
spaces ("  ") after "refresher=uac" when appending the header and that is
why the GW wasn't sending any more keep-alives, because it didn't detected
the header as valid.

Finally did it. Thanks to anyone who read this thread and if you're having
some similar problem I wish you the best of luck.

Regards,
Joel

--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Session-Expires-with-incoming-calls-from-GW-with-client-with-no-Session-timers-tp6788671p6793067.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

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


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 09/14/2011 03:53 PM, Dani Popa wrote:

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, 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 (GDB) 7.3-debian
Copyright (C) 2011 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 "i486-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /home/opensips_1_6/opensips...done.
[New LWP 14277]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Core was generated by `/usr/local/sbin/opensips -P 
/var/run/opensips_presence/opensips_presence.pid -m'.

Program terminated with signal 11, Segmentation fault.
#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) bt
#0  0xb6c2c3ee in get_rules_doc (user=0xbfb603ac, 
domain=0xbfb603bc, type=2, rules_doc=0xb6c6a2a4) at xcap_auth.c:527

#1  0x081f6bfc in mem_pool ()
Backtrace stopped: Not enough registers or memory available to 
unwind further


The core file has 256M, if you need it, i'll post it on web, but 
please let me know.


Thanks,
Dani

___
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



___
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
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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=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, 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 (GDB) 7.3-debian
Copyright (C) 2011 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 "i486-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /home/opensips_1_6/opensips...done.
[New LWP 14277]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Core was generated by `/usr/local/sbin/opensips -P 
/var/run/opensips_presence/opensips_presence.pid -m'.

Program terminated with signal 11, Segmentation fault.
#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) bt
#0  0xb6c2c3ee in get_rules_doc (user=0xbfb603ac, domain=0xbfb603bc, 
type=2, rules_doc=0xb6c6a2a4) at xcap_auth.c:527

#1  0x081f6bfc in mem_pool ()
Backtrace stopped: Not enough registers or memory available to 
unwind further


The core file has 256M, if you need it, i'll post it on web, but 
please let me know.


Thanks,
Dani

___
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



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Index: modules/presence_xml/xcap_auth.c
===
--- modules/presence_xml/xcap_auth.c	(revision 8328)
+++ modules/presence_xml/xcap_auth.c	(working copy)
@@ -518,13 +518,32 @@
 	row = &result->rows[xcap_doc_col];
 	row_vals = ROW_VALUES(row);
 
-	body.s = (char*)row_vals[0].val.string_val;
+	switch (row_vals[0].type) {
+		case DB_STRING:
+			LM_DBG("extracted db_string\n");
+			body.s = (char*)row_vals[0].val.string_val;
+			if (body.s)
+body.len = strlen(body.s);
+			break;
+		case DB_STR:
+			LM_DBG("extracted db_str\n");
+			body = row_vals[0].val.str_val;
+			break;
+		case DB_BLOB:
+			LM_DBG("extracted db_blob\n");
+			body = row_vals[0].val.blob_val;
+			break;
+		default:
+			LM_ERR("unexpected column type %d\n",row_vals[0].type);
+			goto error;
+	}
+
 	if(body.s== NULL)
 	{
 		LM_ERR("Xcap doc NULL\n");
 		goto error;
 	}	
-	body.len = strlen(body.s);
+
 	if(body.len== 0)
 	{
 		LM_ERR("Xcap doc empty\n");
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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, 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 (GDB) 7.3-debian
Copyright (C) 2011 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 "i486-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /home/opensips_1_6/opensips...done.
[New LWP 14277]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Core was generated by `/usr/local/sbin/opensips -P 
/var/run/opensips_presence/opensips_presence.pid -m'.

Program terminated with signal 11, Segmentation fault.
#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) bt
#0  0xb6c2c3ee in get_rules_doc (user=0xbfb603ac, domain=0xbfb603bc, 
type=2, rules_doc=0xb6c6a2a4) at xcap_auth.c:527

#1  0x081f6bfc in mem_pool ()
Backtrace stopped: Not enough registers or memory available to unwind 
further


The core file has 256M, if you need it, i'll post it on web, but 
please let me know.


Thanks,
Dani

___
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



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


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 (GDB) 7.3-debian
Copyright (C) 2011 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 "i486-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /home/opensips_1_6/opensips...done.
[New LWP 14277]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Core was generated by `/usr/local/sbin/opensips -P 
/var/run/opensips_presence/opensips_presence.pid -m'.

Program terminated with signal 11, Segmentation fault.
#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) bt
#0  0xb6c2c3ee in get_rules_doc (user=0xbfb603ac, domain=0xbfb603bc, 
type=2, rules_doc=0xb6c6a2a4) at xcap_auth.c:527

#1  0x081f6bfc in mem_pool ()
Backtrace stopped: Not enough registers or memory available to unwind 
further


The core file has 256M, if you need it, i'll post it on web, but 
please let me know.


Thanks,
Dani

___
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] 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 Popa wrote:

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:

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 */
METHOD_CANCEL=2,  /* 2 - 2^1 */
METHOD_ACK=4, /* 3 - 2^2 */
METHOD_BYE=8, /* 4 - 2^3 */
METHOD_INFO=16,   /* 5 - 2^4 */
METHOD_OPTIONS=32,/* 6 - 2^5 */
METHOD_UPDATE=64, /* 7 - 2^6 */
METHOD_REGISTER=128,  /* 8 - 2^7 */
METHOD_MESSAGE=256,   /* 9 - 2^8 */
METHOD_SUBSCRIBE=512, /* 10 - 2^9 */
METHOD_NOTIFY=1024,   /* 11 - 2^10 */
METHOD_PRACK=2048,/* 12 - 2^11 */
METHOD_REFER=4096,/* 13 - 2^12 */
METHOD_PUBLISH=8192,  /* 14 - 2^13 */
METHOD_OTHER=16384/* 15 - 2^14 */
};

0x1F6F = 8047 = 4096 + 2048 + 1024 + 512 + 256 + 64 + 32 + 8 + 4 + 2 
+ 1 ,


Basically, using the methods integer and the above enumeration, you 
can tell what methods the registering UA supports.



Regards,
Vlad Paiu
OpenSIPS Developer

On 09/13/2011 10:42 PM, Dani Popa wrote:

Hi all,

What does it mean methods=0x1F6F from register contact when i see it 
with opensipsctl ul show, and how can i decode it ?
Contact:: 
;q=;expires=525;flags=0x0;cflags=0x0;socket=;methods=0x1F6F;user_agent=r801 / SGH-I897-7>



Thanks,

--
Dani Popa


___
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



___
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] 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 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 "i486-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /home/opensips_1_6/opensips...done.
[New LWP 14277]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Core was generated by `/usr/local/sbin/opensips -P 
/var/run/opensips_presence/opensips_presence.pid -m'.

Program terminated with signal 11, Segmentation fault.
#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) bt
#0  0xb6c2c3ee in get_rules_doc (user=0xbfb603ac, domain=0xbfb603bc, 
type=2, rules_doc=0xb6c6a2a4) at xcap_auth.c:527

#1  0x081f6bfc in mem_pool ()
Backtrace stopped: Not enough registers or memory available to unwind 
further


The core file has 256M, if you need it, i'll post it on web, but please 
let me know.


Thanks,
Dani

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


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: Faisal Rehman ; OpenSIPS users mailling list 

Sent: Wednesday, September 14, 2011 4:37 PM
Subject: Re: [OpenSIPS-Users] Two Basic question


 
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

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:

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 */
METHOD_CANCEL=2,  /* 2 - 2^1 */
METHOD_ACK=4, /* 3 - 2^2 */
METHOD_BYE=8, /* 4 - 2^3 */
METHOD_INFO=16,   /* 5 - 2^4 */
METHOD_OPTIONS=32,/* 6 - 2^5 */
METHOD_UPDATE=64, /* 7 - 2^6 */
METHOD_REGISTER=128,  /* 8 - 2^7 */
METHOD_MESSAGE=256,   /* 9 - 2^8 */
METHOD_SUBSCRIBE=512, /* 10 - 2^9 */
METHOD_NOTIFY=1024,   /* 11 - 2^10 */
METHOD_PRACK=2048,/* 12 - 2^11 */
METHOD_REFER=4096,/* 13 - 2^12 */
METHOD_PUBLISH=8192,  /* 14 - 2^13 */
METHOD_OTHER=16384/* 15 - 2^14 */
};

0x1F6F = 8047 = 4096 + 2048 + 1024 + 512 + 256 + 64 + 32 + 8 + 4 + 2 + 1 ,

Basically, using the methods integer and the above enumeration, you 
can tell what methods the registering UA supports.



Regards,
Vlad Paiu
OpenSIPS Developer

On 09/13/2011 10:42 PM, Dani Popa wrote:

Hi all,

What does it mean methods=0x1F6F from register contact when i see it 
with opensipsctl ul show, and how can i decode it ?
Contact:: 
;q=;expires=525;flags=0x0;cflags=0x0;socket=;methods=0x1F6F;user_agent=r801 / SGH-I897-7>



Thanks,

--
Dani Popa


___
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
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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 - --- */
METHOD_INVITE=1,  /* 1 - 2^0 */
METHOD_CANCEL=2,  /* 2 - 2^1 */
METHOD_ACK=4, /* 3 - 2^2 */
METHOD_BYE=8, /* 4 - 2^3 */
METHOD_INFO=16,   /* 5 - 2^4 */
METHOD_OPTIONS=32,/* 6 - 2^5 */
METHOD_UPDATE=64, /* 7 - 2^6 */
METHOD_REGISTER=128,  /* 8 - 2^7 */
METHOD_MESSAGE=256,   /* 9 - 2^8 */
METHOD_SUBSCRIBE=512, /* 10 - 2^9 */
METHOD_NOTIFY=1024,   /* 11 - 2^10 */
METHOD_PRACK=2048,/* 12 - 2^11 */
METHOD_REFER=4096,/* 13 - 2^12 */
METHOD_PUBLISH=8192,  /* 14 - 2^13 */
METHOD_OTHER=16384/* 15 - 2^14 */
};

0x1F6F = 8047 = 4096 + 2048 + 1024 + 512 + 256 + 64 + 32 + 8 + 4 + 2 + 1 ,

Basically, using the methods integer and the above enumeration, you 
can tell what methods the registering UA supports.



Regards,
Vlad Paiu
OpenSIPS Developer

On 09/13/2011 10:42 PM, Dani Popa wrote:

Hi all,

What does it mean methods=0x1F6F from register contact when i see it 
with opensipsctl ul show, and how can i decode it ?
Contact:: 
;q=;expires=525;flags=0x0;cflags=0x0;socket=;methods=0x1F6F;user_agent=r801 / SGH-I897-7>



Thanks,

--
Dani Popa


___
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
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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_hf("Session-Expires: 1800;refresher=uac  \r\n", "User-Agent");

The problem is that... this didn't resolve my problem. The gateway seems to
forge to do the Re-Invite and the call dies 30 minutes after the Re-Invite.
Does anyone had a similar problem with incoming calls from a GW to a user,
where the GW does support timer but the user does not?

Thanks for your time,
Joel Oliveira




--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Session-Expires-with-incoming-calls-from-GW-with-client-with-no-Session-timers-tp6788671p6792136.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

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


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 
Sent: Wednesday, September 14, 2011 7:11 AM
Subject: Re: [OpenSIPS-Users] msg:len is too large





On Tue, Sep 13, 2011 at 9:02 PM, vivid333  wrote:

 
>hello:
>       
>        Why OpenSips  returns 513? is  that SIP Message Buffer is
too large/or full ? is that mean that include previous message? 
> below is opensips.cfg:
>
>

I'm not entirely sure where your trace is coming from, but typically you run 
into this if you relay the call without modifying the RURI; thus causing a huge 
loop. The stacked vias make the packet larger and larger until you hit the msg 
too big limit. You may not see this on a normal trace, you might have to watch 
on the loopback interface.

-Brett
 

___
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] 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 proxy.


With Best Regards,

Faisal Rehman



From: bakko 
To: users@lists.opensips.org
Sent: Wednesday, September 14, 2011 2:44 AM
Subject: [OpenSIPS-Users] Two Basic question

Hello everybody,

I'm beginning with OpenSIPs and I have two basic question.

How can i delete predefinided users 1000 and 1001?

If my network look like:

opensips with pubblic IP and all extensions behind a NAT. Do I have to always 
use a mediaproxy (or rtpproxy)?

Thank you in advance.

- Bakko



___
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 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_MYSQL module, for 
queries [2], to check if DNS or MySQL is causing this performance issues.


[1] http://www.opensips.org/Resources/DocsCoreFcn#toc49
[2] http://www.opensips.org/html/docs/modules/devel/db_mysql.html#id249058

Regards,

Vlad Paiu
OpenSIPS Developer


On 09/14/2011 03:55 AM, Brett Nemeroff wrote:

2011/9/13 Alejandro Ríos mailto:aler...@debian.org>>

Hi all,

I'm running a sipp load test to an opensips instance on a 16 core,
8GB ram blade server.  It's only 100 simultaneous calls, at 10
calls per second, and I'm getting lots of retransmissions from the
sipp UAC.


I'll give you the same advice I gave someone else just a sec ago. 
Check your syslog config and see if you are set up for async writes. 
Turn logging off completely on opensips and see if that changes 
anything. I've seen bad logging configs bring perfectly capable 
systems to it's knees.

-Brett


___
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] 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 */
METHOD_CANCEL=2,  /* 2 - 2^1 */
METHOD_ACK=4, /* 3 - 2^2 */
METHOD_BYE=8, /* 4 - 2^3 */
METHOD_INFO=16,   /* 5 - 2^4 */
METHOD_OPTIONS=32,/* 6 - 2^5 */
METHOD_UPDATE=64, /* 7 - 2^6 */
METHOD_REGISTER=128,  /* 8 - 2^7 */
METHOD_MESSAGE=256,   /* 9 - 2^8 */
METHOD_SUBSCRIBE=512, /* 10 - 2^9 */
METHOD_NOTIFY=1024,   /* 11 - 2^10 */
METHOD_PRACK=2048,/* 12 - 2^11 */
METHOD_REFER=4096,/* 13 - 2^12 */
METHOD_PUBLISH=8192,  /* 14 - 2^13 */
METHOD_OTHER=16384/* 15 - 2^14 */
};

0x1F6F = 8047 = 4096 + 2048 + 1024 + 512 + 256 + 64 + 32 + 8 + 4 + 2 + 1 ,

Basically, using the methods integer and the above enumeration, you can 
tell what methods the registering UA supports.



Regards,

Vlad Paiu
OpenSIPS Developer


On 09/13/2011 10:42 PM, Dani Popa wrote:

Hi all,

What does it mean methods=0x1F6F from register contact when i see it 
with opensipsctl ul show, and how can i decode it ?
Contact:: 
;q=;expires=525;flags=0x0;cflags=0x0;socket=;methods=0x1F6F;user_agent=r801 / SGH-I897-7>



Thanks,

--
Dani Popa


___
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