Re: [OpenSIPS-Users] memory consumed by t_relay

2013-05-20 Thread microx
Hi Bogdan-Andrei, 

With SIPp keeps creating and terminating dialogs round after round, the only
things at the outbound proxy I know are
1) each SIP process occupies more and more memory.

2) "opensipsctl fifo get_statistics shmem:" shows the shmem:used_size and
shmem:real_used_size both keep increasing (but tm:inuse_transactions is
nearly constant)

3) After processing 60,000 dialogs (call per second: 100; within less than
an hour), 
"WARNING:core:fm_malloc: Not enough free memory, will atempt defragmenation 
ERROR:tm:new_t: out of mem 
ERROR:tm:t_newtran: new_t failed" are output to the log and no new INVITEs
could be forwarded from outbound proxy to internal SIP server.

4) if OpenSIPS at the outbound proxy stops, the occupied memory seems to be
freed normally.

It is possible that there exists a flaw in my configuration file. However, I
am not capable of identifying the problem. 
Is there anything I can provide to help address this issue?

Best regards,
Chen-Che



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/memory-consumed-by-t-relay-tp7586016p7586430.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-Devel] [DROUTING] Crash on use_next_gw/get_gw_by_id

2013-05-20 Thread Ronald Cepres
Thanks, will apply this patch and let you know if the bug still occurs.


On Tue, May 21, 2013 at 12:44 AM, Bogdan-Andrei Iancu
wrote:

