[OpenSIPS-Users] OpenSIPScrashing after specific interval of time

2014-06-04 Thread Juned Khan
Hi All.

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

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

I am using

OpenSIPS 1.7.1
Debian squeeze 6.0.9
RAM : 16GB


Here is the opensips log

http://pastebin.com/5YnvF6ub

-- 
Thanks,
Juned Khan


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


[OpenSIPS-Users] Script variables

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

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


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

2014-06-04 Thread Pasan Meemaduma
Hi Bogdan,

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

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


:)


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


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

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

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




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


Hi Pasan,

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

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

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

Hi Guys,
>
>
>I recently migrate a opensips 1.5.3 server to a 1.10.1. Everything went fine 
>expect I couldn't bring up opensips with old location data it crashes 
>everytime there's data in location table, I have even fix the column count 
>before starting opensip

[OpenSIPS-Users] db_http expectations

2014-06-04 Thread Tito Cumpen
Group,

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


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

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

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


Thanks,

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


Re: [OpenSIPS-Users] TextDB and Registrant issues

2014-06-04 Thread Ovidiu Sas
The tables are automatically generated and that's the initial layout.
There might be an issue with opensipsctl tool while dealing with
dbtext tables or in your case, since your table was empty, you did
something wrong (like having the DBENGINE set to something else then
TEXT).
If you populate dbtext by hand or using the pi_http module, it will work fine.

Your previous logs shows that your dbtext file has no records and the
logs confirmed that.
You posted an output of 'opensipsctl db show registrant' that doesn't
look at all as a dbtext output.
My guess here is that you use opensipsctl to populate a db different
then dbtext and therefore no records in your dbtext registrant file.


Regards,
Ovidiu Sas

On Wed, Jun 4, 2014 at 3:21 PM, Kurtis Heimerl  wrote:
> The tables were automatically generated, and there are definitely
> outstanding issues with textdb that I ran into:
> http://sourceforge.net/p/openser/bugs/593/
>
>
> On Wed, Jun 4, 2014 at 6:59 AM, Ovidiu Sas  wrote:
>>
>> Hello,
>>
>> There are no issues with dbtext.  Please read the dbtext documentation
>> and use the proper format for the table.
>>
>> Regards,
>> Ovidiu Sas
>>
>> On Tue, Jun 3, 2014 at 11:36 PM, Kurtis Heimerl 
>> wrote:
>> > For the webcrawlers, I was was able to resolve this by switching to
>> > postgres. I guess textdb has some issues.
>> >
>> >
>> > On Fri, May 30, 2014 at 6:23 PM, Kurtis Heimerl 
>> > wrote:
>> >>
>> >> Hey List,
>> >>
>> >> Here's my current conundrum:
>> >> I have opensips running with textdb pointed at
>> >> /usr/local/etc/opensips/dbtext. I've enabled the uac_registrant module
>> >> and
>> >> pointed it at the same directory (though it should be noted that this
>> >> was
>> >> done manually, as it wouldn't use the default for some reason).
>> >>
>> >> I've put a registrant into the db:
>> >> sudo opensipsctl db show registrant
>> >> [1, 'sip:sip.DOMAIN.com', '', 'sip:n...@sip.domain.com', '', 'NAME',
>> >> 'PASSWORD', 'sip:opensips@localhost', '', 600, '']
>> >>
>> >> However, the uac_registrant module doesn't seem to read this:
>> >> sudo opensipsctl fifo reg_reload
>> >> May 31 01:20:27 ip-172-31-27-53 /usr/sbin/opensips[6034]:
>> >> INFO:uac_registrant:load_reg_info_from_db: loading [0] records from db
>> >>
>> >> This is actually confirmed by actually going through the textdb itself,
>> >> there's nothing in the registrant table!
>> >> cat dbtext/registrant
>> >> id(int,auto) registrar(string) proxy(string,null) aor(string)
>> >> third_party_registrant(string,null) username(string,null)
>> >> password(string,null) binding_URI(string) binding_params(string,null)
>> >> expiry(int,null) forced_socket(string,null)
>> >>
>> >> What's going on here? I've double checked that they are reading from
>> >> the
>> >> same db, and they should be, unless there's another one somewhere
>> >> that's
>> >> outside of configuration? The log seems to think it's fine:
>> >> May 30 22:00:28 ip-172-31-27-53 /usr/sbin/opensips[6033]:
>> >> INFO:db_text:dbt_init: using database at:
>> >> /usr/local/etc/opensips/dbtext
>> >>
>> >> Any suggestions/directions would be appreciated.
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>> > ___
>> > Users mailing list
>> > Users@lists.opensips.org
>> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>> >
>>
>>
>>
>> --
>> VoIP Embedded, Inc.
>> http://www.voipembedded.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
>



-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

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


Re: [OpenSIPS-Users] TextDB and Registrant issues

2014-06-04 Thread Kurtis Heimerl
The tables were automatically generated, and there are definitely
outstanding issues with textdb that I ran into:
http://sourceforge.net/p/openser/bugs/593/


On Wed, Jun 4, 2014 at 6:59 AM, Ovidiu Sas  wrote:

> Hello,
>
> There are no issues with dbtext.  Please read the dbtext documentation
> and use the proper format for the table.
>
> Regards,
> Ovidiu Sas
>
> On Tue, Jun 3, 2014 at 11:36 PM, Kurtis Heimerl 
> wrote:
> > For the webcrawlers, I was was able to resolve this by switching to
> > postgres. I guess textdb has some issues.
> >
> >
> > On Fri, May 30, 2014 at 6:23 PM, Kurtis Heimerl 
> wrote:
> >>
> >> Hey List,
> >>
> >> Here's my current conundrum:
> >> I have opensips running with textdb pointed at
> >> /usr/local/etc/opensips/dbtext. I've enabled the uac_registrant module
> and
> >> pointed it at the same directory (though it should be noted that this
> was
> >> done manually, as it wouldn't use the default for some reason).
> >>
> >> I've put a registrant into the db:
> >> sudo opensipsctl db show registrant
> >> [1, 'sip:sip.DOMAIN.com', '', 'sip:n...@sip.domain.com', '', 'NAME',
> >> 'PASSWORD', 'sip:opensips@localhost', '', 600, '']
> >>
> >> However, the uac_registrant module doesn't seem to read this:
> >> sudo opensipsctl fifo reg_reload
> >> May 31 01:20:27 ip-172-31-27-53 /usr/sbin/opensips[6034]:
> >> INFO:uac_registrant:load_reg_info_from_db: loading [0] records from db
> >>
> >> This is actually confirmed by actually going through the textdb itself,
> >> there's nothing in the registrant table!
> >> cat dbtext/registrant
> >> id(int,auto) registrar(string) proxy(string,null) aor(string)
> >> third_party_registrant(string,null) username(string,null)
> >> password(string,null) binding_URI(string) binding_params(string,null)
> >> expiry(int,null) forced_socket(string,null)
> >>
> >> What's going on here? I've double checked that they are reading from the
> >> same db, and they should be, unless there's another one somewhere that's
> >> outside of configuration? The log seems to think it's fine:
> >> May 30 22:00:28 ip-172-31-27-53 /usr/sbin/opensips[6033]:
> >> INFO:db_text:dbt_init: using database at: /usr/local/etc/opensips/dbtext
> >>
> >> Any suggestions/directions would be appreciated.
> >>
> >>
> >>
> >>
> >
> >
> > ___
> > Users mailing list
> > Users@lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
>
>
> --
> VoIP Embedded, Inc.
> http://www.voipembedded.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


[OpenSIPS-Users] OpenSIPS Chicago Summit - Speakers & Tutorials - part 1

2014-06-04 Thread Bogdan-Andrei Iancu
*OpenSIPS Summit, 4th of August 2014, Chicago, US, collocated with 
ClueCon Conference

*


*Flavio E. Goncalves - */"Using OpenSIPS as a single entry point for a 
SIP network"/


Nowadays, it is becoming harder to protect VoIP providers. The 
complexity of the environment makes it easy to miss a security breach. 
Patching all equipment is usually not viable with the current 
workmanship. What OpenSIPS can do to help in this battle? In this 
presentation, we are going to cover: Using OpenSIPS as a single point of 
protection.


Flavio E. Goncalves is a CTO of SipPulse, a company dedicated to 
implementing solutions for VoIP providers and High Volume Telephony. He 
is the author of the book Building Telephony Systems with OpenSIPS.




*Norman Brandinger - "*/Advanced SIP Routing using OpenSIPS"/

The goal of this presentation will be to provide you enough information 
to be able to make an informed business decision regarding which 
advanced SIP routing module (or modules) to use.  Business rules for 
outbound calls will likely be different than for inbound calls. An 
understanding of the modules used for advanced SIP routing will allow 
you to make the best decision based on your particular use case.


Norman Brandinger is an expert in the configuration and use of OpenSIPS, 
FreeSWITCH and related VoIP technologies. He has successfully deployed 
VoIP solutions in the Mobile App, Hospitality and Financial Services 
sectors resulting in new business opportunities and reduced operating 
expenses. Norm is currently the VP of Engineering for textPlus.




And more speakers and even more topics to follow. See 
http://www.opensips.org/Community/Summit-2014Chicago-Schedule



To *register for the event*, see
http://www.opensips.org/Community/Summit-Registration

Take advantage and use the discount code *"EARLYBIRD-OPENSIPS-US"* !

CluCon info:
http://www.cluecon.com 


See you in Chicago,

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

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


Re: [OpenSIPS-Users] TextDB and Registrant issues

2014-06-04 Thread Ovidiu Sas
Hello,

There are no issues with dbtext.  Please read the dbtext documentation
and use the proper format for the table.

Regards,
Ovidiu Sas

On Tue, Jun 3, 2014 at 11:36 PM, Kurtis Heimerl  wrote:
> For the webcrawlers, I was was able to resolve this by switching to
> postgres. I guess textdb has some issues.
>
>
> On Fri, May 30, 2014 at 6:23 PM, Kurtis Heimerl  wrote:
>>
>> Hey List,
>>
>> Here's my current conundrum:
>> I have opensips running with textdb pointed at
>> /usr/local/etc/opensips/dbtext. I've enabled the uac_registrant module and
>> pointed it at the same directory (though it should be noted that this was
>> done manually, as it wouldn't use the default for some reason).
>>
>> I've put a registrant into the db:
>> sudo opensipsctl db show registrant
>> [1, 'sip:sip.DOMAIN.com', '', 'sip:n...@sip.domain.com', '', 'NAME',
>> 'PASSWORD', 'sip:opensips@localhost', '', 600, '']
>>
>> However, the uac_registrant module doesn't seem to read this:
>> sudo opensipsctl fifo reg_reload
>> May 31 01:20:27 ip-172-31-27-53 /usr/sbin/opensips[6034]:
>> INFO:uac_registrant:load_reg_info_from_db: loading [0] records from db
>>
>> This is actually confirmed by actually going through the textdb itself,
>> there's nothing in the registrant table!
>> cat dbtext/registrant
>> id(int,auto) registrar(string) proxy(string,null) aor(string)
>> third_party_registrant(string,null) username(string,null)
>> password(string,null) binding_URI(string) binding_params(string,null)
>> expiry(int,null) forced_socket(string,null)
>>
>> What's going on here? I've double checked that they are reading from the
>> same db, and they should be, unless there's another one somewhere that's
>> outside of configuration? The log seems to think it's fine:
>> May 30 22:00:28 ip-172-31-27-53 /usr/sbin/opensips[6033]:
>> INFO:db_text:dbt_init: using database at: /usr/local/etc/opensips/dbtext
>>
>> Any suggestions/directions would be appreciated.
>>
>>
>>
>>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

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


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

2014-06-04 Thread Bogdan-Andrei Iancu

Hi Pasan,

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


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


Regards,

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

On 03.06.2014 06:34, Pasan Meemaduma wrote:

Hi Guys,

I recently migrate a opensips 1.5.3 server to a 1.10.1. Everything 
went fine expect I couldn't bring up opensips with old location data 
it crashes everytime there's data in location table, I have even fix 
the column count before starting opensips. when I delete all records 
from location table and then start opensips it works fine.


So now everytime I have to restart opensips I have to delete location 
table entries. Could you please check if this a bug, I have attach the 
debug trace here.


According to the debug log it gets a segfault while parsing location data.

CPU 2.3 GHz x 2
OS x64 bit debian 7.5

ii opensips 1.10.1-1~1 amd64very 
fast and configurable SIP server
ii  opensips-carrierroute-module 1.10.1-1~1
amd64Carrierroute module for OpenSIPS
ii  opensips-memcached-module 1.10.1-1~1amd64
Interface module to interact with a memcached server
ii  opensips-mysql-module 1.10.1-1~1amd64MySQL 
database connectivity module for OpenSIPS



Jun  3 12:25:32 [6982] DBG:db_mysql:db_mysql_str2val: converting 
STRING [xx)]
Jun  3 12:25:32 [6982] DBG:db_mysql:db_mysql_str2val: converting 
STRING [udp:xxx:5060]
Jun  3 12:25:32 [6982] DBG:db_mysql:db_mysql_str2val: converting 
DATETIME [2014-06-01 01:14:14]
Jun  3 12:25:32 [6982] DBG:db_mysql:db_mysql_str2val: converting 
STRING []
Jun  3 12:25:32 [6982] DBG:db_mysql:db_mysql_str2val: converting 
STRING [sip:xxx@xxx:5060]
Jun  3 12:25:32 [6982] DBG:db_mysql:db_mysql_str2val: converting 
DATETIME [2014-06-01 01:16:40]
Jun  3 12:25:32 [6982] DBG:db_mysql:db_mysql_str2val: converting 
DOUBLE [-1.00]
Jun  3 12:25:32 [6982] DBG:db_mysql:db_mysql_str2val: converting 
STRING [77baea9e4abc04810fc1992d56c7a2f4@xxx]
Jun  3 12:25:32 [6982] DBG:db_mysql:db_mysql_str2val: converting INT 
[88543]

Jun  3 12:25:32 [6982] DBG:db_mysql:db_mysql_str2val: converting INT [0]
Jun  3 12:25:32 [6982] DBG:db_mysql:db_mysql_str2val: converting INT [0]
Jun  3 12:25:32 [6982] DBG:db_mysql:db_mysql_str2val: converting 
STRING [FPBX-2.11.0(11.5.1)]
Jun  3 12:25:32 [6982] DBG:db_mysql:db_mysql_str2val: converting 
STRING [udp::5060]
Jun  3 12:25:32 [6982] DBG:db_mysql:db_mysql_str2val: converting 
DATETIME [2014-06-01 01:14:40]
Jun  3 12:25:32 [6982] DBG:usrloc:preload_udomain: loading records - 
cycle [1]
Jun  3 12:25:32 [6977] DBG:core:wait_status_code: read code 0 ? rc = 
0, errno=Success
Jun  3 12:25:32 [6977] INFO:core:daemonize: pre-daemon process exiting 
with -1

 already running.
Jun  3 12:25:32 [6979] DBG:core:handle_sigs: status = 11
Jun  3 12:25:32 [6979] INFO:core:handle_sigs: child process 6982 
exited by a signal 11

Jun  3 12:25:32 [6979] INFO:core:handle_sigs: core was not generated
Jun  3 12:25:32 [6979] INFO:core:handle_sigs: terminating due to SIGCHLD
Jun  3 12:25:32 [6995] INFO:core:sig_usr: signal 15 received
Jun  3 12:25:32 [6991] INFO:core:sig_usr: signal 15 received
Jun  3 12:25:32 [6996] INFO:core:sig_usr: signal 15 received
Jun  3 12:25:32 [6988] INFO:core:sig_usr: signal 15 received
Jun  3 12:25:32 [6994] INFO:core:sig_usr: signal 15 received
Jun  3 12:25:32 [6984] INFO:core:sig_usr: signal 15 received

Expecting an advice on this.

Thanks.

Pasan.


___
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] Help with dr_routing outside VoIP network

2014-06-04 Thread Bogdan-Andrei Iancu

Hi Michele,

What exactly do you mean by "i'm not able to forward correctly packets 
"- what is the exact problem you are facing ?


Regards,

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

On 30.05.2014 16:28, Michele Pinassi wrote:

Hi all,

this is my context:

VoIP NET 172.20.x.x
VoIP ROUTER 172.20.1.2
External NET 200.200.200.x

I use dr_route module to do dynamic routing:

main() {

[...]
 if($avp(dest)=="trunkmed") {
 route(trunkmed);
 }

 if($avp(dest)=="external") {

 route(pstn);
 }

 if($avp(dest)=="media") {

 route(mediabox);

[...]
}


route[trunkmed] {
 xlog("L_INFO","Route TRUNK MEDICINA [$fd/$fu/$rd/$ru/$si/]\n");

 if(route_to_carrier("trunkmed")) {
 t_on_failure("next_gw");
 t_relay();
 exit;
 }

}


"trunkmed" gw is outside VoIP network (200.200.200.2) and i'm not able
to forward correctly packets from VoIP devices to trunkmed GW: maybe i
have to nat/fix it ?

Any hint ?

Thanks, Michele



___
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] include extra config

2014-06-04 Thread Bogdan-Andrei Iancu

Hi Mike,

Yes, you can do that - see the "include_file" directive :
http://www.opensips.org/Documentation/Script-CoreParameters-1-11#toc57

Regards,

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

On 04.06.2014 11:40, Mike Claudi Pedersen wrote:
is it possible to include a part of the the cinfig from another file 
in the opensips.cfg..


what i want is to have the cfg or another file generated by another 
program, but it is only a small part of the cfg that needs to be 
edited everytime. so i would like to generate that part from another 
file and include that into opensips.cfg




___
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] include extra config