> **
> Ups, sorry...here is the proper patch.
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
>
> On 05/20/2013 07:40 PM, Ronald Cepres wrote:
>
> Hi Bogdan,
>
>  Thanks for the reply. However, the patch that is attached is empty (0
> bytes and doesn't contain anything).
>
>  Regards,
>
>
> On Tue, May 21, 2013 at 12:36 AM, Bogdan-Andrei Iancu  > wrote:
>
>>  Hello,
>>
>> Thanks to the help in debugging this, the bug was found and a patch is
>> available for testing (see attached). Please have it tested and let me know
>> if it fixes the problem.
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>>
>>
>> On 05/16/2013 07:28 PM, Ronald Cepres wrote:
>>
>>   Drouting crashes when selecting next gateway. Did a little
>> investigation, and FWIW the next gateway's carrier status is disabled but
>> the carrier's only gateway is enabled. Looked at the backtrace of the core
>> dump, and found that it crashed while comparing two strings on get_gw_by_id
>> called by use_next_gw. The strings compared were apparently GW ID strings.
>>
>> I attached the GDB btfull logs (replaced some sensitive info with dummy
>> text) for reference. Take note that 'dont optimize' flag was not set so
>> some of the values were optimized and the crash happened randomly so I
>> can't actually reproduce the crash.
>>
>> I'm using Opensips 1.9 using this source tarball:
>> http://opensips.org/pub/opensips/latest/src/opensips-1.9.0_src.tar.gz
>>
>>  --
>>
>> Regards,
>>
>>  Ronald Cepres
>>
>>
>> ___
>> Devel mailing 
>> listDevel@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>>
>>
>
>
>  --
>
> Ronald Cepres
> Network Operations Center
> Net Voip Communications, Inc.
>
>
> This message contains confidential information and is intended only
> for the individual named. If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail. Please notify
> the sender immediately by e-mail if you have received this e-mail by
> mistake and delete this e-mail from your system. E-mail transmission
> cannot be guaranteed to be secure or error-free as information could
> be intercepted, corrupted, lost, destroyed, arrive late or incomplete,
> or contain viruses. The sender therefore does not accept liability for
> any errors or omissions in the contents of this message, which arise
> as a result of e-mail transmission. If verification is required please
> request a hard-copy version. Net Voip Communications, Inc., 2721
> Forsyth Rd #256, Winter park, FL 32792. www.netvoipcommunications.com
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 

Ronald Cepres
Network Operations Center
Net Voip Communications, Inc.


This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please notify
the sender immediately by e-mail if you have received this e-mail by
mistake and delete this e-mail from your system. E-mail transmission
cannot be guaranteed to be secure or error-free as information could
be intercepted, corrupted, lost, destroyed, arrive late or incomplete,
or contain viruses. The sender therefore does not accept liability for
any errors or omissions in the contents of this message, which arise
as a result of e-mail transmission. If verification is required please
request a hard-copy version. Net Voip Communications, Inc., 2721
Forsyth Rd #256, Winter park, FL 32792. www.netvoipcommunications.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [OpenSIPS-Devel] Migrating OpenSIPS to GitHub

2013-05-20 Thread Răzvan Crainea

Hello again!

We are very proud to announce you that we have successfully migrated 
OpenSIPS to a new GitHub repository[1]. The entire process went smooth 
and we've also managed to keep the entire svn history.


Furthermore, in order to keep your current SVN checkouts updated, we 
have also deployed a couple of scripts that push all the git commits 
back in the SVN repository. This way you will be able to keep all your 
repositoryes synchronized with the latest fixes.


In order to make the transition easier, we have also complied a 
Migration Documentation[2], where you can find there[3] some tips on how 
to move your repositories to the new URLs.


Starting from now, developers are free to push their commits upstream. A 
short tutorial about Git usage can be found here[4].


According to our schedule, during the next days we will work on moving 
the tracker system (bugs, patches, feature requests) to GitHub. We will 
get back to you these days with announcements regarding this. Meanwhile, 
you should continue using the SourceForge tracker[5] until further notice.


[1] https://github.com/OpenSIPS/opensips
[2] http://www.opensips.org/About/GitHub-Migration
[3] http://www.opensips.org/About/Git-Migration
[4] http://git-scm.com/docs/gittutorial
[5] http://sourceforge.net/p/opensips/_list/tickets

Best regards,

Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 05/08/2013 09:00 PM, Răzvan Crainea wrote:

Hello, all!

As per our initial schedule[2], today we have made the last commits in
the SourceForge repository. Starting from now, all the users will have
the commit/write access revoked, and will no longer be able to do any
changes to the code.

Starting from tomorrow, 9th of May 2013, we will start migrating the
OpenSIPS sources to a new GitHub repository.

Best regards,

Razvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 04/30/2013 11:38 AM, Răzvan Crainea wrote:

Hi all!

Following the community desires[1] to migrate OpenSIPS repository and
tracker to Github, we have compiled a schedule[2] for the upcoming
weeks. Any changes to it, as well as updates, will be posted in this
thread.

[1] http://www.opensips.org/Community/Polls-GitResult
[2] http://www.opensips.org/About/GitHub-Migration

Best regards,


___
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/STUN

2013-05-20 Thread Oleg Stolyar
Excellent, thanks Bogdan!

Thank you
*Oleg*


On Mon, May 20, 2013 at 9:47 AM, Bogdan-Andrei Iancu wrote:

> **
> Hello Oleg,
>
> Sure you can change the SDP IP - see the fix_nated_sdp() function -
> http://www.opensips.org/html/docs/modules/1.8.x/nathelper.html#id250390
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
>
> On 05/17/2013 09:01 PM, Oleg Stolyar wrote:
>
> Hi,
>
>  I want to use OpenSIPS as the proxy/load balancer for a bunch of
> FreeSWITCH media servers.
>
>  Some of the UACs will be in private networks behind NATs.
>
>  My question is this:  Can OpenSIPS be setup to change the IP/Port info
> in SDP to the translated one before sending the SIP request on to the
> FreeSWITCH server.  Or do I have to use a separate STUN server and have my
> UACs get the translated addresses and include them in SDP info?
>
>  Thank you
> *Oleg*
>
>
> ___
> 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


Re: [OpenSIPS-Users] Registrar not saving received from Path header

2013-05-20 Thread Bogdan-Andrei Iancu
Hello Nathaniel,

See the attached patch - it logs more from the part where the params are
handled .

Regards,

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


On 05/18/2013 09:33 AM, Nathaniel L Keeling III wrote:
> Hello Bogdan,
>
> Here are snippets from my script. I only have one place where I
> execute the save function. Just wondering, could it be truncating a byte?
>
> modparam("usrloc", "nat_bflag", 10)
> modparam("usrloc", "use_domain", 1)
> modparam("usrloc", "db_mode", 3)
> modparam("usrloc", "db_url",
> "postgres://opensips:opensip...@ama.akan.net/opensips181t")
> modparam("registrar", "tcp_persistent_flag", 7)
> modparam("registrar", "received_avp", "$avp(received_nh)")
>
>
> xlog("SAVING THE SUBSCRIBER INTO THE LOCATION TABLE
> ");
> if (!save("location","p1"))
> {
> xlog("L_ERR", "ERR:callerid:$ci|end|System error trying to
> save Register's request location");
> sl_reply_error();
> }
>
> xlog("L_NOTICE", "NOTICE:callerid:$ci|end|The subscriber has
> successfully registered with Akan Voice");
> exit;
>
> Thanks
>
> Nathaniel
>
> On 5/17/13 6:07 AM, Bogdan-Andrei Iancu wrote:
>> Hello Nathaniel,
>>
>> That is odd.it's like you do not set the "p1" flag 
>>
>> I tested and I with "p1" flag I get:
>> May 17 14:05:03 [7944] DBG:registrar:pack_ci: xXx - flags are 10
>>
>> Are you sure your script gets to the right save() ??
>>
>> Regards,
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developer
>> http://www.opensips-solutions.com
>>
>> On 05/17/2013 09:37 AM, Nathaniel L Keeling III wrote:
>>> Hello Bogdan,
>>>
>>> I added the patch and here is what I found: "OpenSips[4378]: [ID
>>> 269964 local1.debug] DBG:registrar:pack_ci: xXx - flags are 0". I
>>> have also included the log file.
>>>
>>> Thanks
>>>
>>> Nathaniel Keeling
>>>
>>> On 5/16/13 3:47 AM, Bogdan-Andrei Iancu wrote:
 Hello Nathaniel,

 Attached is an extended patch - remove the old one and apply this
 one. Again look for any xXx logs .

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

 On 05/14/2013 02:47 PM, Nathaniel L Keeling III wrote:
> Hello Bogdan,
>
> here is the output from opensips's og file of the save() with the
> patch and the code snippet from the opensips.cfg. I did not see
> any ant logs with "xXx". Also,I have usrloc's db_mode set to 3.
>
> xlog("SAVING THE SUBSCRIBER INTO THE LOCATION TABLE
> ");
> if (!save("location","p1"))
> {
> xlog("L_ERR", "ERR:callerid:$ci|end|System error trying to
> save Register's request location");
> sl_reply_error();
> }
> xlog("L_NOTICE", "NOTICE:callerid:$ci|end|The subscriber has
> successfully registered with Akan Voice");
> exit; 
>>>
>>>
>>> ___
>>> 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/registrar/save.c
===
--- modules/registrar/save.c	(revision 10023)
+++ modules/registrar/save.c	(working copy)
@@ -247,11 +247,14 @@
 		}
 
 		/* extract Path headers */
+		LM_DBG("xXx - flags are %X \n",_flags);
 		if ( _flags®_SAVE_PATH_FLAG ) {
+			LM_DBG("xXx - saving path into usrloc \n");
 			if (build_path_vector(_m, &path, &path_received, _flags) < 0) {
 rerrno = R_PARSE_PATH;
 goto error;
 			}
+			LM_DBG("xXx - path is <%.*s>(%d)\n",path.len,path.s,path.len);
 			if (path.len && path.s) {
 ci.path = &path;
 /* save in msg too for reply */
@@ -749,11 +752,13 @@
 	sctx.max_contacts = -1;
 
 	sctx.flags = 0;
+	LM_DBG("xXx - flags param is %s \n",_f);
 	if (_f && _f[0]!=0) {
 		if (fixup_get_svalue( _m, (gparam_p)_f, &flags_s)!=0) {
 			LM_ERR("invalid flags parameter");
 			return -1;
 		}
+		LM_DBG("xXx - flags string is <%.*s> \n",flags_s.len,flags_s.s);
 		for( st=0 ; st< flags_s.len ; st++ ) {
 			switch (flags_s.s[st]) {
 case 'm': sctx.flags |= REG_SAVE_MEMORY_FLAG; break;
@@ -799,6 +804,7 @@
 			}
 		}
 	}
+	LM_DBG("xXx - flags bitmask is <%X> \n",sctx.flags);
 	if(route_type == ONREPLY_ROUTE)
 		sctx.flags |= REG_SAVE_NOREPLY_FLAG;
 
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Mediaproxy relay on CentOS 6 VPS

2013-05-20 Thread Muhammad Shahzad
Humm, strange i never had to do that. If you can check which VMS you have,
may be i can get it tested in local data center. Following three commands
may give you some idea,

cat /proc/cpuinfo
cat /etc/issue
uname -a

OR you can always fallback to Debian. :-)

Thank you.




On Mon, May 20, 2013 at 6:45 PM, John Quick wrote:

> Muhammed,
>
>
> Thanks for responding so quickly. I already have iptables-devel package
> installed, but I used yum to install it.
>
> I did some research the last time it happened and think it concerns Linux
> loadable modules and options that may require a re-build of the kernel.***
> *
>
> On that occasion, I chickened out and changed to Ubuntu.
>
> 
>
> John
>
> ** **
>
> *From:* Muhammad Shahzad [mailto:shaherya...@gmail.com]
> *Sent:* 20 May 2013 17:37
> *To:* John Q; OpenSIPS users mailling list
> *Subject:* Re: [OpenSIPS-Users] Mediaproxy relay on CentOS 6 VPS
>
> ** **
>
> I think you need to install iptables-devel package.
>
> ** **
>
> http://rpm.pbone.net/index.php3?stat=3&search=iptables-devel&srodzaj=3
>
> ** **
>
> Thank you.
>
> ** **
>
> ** **
>
> On Mon, May 20, 2013 at 5:56 PM, John Quick 
> wrote:
>
> On two different Virtual Private Servers running CentOS 6 I have hit the
> same problem.
> It is that when I try to start mediaproxy relay, it errors with:
> FATAL: Module ip_tables not found.
>
> Unfortunately, as it is a third party VPS, I do not know what
> virtualization
> environment is being used.
> Does anyone know how to debug this problem (before I re-image it with
> Debian/Ubuntu)?
>
> Mediaproxy version is 2.5.2 and I used my own instructions as outlined at
> http://kb.smartvox.co.uk/opensips/install-mediaproxy-centos-6/
> The same procedure has worked fine on many other servers running CentOS 6.
>
> John Quick
> Smartvox Limited
> Web: www.smartvox.co.uk
>
>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> 
>
> ** **
>
> -- 
>
> Mit freundlichen Grüßen
>
> Muhammad Shahzad
> ---
> CISCO Rich Media Communication Specialist (CRMCS)
> CISCO Certified Network Associate (CCNA)
> Cell: +49 176 99 83 10 85
> MSN: shari_78...@hotmail.com
> Email: shaherya...@googlemail.com 
>



-- 
Mit freundlichen Grüßen
Muhammad Shahzad
---
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: shari_78...@hotmail.com
Email: shaherya...@googlemail.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPS/STUN

2013-05-20 Thread Bogdan-Andrei Iancu
Hello Oleg,

Sure you can change the SDP IP - see the fix_nated_sdp() function -
http://www.opensips.org/html/docs/modules/1.8.x/nathelper.html#id250390

Regards,

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


On 05/17/2013 09:01 PM, Oleg Stolyar wrote:
> Hi,
>
> I want to use OpenSIPS as the proxy/load balancer for a bunch of
> FreeSWITCH media servers.
>
> Some of the UACs will be in private networks behind NATs.  
>
> My question is this:  Can OpenSIPS be setup to change the IP/Port info
> in SDP to the translated one before sending the SIP request on to the
> FreeSWITCH server.  Or do I have to use a separate STUN server and
> have my UACs get the translated addresses and include them in SDP info?
>
> Thank you
> /Oleg/
>
>
> ___
> 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] Regular expression matching problem

2013-05-20 Thread Muhammad Shahzad
OR to simplify more, you just want to match last four characters as digits,
so you can try this as well,

if ($rU =~ "[0-9]{4}$") {
xlog("L_WARN", "> MATCHED
<< \n");
} else {
xlog("L_WARN", "> NOT MATCHED
<< \n");
}

Thank you.




On Mon, May 20, 2013 at 6:41 PM, Bogdan-Andrei Iancu wrote:

> **
> Hi Diego,
>
> The REGEXPs in OpenSIPS are POSIX compliant, so \d are not supported. 
> Try:"^(.)?[0-9]{4}$"
> .
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
>
> On 05/20/2013 06:57 PM, Diego Barberio wrote:
>
>   Hi All,
>
>  I'm having a really stupid issue with opensips 1.8.1. I need to do
> different logic if the request line user is a number of 4 digits that can
> be preceded by any character. So I created this regular expression:
> ^(.)?\d{4}$
>  I've tested it on www.regular-expressions.info/javascriptexample.htmland 
> works perfect, however on opensips it never matches.
>
>  I've made the following test script:
>
>
> if($rU =~ '^(.)?\d{4}$') {
> xlog("MATCHES $rU\n");
> }else{
> xlog("NOT MATCHES $rU\n");
> }
>
>  And I always get "NOT MATCHES":
>
> May 20 11:54:33 localhost /usr/local/sbin/opensips[22628]: NOT MATCHES
> *5522
> May 20 11:54:42 localhost /usr/local/sbin/opensips[22629]: NOT MATCHES
> 5522
>
>  What am I doing wrong?
>
>  Thanks
>  Diego
>
>
> ___
> 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
>
>


-- 
Mit freundlichen Grüßen
Muhammad Shahzad
---
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: shari_78...@hotmail.com
Email: shaherya...@googlemail.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Mediaproxy relay on CentOS 6 VPS

2013-05-20 Thread John Quick
Muhammed,


Thanks for responding so quickly. I already have iptables-devel package 
installed, but I used yum to install it.

I did some research the last time it happened and think it concerns Linux 
loadable modules and options that may require a re-build of the kernel.

On that occasion, I chickened out and changed to Ubuntu.



John

 

From: Muhammad Shahzad [mailto:shaherya...@gmail.com] 
Sent: 20 May 2013 17:37
To: John Q; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Mediaproxy relay on CentOS 6 VPS

 

I think you need to install iptables-devel package.

 

http://rpm.pbone.net/index.php3?stat=3 
 
&search=iptables-devel&srodzaj=3

 

Thank you.

 

 

On Mon, May 20, 2013 at 5:56 PM, John Quick  wrote:

On two different Virtual Private Servers running CentOS 6 I have hit the
same problem.
It is that when I try to start mediaproxy relay, it errors with:
FATAL: Module ip_tables not found.

Unfortunately, as it is a third party VPS, I do not know what virtualization
environment is being used.
Does anyone know how to debug this problem (before I re-image it with
Debian/Ubuntu)?

Mediaproxy version is 2.5.2 and I used my own instructions as outlined at
http://kb.smartvox.co.uk/opensips/install-mediaproxy-centos-6/
The same procedure has worked fine on many other servers running CentOS 6.

John Quick
Smartvox Limited
Web: www.smartvox.co.uk




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





 

-- 

Mit freundlichen Grüßen

Muhammad Shahzad
---
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN:   shari_78...@hotmail.com
Email:   shaherya...@googlemail.com 

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


Re: [OpenSIPS-Users] [OpenSIPS-Devel] [DROUTING] Crash on use_next_gw/get_gw_by_id

2013-05-20 Thread Bogdan-Andrei Iancu
Ups, sorry...here is the proper patch.

Regards,

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


On 05/20/2013 07:40 PM, Ronald Cepres wrote:
> Hi Bogdan,
>
> Thanks for the reply. However, the patch that is attached is empty (0
> bytes and doesn't contain anything).
>
> Regards,
>
>
> On Tue, May 21, 2013 at 12:36 AM, Bogdan-Andrei Iancu
> mailto:bog...@opensips.org>> wrote:
>
> Hello,
>
> Thanks to the help in debugging this, the bug was found and a
> patch is available for testing (see attached). Please have it
> tested and let me know if it fixes the problem.
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
>
> On 05/16/2013 07:28 PM, Ronald Cepres wrote:
>>
>> Drouting crashes when selecting next gateway. Did a little
>> investigation, and FWIW the next gateway's carrier status is
>> disabled but the carrier's only gateway is enabled. Looked at the
>> backtrace of the core dump, and found that it crashed while
>> comparing two strings on get_gw_by_id called by use_next_gw. The
>> strings compared were apparently GW ID strings.
>>
>> I attached the GDB btfull logs (replaced some sensitive info with
>> dummy text) for reference. Take note that 'dont optimize' flag
>> was not set so some of the values were optimized and the crash
>> happened randomly so I can't actually reproduce the crash.
>>
>> I'm using Opensips 1.9 using this source
>> tarball: 
>> http://opensips.org/pub/opensips/latest/src/opensips-1.9.0_src.tar.gz
>>
>>
>> -- 
>>
>> Regards,
>>
>> Ronald Cepres
>>
>>
>> ___
>> Devel mailing list
>> de...@lists.opensips.org 
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
>
>
>
> -- 
>
> Ronald Cepres
> Network Operations Center
> Net Voip Communications, Inc.
>
>
> This message contains confidential information and is intended only
> for the individual named. If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail. Please notify
> the sender immediately by e-mail if you have received this e-mail by
> mistake and delete this e-mail from your system. E-mail transmission
> cannot be guaranteed to be secure or error-free as information could
> be intercepted, corrupted, lost, destroyed, arrive late or incomplete,
> or contain viruses. The sender therefore does not accept liability for
> any errors or omissions in the contents of this message, which arise
> as a result of e-mail transmission. If verification is required please
> request a hard-copy version. Net Voip Communications, Inc., 2721
> Forsyth Rd #256, Winter park, FL 32792. www.netvoipcommunications.com
> 
>
Index: modules/drouting/drouting.c
===
--- modules/drouting/drouting.c	(revision 10023)
+++ modules/drouting/drouting.c	(working copy)
@@ -1044,13 +1044,23 @@
 			if (avp) destroy_avp(avp);
 		}
 
-		/* remove old gw ID */
+		/* remove old gw ID and search next one */
 		avp = NULL;
 		do {
 			if (avp) destroy_avp(avp);
 			avp = search_first_avp(gw_id_avp.type, gw_id_avp.name, NULL, 0);
 		}while (avp && (avp->flags&AVP_VAL_STR)==0 );
-		if (avp) destroy_avp(avp);
+		if (!avp) {
+			LM_WARN("no GWs found at all -> have you done do_routing in script ?? \n");
+			return -1;
+		}
+		do {
+			if (avp) destroy_avp(avp);
+			avp = search_first_avp(gw_id_avp.type, gw_id_avp.name, NULL, 0);
+		}while (avp && (avp->flags&AVP_VAL_STR)==0 );
+		/* any GW found ? */
+		if (!avp)
+			goto rule_fallback;
 
 		/* search for the first RURI AVP containing a string */
 		avp_ru = NULL;
@@ -1066,12 +1076,7 @@
 		LM_DBG("new RURI set to <%.*s>\n", val.s.len,val.s.s);
 
 		/* get value for next gw ID from avp */
-		if (avp) {
-			get_avp_val(avp, &val);
-		} else {
-			/* if no other ID found, simply use the GW as good */
-			break;
-		}
+		get_avp_val(avp, &val);
 
 		/* we have an ID, so we can check the GW state */
 		lock_start_read( ref_lock );
@@ -2013,7 +2018,7 @@
 {
 	unsigned short j;
 	for ( j=0 ; jips_no ; j++)
-		if ( (pgwa->ports[j]==0 || pgwa->ports[j]==port) &&
+		if ( (pgwa->ports[j]==0 || port==0 || pgwa->ports[j]==port) &&
 		ip_addr_cmp( &pgwa->ips[j], ip) ) return 1;
 	return 0;
 }
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Regular expression matching problem

2013-05-20 Thread Bogdan-Andrei Iancu
Hi Diego,

The REGEXPs in OpenSIPS are POSIX compliant, so \d are not supported.
Try:"^(.)?[0-9]{4}$" .

Regards,

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


On 05/20/2013 06:57 PM, Diego Barberio wrote:
> Hi All,
>
> I'm having a really stupid issue with opensips 1.8.1. I need to do
> different logic if the request line user is a number of 4 digits that
> can be preceded by any character. So I created this regular
> expression: ^(.)?\d{4}$
> I've tested it on www.regular-expressions.info/javascriptexample.html
>  and works
> perfect, however on opensips it never matches.
>
> I've made the following test script:
>
>
> if($rU =~ '^(.)?\d{4}$') {
> xlog("MATCHES $rU\n");
> }else{
> xlog("NOT MATCHES $rU\n");
> }
>
> And I always get "NOT MATCHES":
>
> May 20 11:54:33 localhost /usr/local/sbin/opensips[22628]: NOT MATCHES
> *5522
> May 20 11:54:42 localhost /usr/local/sbin/opensips[22629]: NOT MATCHES
> 5522
>
> What am I doing wrong?
>
> Thanks
> Diego
>
>
> ___
> 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-Devel] [DROUTING] Crash on use_next_gw/get_gw_by_id

2013-05-20 Thread Ronald Cepres
Hi Bogdan,

Thanks for the reply. However, the patch that is attached is empty (0 bytes
and doesn't contain anything).

Regards,


On Tue, May 21, 2013 at 12:36 AM, Bogdan-Andrei Iancu
wrote:

> **
> Hello,
>
> Thanks to the help in debugging this, the bug was found and a patch is
> available for testing (see attached). Please have it tested and let me know
> if it fixes the problem.
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
>
> On 05/16/2013 07:28 PM, Ronald Cepres wrote:
>
>  Drouting crashes when selecting next gateway. Did a little
> investigation, and FWIW the next gateway's carrier status is disabled but
> the carrier's only gateway is enabled. Looked at the backtrace of the core
> dump, and found that it crashed while comparing two strings on get_gw_by_id
> called by use_next_gw. The strings compared were apparently GW ID strings.
>
> I attached the GDB btfull logs (replaced some sensitive info with dummy
> text) for reference. Take note that 'dont optimize' flag was not set so
> some of the values were optimized and the crash happened randomly so I
> can't actually reproduce the crash.
>
> I'm using Opensips 1.9 using this source tarball:
> http://opensips.org/pub/opensips/latest/src/opensips-1.9.0_src.tar.gz
>
>  --
>
> Regards,
>
>  Ronald Cepres
>
>
> ___
> Devel mailing 
> listDevel@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
>


-- 

Ronald Cepres
Network Operations Center
Net Voip Communications, Inc.


This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please notify
the sender immediately by e-mail if you have received this e-mail by
mistake and delete this e-mail from your system. E-mail transmission
cannot be guaranteed to be secure or error-free as information could
be intercepted, corrupted, lost, destroyed, arrive late or incomplete,
or contain viruses. The sender therefore does not accept liability for
any errors or omissions in the contents of this message, which arise
as a result of e-mail transmission. If verification is required please
request a hard-copy version. Net Voip Communications, Inc., 2721
Forsyth Rd #256, Winter park, FL 32792. www.netvoipcommunications.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Mediaproxy relay on CentOS 6 VPS

2013-05-20 Thread Muhammad Shahzad
I think you need to install iptables-devel package.

http://rpm.pbone.net/index.php3?stat=3&search=iptables-devel&srodzaj=3

Thank you.



On Mon, May 20, 2013 at 5:56 PM, John Quick wrote:

> On two different Virtual Private Servers running CentOS 6 I have hit the
> same problem.
> It is that when I try to start mediaproxy relay, it errors with:
> FATAL: Module ip_tables not found.
>
> Unfortunately, as it is a third party VPS, I do not know what
> virtualization
> environment is being used.
> Does anyone know how to debug this problem (before I re-image it with
> Debian/Ubuntu)?
>
> Mediaproxy version is 2.5.2 and I used my own instructions as outlined at
> http://kb.smartvox.co.uk/opensips/install-mediaproxy-centos-6/
> The same procedure has worked fine on many other servers running CentOS 6.
>
> John Quick
> Smartvox Limited
> Web: www.smartvox.co.uk
>
>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



-- 
Mit freundlichen Grüßen
Muhammad Shahzad
---
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: shari_78...@hotmail.com
Email: shaherya...@googlemail.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [OpenSIPS-Devel] [DROUTING] Crash on use_next_gw/get_gw_by_id

2013-05-20 Thread Bogdan-Andrei Iancu
Hello,

Thanks to the help in debugging this, the bug was found and a patch is
available for testing (see attached). Please have it tested and let me
know if it fixes the problem.

Regards,

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


On 05/16/2013 07:28 PM, Ronald Cepres wrote:
>
> Drouting crashes when selecting next gateway. Did a little
> investigation, and FWIW the next gateway's carrier status is disabled
> but the carrier's only gateway is enabled. Looked at the backtrace of
> the core dump, and found that it crashed while comparing two strings
> on get_gw_by_id called by use_next_gw. The strings compared were
> apparently GW ID strings.
>
> I attached the GDB btfull logs (replaced some sensitive info with
> dummy text) for reference. Take note that 'dont optimize' flag was not
> set so some of the values were optimized and the crash happened
> randomly so I can't actually reproduce the crash.
>
> I'm using Opensips 1.9 using this source
> tarball: http://opensips.org/pub/opensips/latest/src/opensips-1.9.0_src.tar.gz
>
>
> -- 
>
> Regards,
>
> Ronald Cepres
>
>
> ___
> Devel mailing list
> de...@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [OpenSIPS-Devel] Status of OpenSIPS repository

2013-05-20 Thread Muhammad Shahzad
OK, many thanks. I will file bugs at source forge hopefully tonight.

Thank you.



On Mon, May 20, 2013 at 5:57 PM, Răzvan Crainea  wrote:

> Hi, Muhammad!
>
> We are working on this as we speak. According to our schedule[1], the
> ticketing interface will be complete migrating until 24th of May. Until
> further notice, you should continue to use the SourceForge interface[2].
> We will be back later with further updates.
>
> [1] 
> http://www.opensips.org/About/**GitHub-Migration
> [2] 
> http://sourceforge.net/p/**opensips/_list/tickets
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.**com 
>
>
> On 05/20/2013 12:45 PM, Muhammad Shahzad wrote:
>
>> OpenSIPS repo is frozen since May 08, 2013. Meanwhile i did couple of
>> important production upgrades to version 1.9 rev. 10024 and found a
>> couple of critical bugs. I just wonder if we still have source-forge
>> interface to report bugs? And for how long repository will remain locked
>> for migration to Github? The bugs i found and want to report are, (very
>> brief summary, will provide detailed info in bug reporting interface),
>>
>> 1. OpenSIPS crashes when Linphone on Android with push notification
>> enabled registers. Crash happens around add_rcv_param("1") method,
>> possibly due to memory corruption.
>>
>> 2. RTPProxy (offer / answer mechanism) does not work on serialized
>> branches.
>>
>> Thank you.
>>
>>
>> --
>> Mit freundlichen Grüßen
>> Muhammad Shahzad
>> --**-
>> CISCO Rich Media Communication Specialist (CRMCS)
>> CISCO Certified Network Associate (CCNA)
>> Cell: +49 176 99 83 10 85
>> MSN: shari_78...@hotmail.com 
>> > >
>> Email: shaherya...@googlemail.com 
>> > >
>>
>>
>> __**_
>> Devel mailing list
>> de...@lists.opensips.org
>> http://lists.opensips.org/cgi-**bin/mailman/listinfo/devel
>>
>>


-- 
Mit freundlichen Grüßen
Muhammad Shahzad
---
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: shari_78...@hotmail.com
Email: shaherya...@googlemail.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Regular expression matching problem

2013-05-20 Thread Diego Barberio
Hi All,

I'm having a really stupid issue with opensips 1.8.1. I need to do
different logic if the request line user is a number of 4 digits that can
be preceded by any character. So I created this regular expression:
^(.)?\d{4}$
I've tested it on www.regular-expressions.info/javascriptexample.html and
works perfect, however on opensips it never matches.

I've made the following test script:


if($rU =~ '^(.)?\d{4}$') {
xlog("MATCHES $rU\n");
}else{
xlog("NOT MATCHES $rU\n");
}

And I always get "NOT MATCHES":

May 20 11:54:33 localhost /usr/local/sbin/opensips[22628]: NOT MATCHES
*5522
May 20 11:54:42 localhost /usr/local/sbin/opensips[22629]: NOT MATCHES 5522

What am I doing wrong?

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


Re: [OpenSIPS-Users] [OpenSIPS-Devel] Status of OpenSIPS repository

2013-05-20 Thread Răzvan Crainea

Hi, Muhammad!

We are working on this as we speak. According to our schedule[1], the 
ticketing interface will be complete migrating until 24th of May. Until 
further notice, you should continue to use the SourceForge interface[2].

We will be back later with further updates.

[1] http://www.opensips.org/About/GitHub-Migration
[2] http://sourceforge.net/p/opensips/_list/tickets

Best regards,

Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 05/20/2013 12:45 PM, Muhammad Shahzad wrote:

OpenSIPS repo is frozen since May 08, 2013. Meanwhile i did couple of
important production upgrades to version 1.9 rev. 10024 and found a
couple of critical bugs. I just wonder if we still have source-forge
interface to report bugs? And for how long repository will remain locked
for migration to Github? The bugs i found and want to report are, (very
brief summary, will provide detailed info in bug reporting interface),

1. OpenSIPS crashes when Linphone on Android with push notification
enabled registers. Crash happens around add_rcv_param("1") method,
possibly due to memory corruption.

2. RTPProxy (offer / answer mechanism) does not work on serialized branches.

Thank you.


--
Mit freundlichen Grüßen
Muhammad Shahzad
---
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: shari_78...@hotmail.com 
Email: shaherya...@googlemail.com 


___
Devel mailing list
de...@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel



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


[OpenSIPS-Users] Mediaproxy relay on CentOS 6 VPS

2013-05-20 Thread John Quick
On two different Virtual Private Servers running CentOS 6 I have hit the
same problem.
It is that when I try to start mediaproxy relay, it errors with:
FATAL: Module ip_tables not found.

Unfortunately, as it is a third party VPS, I do not know what virtualization
environment is being used.
Does anyone know how to debug this problem (before I re-image it with
Debian/Ubuntu)?

Mediaproxy version is 2.5.2 and I used my own instructions as outlined at 
http://kb.smartvox.co.uk/opensips/install-mediaproxy-centos-6/
The same procedure has worked fine on many other servers running CentOS 6.

John Quick
Smartvox Limited
Web: www.smartvox.co.uk




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


Re: [OpenSIPS-Users] OpenSIPS failover

2013-05-20 Thread Nick Khamis
Sorry for the top post

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


Re: [OpenSIPS-Users] OpenSIPS failover

2013-05-20 Thread Nick Khamis
Hello Juned,

We have the same setup at our location. As Dārayavahush tried to
explain Hearbeat is old and is replaced by OpenAIS. Please see:
http://www.gossamer-threads.com/lists/linuxha/users/63623. Enterprise
OS such as Novel do not even include Heartbeat as a package anymore,
and last I checked RHEL is working on including OpenAIS in there
source tree and replace their own clustering platform CMAN.

There is already an Asterisk OCF that can be retrofitted for OpenSIPS found at:
https://github.com/ClusterLabs/resource-agents/blob/master/heartbeat/asterisk

Kind Regards,

Nick.



On 5/20/13, juned  wrote:
> Hi Rajib deka,
>
> I am also want to use sipsak to trigger the heartbeat for service level
> health checking but i didn't find any good documentation in which this many
> things are explained properly.
>
> So i want your help to monitor service level health checking. can you
> provide any sample configuration or related link  in which this things are
> described well.
>
> THanks
>
>
>
> --
> View this message in context:
> http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-failover-tp4997077p7586400.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
>

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


Re: [OpenSIPS-Users] use of is_from_gw directive from drouting module.

2013-05-20 Thread Bogdan-Andrei Iancu


  
  
Hello Miguel,

Please apply and attached patch (recompile + reinstall) with the
is_from_gw("2","n") format.

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

On 05/20/2013 11:37 AM, Miguel J. López Valverde wrote:

  
  
  Hello Bogdan-Andrei,
  
  Thanyou very much for this information, I had not undertood the
  information give on manuals.
  
  Enyway, I tried also this forms and did no work correctly:
  
      dr_gateways have the next information:
  
  mysql> select * from dr_gateways;
++-+--++---++---++---+
  | id | gwid    | type | address    | strip |
  pri_prefix | attrs | probe_mode | description   |
++-+--++---++---++---+
  |  1 | Provider_0  |    2 | xxx.xxx.xxx.xxx| 0 |
  NULL   | NULL  |  0 |Provider_0_incoming|
  
  
  With the is_from_gw("2","n") or dr_is_gw("$si","2","n") directives
  did the same and do not identify the carrier correctly. With the
  dr_is_gw directive, the next information appeared in the log file:
  
  ERROR:drouting:_is_dr_uri_gw: invalid sip uri
  
  
  Can I do some more testing?,
  
  Best Regards.
  
  

  

  -- 
  
  
  
  -
  Sus datos de carácter
  personal (nombre, apellidos, dirección postal y de
  correo electrónico, etc.) son tratados para la gestión
  de su relación con la Entidad, así como para el envío
  de información sobre nuestra actividad y la de
  terceros relacionadas con la actividad de Consulting
  Smartic Solutions, S.L., CIF: B85130037, C/Pº de la
  Castellana, 135, 7ª planta, 28046 Madrid. Usted puede
  ejercer sus derechos de acceso, rectificación,
  cancelación y oposición dirigiéndose por escrito, con
  copia de un documento que acredite su identidad, a la
  dirección info (arroba) smartic.es.
  Este mensaje puede
  contener información confidencial. Si usted no es su
  destinatario, no debe leerlo, copiarlo, distribuirlo,
  ni hacer uso de la información que contiene. En este
  caso, por favor, llámenos o comuníquenoslo por escrito
  y borre este mensaje de su sistema.
  - 
  

  

  
  -Mensaje original-
  De: Bogdan-Andrei Iancu 
  Para: "\"Miguel J.\" López Valverde" 
  Cc: OpenSIPS users mailling list 
  Asunto: Re: [OpenSIPS-Users] use of is_from_gw directive
  from drouting module.
  Fecha: Fri, 17 May 2013 13:57:38 +0300
  
  Hello Miguel,
  
  The "3" from the is_from_gw() matches the "type" column" from
the dr_gateways table - it has nothing to do with the dr_group
table.
  
  Regards,
  Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

  
  On 05/16/2013 11:18 PM, Miguel J. López Valverde wrote: 
   Dear Bogdan-Andrei

I've tried to asign a new group for this providers, (group 3, I
can't asign it to group 0 because this group is used by another
type of users). I've filled dr_groups registers with this new
information, (dr_gateways was filled before, on 1.8 release):

select * from dr_gateways;
++-+--++---++---++---+
| id | gwid    | type | address    | strip |
pri_prefix | attrs | probe_mode | description   |
++-+--++---++---++---+
|  1 | Provider_0  |    2 | XXX.XXX.XXX.XXX| 0 |
NULL   | NULL  |  0 | Provider0_incoming|



select * from dr_groups;
++---+-+-+---+
| id | username  | domain  | groupid |
description   |
++---+-+-+---+
| 24 | Provider_0    |  XXX.XXX.XXX.XXX|   3 |
Provider0_incoming    |


And the new configuration:

    } else if (is_from_gw()) {
    # request 

Re: [OpenSIPS-Users] Error 404 not here

2013-05-20 Thread Bogdan-Andrei Iancu
Change the SIP clients you are using :) - find ones to follow the
RFC3261 :).

What you attached is not a trace, but s screenshot of your wireshark -
useless ; what I need is the actual pcap file.

Regards,

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


On 05/18/2013 08:36 AM, sermj 2012 wrote:
> Dear Bodgan,
>
> Thank you  very much for your prompt response.
>
> can you please advice me ,Is there any way to overcome this issue.
> I am, attaching sip capture using wireshark.
>
> Thanks in advance
>
>
> On Fri, May 17, 2013 at 9:26 PM, Bogdan-Andrei Iancu
> mailto:bog...@opensips.org>> wrote:
>
> Well, the traces are not complete - I do not see the starting
> INVITE. Anyhow, looking that BYE, I see it has no Route hdr, thing
> that confirms my suspicion on a bogus UA you are using.
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
>
> On 05/17/2013 04:22 PM, sermj 2012 wrote:
>> Dear Bodgan,
>>
>> Thank you very much for your reply,
>>
>> Please find below the attachments, which are SIP captures (using
>> ngrep). i hope this will give you a more complete picture.
>>
>> I believe your suspection, Please suggest me to solve this issue.
>>
>> I hope you could help me.
>>
>>
>> On Fri, May 17, 2013 at 4:25 PM, Bogdan-Andrei Iancu
>> mailto:bog...@opensips.org>> wrote:
>>
>> Hello,
>>
>> Script look ok - what I suspect is that one of the end points
>> messes up the Record-Routes in the messages, so the
>> sequential requests (ACK, BYE) cannot be properly routed.
>>
>> To confirm this I need to see a SIP capture (ngrep) for the
>> whole call, showing full messages (what you had in the first
>> email was just an opensips log).
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developer
>> http://www.opensips-solutions.com
>>
>>
>> On 05/16/2013 02:39 PM, sermj 2012 wrote:
>>> Dear Bodgan,
>>>
>>> Thank you for your fast response.
>>>
>>> Ya i am using default configuration file (opensips.cfg).
>>> below find the attachment for the same.
>>>
>>> And i am getting this '404 not here' response for the SIP
>>> request  'BYE' ,which you can see in previous message
>>> attachment file. Where 192.168.2.40 is my Opensips server ,
>>> 192. 168.2.97 and 192.168.2.98 are Wi-Fi enabled VoIP clients.
>>>
>>> In this calling process,while after received the call, in
>>> callee its showing like 'waiting for ACK'.
>>> But the SMS is working fine with the same configurations.
>>>  
>>> awaiting your reply,
>>>
>>> I hope you could help me.
>>>
>>>
>>> On Thu, May 16, 2013 at 2:00 PM, Bogdan-Andrei Iancu
>>> mailto:bog...@opensips.org>> wrote:
>>>
>>> Hello,
>>>
>>> For what SIP requests do you get the "404 not here"
>>> reply ? Also, are you using the default opensips cfg file ?
>>>
>>> Regards,
>>>
>>> Bogdan-Andrei Iancu
>>> OpenSIPS Founder and Developer
>>> http://www.opensips-solutions.com
>>>
>>>
>>> On 05/16/2013 10:33 AM, sermj 2012 wrote:
 Hi All,

 My VoIP clients are registerd with opensips.
 When i tried to call other end client, i can hear only
 one way audio in clients (In caller),somewhere is going
 wrong and i am not getting audio (Voice) in both sides.
 By using tshark tracer i can see there is an '404 not
 here' status code.

 PS: I am working under standalone network
 infrastructure, and VoIP phones are Wi-Fi enabled.
 I just reinstalled my operating system (Ubuntu 10.04)
 and Opensips for several times,but unable to resolve
 this issue.

 what may be the reason for this '404 Not here' issue?
 and how can i solve it?
 Please help me, i have just stuck with this issue from
 last 15 days.

 Find the attachment, which is sip trace file.

 I hope you could help me...


 ___
 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] Status of OpenSIPS repository

2013-05-20 Thread Muhammad Shahzad
OpenSIPS repo is frozen since May 08, 2013. Meanwhile i did couple of
important production upgrades to version 1.9 rev. 10024 and found a couple
of critical bugs. I just wonder if we still have source-forge interface to
report bugs? And for how long repository will remain locked for migration
to Github? The bugs i found and want to report are, (very brief summary,
will provide detailed info in bug reporting interface),

1. OpenSIPS crashes when Linphone on Android with push notification enabled
registers. Crash happens around add_rcv_param("1") method, possibly due to
memory corruption.

2. RTPProxy (offer / answer mechanism) does not work on serialized branches.

Thank you.


-- 
Mit freundlichen Grüßen
Muhammad Shahzad
---
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: shari_78...@hotmail.com
Email: shaherya...@googlemail.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Media-Proxy Segfault on startup [error 4 in libpthread-2.15.so]

2013-05-20 Thread Saúl Ibarra Corretgé

On May 14, 2013, at 10:10 AM, arra wrote:

> a libgcrypt11 package where I can download it,I think I need a web link to
> download it ,thank you!
> 

You can get the 'ubuntu0.1' packages for your architecture from here: 
http://ag-projects.com/ubuntu/pool/main/libg/libgcrypt11/

--
Saúl Ibarra Corretgé
AG Projects




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


Re: [OpenSIPS-Users] OpenSIPS failover

2013-05-20 Thread juned
Hi Rajib deka,

I am also want to use sipsak to trigger the heartbeat for service level
health checking but i didn't find any good documentation in which this many
things are explained properly.

So i want your help to monitor service level health checking. can you
provide any sample configuration or related link  in which this things are
described well.

THanks



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-failover-tp4997077p7586400.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] Media-Proxy Segfault on startup [error 4 in libpthread-2.15.so]

2013-05-20 Thread arllllra
a libgcrypt11 package where I can download it,I think I need a web link to
download it ,thank you!



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Media-Proxy-Segfault-on-startup-error-4-in-libpthread-2-15-so-tp7580614p7586306.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 failover

2013-05-20 Thread juned
Hi Jacek Konieczny,

it good to handle everything from one place.

I want to use *pacemaker* with *heartbeat* to control and monitor different
services like OpenSIPS,FreePBX etc. it would be great if you can provide any
sample configuration for that.

Thanks & Regards
juned



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-failover-tp4997077p7586327.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] use of is_from_gw directive from drouting module.

2013-05-20 Thread Miguel J.
Hello Bogdan-Andrei,

Thanyou very much for this information, I had not undertood the
information give on manuals.

Enyway, I tried also this forms and did no work correctly:

dr_gateways have the next information:

mysql> select * from dr_gateways;
++-+--++---++---++---+
| id | gwid| type | address| strip | pri_prefix
| attrs | probe_mode | description   |
++-+--++---++---++---+
|  1 | Provider_0  |2 | xxx.xxx.xxx.xxx| 0 | NULL
| NULL  |  0 |Provider_0_incoming|


With the is_from_gw("2","n") or dr_is_gw("$si","2","n") directives did
the same and do not identify the carrier correctly. With the dr_is_gw
directive, the next information appeared in the log file:

ERROR:drouting:_is_dr_uri_gw: invalid sip uri 

Can I do some more testing?,

Best Regards.

-- 



-
Sus datos de carácter personal (nombre, apellidos, dirección postal y de
correo electrónico, etc.) son tratados para la gestión de su relación
con la Entidad, así como para el envío de información sobre nuestra
actividad y la de terceros relacionadas con la actividad de Consulting
Smartic Solutions, S.L., CIF: B85130037, C/Pº de la Castellana, 135, 7ª
planta, 28046 Madrid. Usted puede ejercer sus derechos de acceso,
rectificación, cancelación y oposición dirigiéndose por escrito, con
copia de un documento que acredite su identidad, a la dirección info
(arroba) smartic.es.
Este mensaje puede contener información confidencial. Si usted no es su
destinatario, no debe leerlo, copiarlo, distribuirlo, ni hacer uso de la
información que contiene. En este caso, por favor, llámenos o
comuníquenoslo por escrito y borre este mensaje de su sistema.
- 

-Mensaje original-
De: Bogdan-Andrei Iancu 
Para: "\"Miguel J.\" López Valverde" 
Cc: OpenSIPS users mailling list 
Asunto: Re: [OpenSIPS-Users] use of is_from_gw directive from drouting
module.
Fecha: Fri, 17 May 2013 13:57:38 +0300

Hello Miguel,

The "3" from the is_from_gw() matches the "type" column" from the
dr_gateways table - it has nothing to do with the dr_group table.

Regards,

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


On 05/16/2013 11:18 PM, Miguel J. López Valverde wrote: 

> Dear Bogdan-Andrei
> 
> I've tried to asign a new group for this providers, (group 3, I can't
> asign it to group 0 because this group is used by another type of
> users). I've filled dr_groups registers with this new information,
> (dr_gateways was filled before, on 1.8 release):
> 
> select * from dr_gateways;
> ++-+--++---++---++---+
> | id | gwid| type | address| strip |
> pri_prefix | attrs | probe_mode | description   |
> ++-+--++---++---++---+
> |  1 | Provider_0  |2 | XXX.XXX.XXX.XXX| 0 | NULL
> | NULL  |  0 | Provider0_incoming|
> 
> 
> 
> select * from dr_groups;
> ++---+-+-+---+
> | id | username  | domain  | groupid | description
> |
> ++---+-+-+---+
> | 24 | Provider_0|  XXX.XXX.XXX.XXX|   3 |
> Provider0_incoming|
> 
> 
> And the new configuration:
> 
> } else if (is_from_gw()) {
> # request comes from gw
> setflag(21);
> 
> } else if (is_from_gw("3","n")) {
> # request comes from gw with strange udp-ports
> setflag(21);
> }
> 
> With this configuration, the is_from_gw() directive is working right
> for providers without dr_groups db information and using 5060 port,
> but the is_from_gw("3","n") aren't working, it don't match with
> providers of group 3 and working with ports diferents of 5060.
> 
> ¿Are this configuration wrong?.
> 
> Thankyou very much for your help.
> 
> 
> -- 
> 
> 
> 
> -
> Sus datos de carácter personal (nombre, apellidos, dirección postal y
> de correo electrónico, etc.) son tratados para la gestión de su
> relación con la Entidad, así como para el envío de información sobre
> nuestra actividad y la de terceros relacionadas con la actividad de
> Consulting Smartic Solutions, S.L., CIF: B85130037, C/Pº de la
> Castellana, 135, 7ª planta, 28046 Madrid. Usted puede ejercer sus
> derechos de acceso, rectificación, cancelación y oposición
> dirigiéndose por escrito, con copia de un documento que acredite su
> identidad, a la dirección info (arroba) smartic.es.
> Este mensaje puede contener información confidencial. Si usted no es
> su destinatario, no debe leerlo, copiarlo, distribuirlo, ni hacer uso
> de la i