2014-06-04 Thread Xiaoqiang Zhou
use  m4 file.


2014-06-04 16:40 GMT+08:00 Mike Claudi Pedersen :

> is it possible to include a part of the the cinfig from another file in
> the opensips.cfg..
>
> what i want is to have the cfg or another file generated by another
> program, but it is only a small part of the cfg that needs to be edited
> everytime. so i would like to generate that part from another file and
> include that into opensips.cfg
>
>
> ___
> 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] Second call on transferred with B2B refer scenario

2014-06-04 Thread Santi Antón
Hi Bogdan,

Do you need my opensips.cfg? It seems very strange that this issue could be 
general, I think that maybe I'm making a mistake in opensips configuration.

Regards,

 
Santi Antón
 Responsable de operaciones

Tel. 902 520 520 ext 106
Fax. 93 589 14 90

santi.an...@quarea.com
 





 
902 520 520
www.quarea.com
Quarea ITC Management & Consulting
Su experto en Redes Voz-Datos IP: 
Asterisk, Cisco, Polycom, Colt Telecom
 



Este mensaje está dirigido únicamente a su destinatario. Contiene información 
CONFIDENCIAL sometida a secreto profesional o cuya divulgación está prohibida 
por la ley. Si ha recibido este mensaje por error, debe saber que su lectura, 
copia y uso no están autorizados. Le rogamos que nos lo comunique 
inmediatamente por esta misma vía y proceda a su destrucción. El correo 
electrónico vía Internet no permite asegurar la confidencialidad de los 
mensajes que se transmiten ni su integridad o correcta recepción. QUAREA no 
asume responsabilidad por estas circunstancias y se reserva el derecho a 
ejercer las acciones legales que le correspondan contra todo tercero que acceda 
de forma ilegítima al contenido de este mensaje y al de los ficheros contenidos 
en el mismo. Si el destinatario de este mensaje no consintiera la utilización 
del correo electrónico vía Internet y la grabación de los mensajes, rogamos lo 
ponga en nuestro conocimiento de forma inmediata.
De conformidad con la LOPD y la LSSICE, le informamos que su correo electrónico 
forma parte de nuestra BBDD de contactos con la finalidad de enviarle 
información de nuestros productos. Puede ejercer sus derechos de acceso, 
rectificación, cancelación y oposición dirigiendo un escrito a 
info...@quarea.com indicando en el asunto LOPD.






















-Mensaje original-
De: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] 
En nombre de Santi Antón
Enviado el: miércoles, 28 de mayo de 2014 9:35
Para: 'Bogdan-Andrei Iancu'; OpenSIPS users mailling list
Asunto: Re: [OpenSIPS-Users] Second call on transferred with B2B refer scenario

Hi Bogdan,

Yes, it is.

Thanks in advance,

 
Santi Antón


>-Mensaje original-
>De: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Enviado el: 
>miércoles, 28 de mayo de 2014 8:15
>Para: OpenSIPS users mailling list; Santi Antón
>Asunto: Re: [OpenSIPS-Users] Second call on transferred with B2B refer 
>scenario
>
>Hi,
>
>You mean the frame 38 in your trace, right ? Indeed the TO should have only 
>the URI, not the REPLACE stuff I will look into.
>
>Regards,
>
>Bogdan-Andrei Iancu
>OpenSIPS Founder and Developer
>http://www.opensips-solutions.com
>
>On 27.05.2014 17:10, Santi Antón wrote:
> Hello,
>
> I noticed that INVITE with Replaces header is built like this:
>
> INVITE sip:9442@172.16.50.131:5063 SIP/2.0
> Record-Route: 
> Via: SIP/2.0/UDP 172.16.53.59:5060;branch=z9hG4bK4867.fe529da6.0
> Via: SIP/2.0/UDP 172.16.53.59:5060;branch=z9hG4bK4867.ee529da6.0
> To: 
> sip:9442@172.16.53.59?Replaces=377952018%40172.16.51.138%3Bto-tag%3DB2
> B.124.358%3Bfrom-tag%3D741375670
> From: 
> ;tag=fde67a95c41efd29d5eb8ddaecdb
> abf0-9cb9
> CSeq: 4 INVITE
> Call-ID: B2B.345.6691153
> Max-Forwards: 69
> Content-Length: 376
> User-Agent: OpenSIPS (1.10.1-notls (x86_64/linux))
> Content-Type: application/sdp
> Supported: replaces, norefersub, extended-refer, timer, 
> X-cisco-serviceuri
> Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, 
> INFO, SUBSCRIBE
> Contact: 
>
>
> The replaces header is inside "To" header, is it correct? The examples I saw 
> the Replaces header has an independent header like next:
>
> F6 INVITE Transferee -> Transfer Target
>
> INVITE sips:482n4z24...@chicago.example.com;gr=8594958 SIP/2.0
> Via: SIP/2.0/TLS 192.0.2.4;branch=z9hG4bKnaslu82
> Max-Forwards: 70
> To: 
> From: ;tag=954
> Call-ID: kmzwdle3dl3d08
> CSeq: 41 INVITE
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY
> Supported: gruu, replaces, tdialog
> Contact: 
> Replaces: 592435881734450904;to-tag=9m2n3wq;from-tag=763231
> Content-Type: application/sdp
> Content-Length: ...
>
> Regards,
>
> Santi Antón
>
>
>> -Mensaje original-
>> De: Santi Antón
>> Enviado el: lunes, 26 de mayo de 2014 9:46
>> Para: 'users@lists.opensips.org'; 'Bogdan-Andrei Iancu'
>> Asunto: RV: [OpenSIPS-Users] Second call on transferred with B2B 
>> refer scenario
>>
>> Oh, I forget to attach the file. Next you can find a link to pcap.
>>
>> https://drive.google.com/file/d/0B3db2bUGbNDQWFIzSjhoVFFKVUk/edit?usp
>> =sharing
>>
>> Regards,
>>   
>> Santi Antón
>>
>>
>> -Mensaje original-
>> De: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Enviado el: 
>> jueves, 22 de mayo de 2014 18:29
>> Para: users@lists.opensips.org; Santi Antón
>> Asunto: Re: [OpenSIPS-Users] Second call on transferred with B2B 
>> refer scenario
>>
>> Hello Santi,
>>
>> There is nothing attached and it is not a good practice to have large 
>> attachments on the mailing lists (as you are flo

[OpenSIPS-Users] include extra config

2014-06-04 Thread Mike Claudi Pedersen
is it possible to include a part of the the cinfig from another file in the
opensips.cfg..

what i want is to have the cfg or another file generated by another
program, but it is only a small part of the cfg that needs to be edited
everytime. so i would like to generate that part from another file and
include that into opensips.cfg
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users