[OpenSIPS-Users] Supported OpenSIPS Versions update

2014-03-24 Thread Vlad Paiu

Hello,

A short reminder about the supported version of OpenSIPS.

According to the OpenSIPS version management [1], this is the lifetime 
of the currently supported versions:


* 1.8 will be supported until the end of 2014 (LTS)
* 1.9 becomes unmaintained (STS)
* 1.10 will be supported until the end of 2014 (STS)
* 1.11 will be supported for two years after it's stable release (LTS)

The full overview of the currently available versions is also listed at [2]

[1] http://opensips.org/Development/Development#toc2
[2] http://www.opensips.org/About/AvailableVersions

Best Regards

--
Vlad Paiu
OpenSIPS 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] Register Free UAC Setup

2014-03-24 Thread Bogdan-Andrei Iancu

Hello Nick,

Yes, you can route the traffic to un-registered phone - instead of doing 
routing based on usrloc (user location), you can do based on fix static 
IPs of the phone (like dispatcher or generic tables).


Still I do not understand what you want to say by "What we would like is 
the associated tables (ie, dialog) to be loaded with the phones info 
such as IP address, port etc "


Regards,

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

On 07.03.2014 16:44, Nick Cameo wrote:

Hello Bogdan,

Sorry for the lack of clarity. What we would like is the associated
tables (ie, dialog) to be loaded with the phones info such as IP
address, port etc.. on an INVITE rather than a REGISTER.

Our setup has other means of validating phones without having to
exchange credentials. Is it possible to for OpenSIPS to rely traffic
to un-registered clients?

Kind Regards,

Nick.



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


Re: [OpenSIPS-Users] Opensips1.7 with MediaProxy

2014-03-24 Thread Bogdan-Andrei Iancu

Hi.

So the 200 OK for INVITE is not matching anymore ? If so, this is not 
related to dialog module - the reply matching has nothing to do with the 
dialog module as it is done by the TM module. Maybe your problem is in a 
different place.


Regards,

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

On 07.03.2014 17:05, H Yavari wrote:

Hi,
OK with SDP and BYE.


*From:* Bogdan-Andrei Iancu 
*To:* H Yavari ; OpenSIPS users mailling list 


*Sent:* Friday, 7 March 2014, 17:46:23
*Subject:* Re: [OpenSIPS-Users] Opensips1.7 with MediaProxy

Hi,

Which SIP message is no longer matching the dialog ?

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com  
On 06.03.2014 11:49, H Yavari wrote:

Hi Bogdan,
Can you give us some example?
I use opensips with rtpproxy. but when I use the topology_hiding(), 
dialogs not matched and OK with SDP not received to the call party 
and media path not established.

Thanks so.

Best Regards,
H.Yavari


*From:* Bogdan-Andrei Iancu  

*To:* OpenSIPS users mailling list  
; l...@ptcomm.ru 

*Sent:* Wednesday, 5 March 2014, 20:18:30
*Subject:* Re: [OpenSIPS-Users] Opensips1.7 with MediaProxy

Hello,

The best options for you is to use dialog module with topology 
hiding. This can be easily combined with any of the media relays 
(rtpproxy or mediaproxy) for hiding the media path.


If you have any particular questions on the setup, I will try to help 
you.


Best regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com  
On 25.02.2014 09:26, Лытаев Антон Викторович wrote:

Hi. Please help.
We have:
1.One server consists of: CenOS6.5 + Opensips1.7 + MediaProxy2.5
2.One MGW: Cisco AS5350
3.UserID=telephone number and registration on OpenSips through MySQL
4.Call to PSTN pass through MGW with prefix :
route[4] {  prefix("");
  rewritehostport("192.168.0.3: 5060 ");
  if (!t_relay()) { sl_reply_error(); };
exit;}

Now, such a scheme works:

(UAC )>sip->Opensips 1.7--->SIP--->MGW Cisco
192.168.0.65 192.168.0.2 192.168.0.3
RTP---
-- -->MGW Cisco>PSTN

In this topology visible

It's not safe, it's necessary to build a new wiring diagram:
(UAC  )--->sip,RTP>(Opensips--- >rtp,SIP-->)->MGW 
Cisco--->PSTN

85.85.85.85 (85.85.85.2 192.168.0.2) 192.168.0.3

questions:
1. to hide the network topology from the users (can be used dialog 
module, function: topology_hiding?)
2. hide RTP traffic to MGW for Opensips-server (can be used 
MediaProxy or rtpproxy)?

Please, give examples opensips.cfg-file ?


___
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] Interaction between OpenSIPS as UAC and real UAC

2014-03-24 Thread Bogdan-Andrei Iancu

Hello,

Script-wise, what are you trying to do right now by the db_is_user_in() 
? If you explain the actual idea you try to implement, I can guide you 
with the script.


So, when comes to the incoming REGISTER, what you want to change now ?

Regards,

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

On 21.03.2014 10:37, Александр Пучков wrote:

11.02.2014 19:44, Bogdan-Andrei Iancu пишет:

Hello,

Please keep the list CC'ed all the time !

You did no inserted the topo hiding triggering in the write place - 
you need to do it only for initial INVITEs ; for sequential requests 
you need the be sure to invoke the match_dialog() function. See:

http://www.opensips.org/html/docs/modules/1.10.x/dialog.html#id295144

It will be helpful to provide more info on what "it is not working" - 
like do you see any changes on the INVITE sent out by OpenSIPS, any 
script errors, etc
I 'm trying to use your proposed function, but ran into a problem - I 
have not triggered the authorization and I can not make an outgoing call .


After making some changes :

if (!db_is_user_in("$fu", "asterisk")) # +++ I ADDED THIS STRING
if (!(method=="REGISTER") && from_uri==myself) /*НЕ multidomain 
версия*/


{

if(!check_source_address("0")){
if (!proxy_authorize("", "subscriber")) {


proxy_challenge("", "0");
exit;
}
if (!db_check_from()) {
sl_send_reply("403","Forbidden auth ID");
exit;
}
consume_credentials();
}
}

I like making progress , but the analysis of messages using the 
program "wireshark", I saw that I had not sent a request "ACK" to the 
asterisk. The challenge does not pass.


Briefly remind you that I 'm trying to achieve :
I would like to make opensips acted as UAC to asterisk , but it was a 
server for opensips UAC. This will allow me to introduce UAC, 
registered in OpenSIPS like an extension on the asterisk.


Please, write a little piece of code for deciding my problem.

My configuration file:

http://pastebin.com/39vV4eYT


Hello,

Use the dialog based topology hiding
http://www.opensips.org/html/docs/modules/1.10.x/dialog.html#id296001

when forwarding the INVITE to Asterisk (in OpenSIPS).

Thank you.

I tried it like this code fragment:

#--8<--

route {


if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
}

#force_rport();

if(avp_db_load("$fu","$avp(trace)")) {
$avp(traceuser)=$fu;
setflag(22);
sip_trace();
xlog("L_INFO","User $fu being traced");
}
#...
if (db_is_user_in("$fu", "asterisk"))
{
if(!has_totag() && is_method("INVITE")) {
topology_hiding();
}
}

if (has_totag()) {
...
}

...
#--8<--

But it not worked :( Perhaps, this code is wrong.

Could you indicate where the error? Could you indicate where the 
error? Or do I need to follow the documentation on the function 
topology_hiding()?

On 11.02.2014 10:12, Александр Пучков wrote:


10.02.2014 13:24, Bogdan-Andrei Iancu пишет:

Hello,

In this scenario:

Astеrisk <-- 3 -- OpenSIPS <-- 4 -- UAC

What SIP requests the UAC is sending ? REGISTER ? INVITES ?

Hello!

UAC registered to Opensips, Opensips registered as UAC on 
Asterisk. When the INVITE request comes from the UAC, Opensips 
need to sent INVITE to Asterisk as UAC.


Note that the UAC does not know about Asterisk and Asterisk does 
not know about UAC. Asterisk know about only Opensips.


It is necessary to any UAC registered on Opensips could imagine 
how extension on Asterisk, without changing the configuration of UAC.


Thank you.




Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 20.01.2014 13:05, Александр Пучков wrote:

Hi!

OpenSIPS version 1.8.

We have the following diagram:

PSTN<-- 1 --> OpenSIPS<-- 2 --> Astеrisk<-- 3 
--> UAC
192.168.1.1 <-- 1 --> 192.168.1.2 <-- 2 --> 192.168.1.3 <-- 3 
--> 192.168.1.*


I would like to make the following scheme:

PSTN<-- 1 --> OpenSIPS<-- 2 --> Astеrisk<-- 3 
--> OpenSIPS <-- 4 --> UAC
192.168.1.1 <-- 1 --> 192.168.1.2 <-- 2 --> 192.168.1.3 <-- 3 
--> 192.168.1.2 <-- 4 --> 192.168.1.*


Interestingly the following schema fragment:
Astеrisk<-- 3 --> OpenSIPS<-- 4 --> UAC

Here OpenSIPS need to increase control over the services for 
UAC. UAC should not know about the existence of Asterisk and UAC 
must be registered on the server OpenSIPS, and any SIP request 
OpenSIPS should redirect to Asterisk.


I tried to use the module in UAC_REGISTRANT OpenSIPS, it works 
fine in the direct

[OpenSIPS-Users] An Error in Opensips 1.9.1

2014-03-24 Thread dpa


Hello!

 

1.   In log file I see many errors

"CRITICAL:core:comp_scriptvar: invalid operation 20/3/4!!

WARNING:core:do_action: error in expression (l=662)"

 

As I understand there is a problem somewhere in opensips.cfg 

How can I understand where problem is?

 

2.   I have "modparam("dialog", "db_mode", 1)" in opensips.cfg. 

In normal operation of opensips I can see in statistics, for example, 800
active dialogs, but after restart I see much more active dialogs. Why can it
be? 

 

Thank you for any help.

 

 

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


[OpenSIPS-Users] Problem using radius_send_auth

2014-03-24 Thread John Quick
I'm using OpenSIPS version 1.8.2 with radiusclient-ng.
I need to be able to make custom radius authentication requests using
radius_send_auth (a function in the aaa_radius module).

The first time I tried, it failed and reported an error that
Message-Authenticator was an unknown attribute.
I found the missing attribute in dictionary.rfc2869, but when I include this
dictionary, OpenSIPS fails to start and reports an error that seems to point
to the "octets" attribute type being unrecognised.

Any help with this would be greatly appreciated.

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] Problem using radius_send_auth

2014-03-24 Thread qasimak...@gmail.com
Try using opensips dictionary.

Regards,
Qasim



On Mon, Mar 24, 2014 at 4:37 PM, John Quick wrote:

> I'm using OpenSIPS version 1.8.2 with radiusclient-ng.
> I need to be able to make custom radius authentication requests using
> radius_send_auth (a function in the aaa_radius module).
>
> The first time I tried, it failed and reported an error that
> Message-Authenticator was an unknown attribute.
> I found the missing attribute in dictionary.rfc2869, but when I include
> this
> dictionary, OpenSIPS fails to start and reports an error that seems to
> point
> to the "octets" attribute type being unrecognised.
>
> Any help with this would be greatly appreciated.
>
> 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
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Interaction between OpenSIPS as UAC and real UAC

2014-03-24 Thread Александр Пучков

A few words about the structure of my network.

I have a very simple structure:

UAC <---> OpenSIPS <---> PSTN

This allows a regular customer to make and receive calls.
I want to provide SOME customers extended service using an asterisk, for 
example - voicemail.


At the moment, I found a way out for these customers (with extended 
service) :


UAC <---> OpenSIPS <---> ASTERISK <---> PSTN

Accordingly , customers (UAC), which should go to the PSTN through 
Asterisk listed in the group "asterisk".


An important point: OpenSIPS must be registered as UAC on how asterisk 
extension, otherwise the service will not be extended to provide.
Also, much easier to make the user to the "asterisk" group, than tweak 
its SIP-client.


In order to do this I used the module "uac_registrant", it allows you to 
register as OpenSIPS to UAC asterisk.


With it, I can make a call :

UAC <--- OpenSIPS <--- ASTERISK <--- PSTN

But such a call can not do :

UAC ---> OpenSIPS ---> ASTERISK ---> PSTN

I tried using topology_hiding () and match_dialog (),

but it does not forward the request "ACK" from OpenSIPS to Asterisk .

24.03.2014 14:50, Bogdan-Andrei Iancu пишет:

Hello,

Script-wise, what are you trying to do right now by the 
db_is_user_in() ? If you explain the actual idea you try to implement, 
I can guide you with the script.


So, when comes to the incoming REGISTER, what you want to change now ?

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 21.03.2014 10:37, Александр Пучков wrote:

11.02.2014 19:44, Bogdan-Andrei Iancu пишет:

Hello,

Please keep the list CC'ed all the time !

You did no inserted the topo hiding triggering in the write place - 
you need to do it only for initial INVITEs ; for sequential requests 
you need the be sure to invoke the match_dialog() function. See:

http://www.opensips.org/html/docs/modules/1.10.x/dialog.html#id295144

It will be helpful to provide more info on what "it is not working" 
- like do you see any changes on the INVITE sent out by OpenSIPS, 
any script errors, etc
I 'm trying to use your proposed function, but ran into a problem - I 
have not triggered the authorization and I can not make an outgoing 
call .


After making some changes :

if (!db_is_user_in("$fu", "asterisk")) # +++ I ADDED THIS STRING
if (!(method=="REGISTER") && from_uri==myself) /*НЕ multidomain 
версия*/


{

if(!check_source_address("0")){
if (!proxy_authorize("", "subscriber")) {


proxy_challenge("", "0");
exit;
}
if (!db_check_from()) {
sl_send_reply("403","Forbidden auth ID");
exit;
}
consume_credentials();
}
}

I like making progress , but the analysis of messages using the 
program "wireshark", I saw that I had not sent a request "ACK" to the 
asterisk. The challenge does not pass.


Briefly remind you that I 'm trying to achieve :
I would like to make opensips acted as UAC to asterisk , but it was a 
server for opensips UAC. This will allow me to introduce UAC, 
registered in OpenSIPS like an extension on the asterisk.


Please, write a little piece of code for deciding my problem.

My configuration file:

http://pastebin.com/39vV4eYT


Hello,

Use the dialog based topology hiding
http://www.opensips.org/html/docs/modules/1.10.x/dialog.html#id296001

when forwarding the INVITE to Asterisk (in OpenSIPS).

Thank you.

I tried it like this code fragment:

#--8<--

route {


if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
}

#force_rport();

if(avp_db_load("$fu","$avp(trace)")) {
$avp(traceuser)=$fu;
setflag(22);
sip_trace();
xlog("L_INFO","User $fu being traced");
}
#...
if (db_is_user_in("$fu", "asterisk"))
{
if(!has_totag() && is_method("INVITE")) {
topology_hiding();
}
}

if (has_totag()) {
...
}

...
#--8<--





--
С уважением,
Александр Пучков,
Системный администратор,
Тел.:  +7(496) 569-24-24 доб.тел. 255;
ООО "ПОИГ" (Интернет-провайдер г. Щелково)
Факс:  +7(496) 569-24-24 доб. 103;
Адрес: 141108, М.О., г.Щелково, Пролетарский пр., д.11;
WEB:   http://www.schelkovo-net.ru
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Problem using radius_send_auth

2014-03-24 Thread John Quick
I am already using the opensips dictionary.
It does not contain the Message-Authenticator attribute.

When I do not use dictionary.rfc2869, I get this error every time the
radius_send_auth function is called:
rc_avpair_gen: received unknown attribute 80 of length 18: 0x..

When I include dictionary.rfc2869, I get this error on startup:
rc_read_dictionary: invalid type on line 13 of dictionary
/usr/local/etc/radiusclient-ng/dictionary.rfc2869

John


From: qasimak...@gmail.com [mailto:qasimak...@gmail.com] 
Sent: 24 March 2014 11:57
To: john.qu...@smartvox.co.uk; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Problem using radius_send_auth

Try using opensips dictionary. 
Regards,
Qasim


On Mon, Mar 24, 2014 at 4:37 PM, John Quick 
wrote:
I'm using OpenSIPS version 1.8.2 with radiusclient-ng.
I need to be able to make custom radius authentication requests using
radius_send_auth (a function in the aaa_radius module).

The first time I tried, it failed and reported an error that
Message-Authenticator was an unknown attribute.
I found the missing attribute in dictionary.rfc2869, but when I include this
dictionary, OpenSIPS fails to start and reports an error that seems to point
to the "octets" attribute type being unrecognised.

Any help with this would be greatly appreciated.

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




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


Re: [OpenSIPS-Users] codec_delete_except_re SDP Corruption

2014-03-24 Thread Liviu Chircu

Hello Kneeoh,

Thank you for reporting this issue. A fix has been committed on the 
master, 1.11, 1.10 and 1.8 branches.


Best regards,

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

On 03/05/2014 08:58 PM, Kneeoh wrote:

Sure, I'll get that for you. I've got some additional data that may answer your 
question. The problem seems to occur when the codec being removed is at the end 
of the SDP offer. So you'll get something like

0 18 101 19 in the media description line and 19 is the one you remove. It 
leaves the space after the 101, which is causing the problem.



On Wednesday, March 5, 2014 12:57 PM, Bogdan-Andrei Iancu  
wrote:
Hello,

Is the codec deletion the only change you do over the SDP (codec related) ?

What opensips version are you using ?  Also, could you post (privately
is needed) the exact original and modified SDP ?

Regards,

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


On 28.02.2014 23:09, Kneeoh wrote:

I am using the codec codec_delete_except_re function to remove unwanted codecs:

codec_delete_except_re("PCMU|G729|telephone-event");

Apparently it is placing or leaving a space (hex 20) at the end of the media 
description line if the codec at the end of the description is removed by this 
function. Which I'm told is not syntactically correct.

The net result is that upstream vendors 488 the calls on which codecs are 
removed and have this space at the end of the media description line.


Has anyone else encountered this issue and resolved it?

Thanks in advance

___
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] Problem using radius_send_auth

2014-03-24 Thread qasimak...@gmail.com
hmm... here are the settings that i am using that works perfectly for me:

These files are required on opensips radiusclient-ng side:


*/etc/radiusclient-ng/dictionary*...
$INCLUDE/etc/radiusclient-ng/dictionary.sip
...
ATTRIBUTE   User-Name   1   string
ATTRIBUTE   Password2   string
ATTRIBUTE   CHAP-Password   3   string
...


*/etc/radiusclient-ng/dictionary.sip (This is the opensips dictionary)*
## $Id: dictionary.opensips 7139 2010-08-17 14:06:00Z razvancrainea $
...
ATTRIBUTE Sip-Uri-User 208  string # Proprietary, auth_radius
ATTRIBUTE Sip-Group211  string # Proprietary, group_radius
ATTRIBUTE Sip-Rpid 213  string # Proprietary, auth_radius
ATTRIBUTE SIP-AVP  225  string # Proprietary, avp_radius
ATTRIBUTE Sip-Call-Duration227  integer
ATTRIBUTE Sip-Call-Setuptime   228  integer
...


On freeradius end:

*/usr/local/etc/raddb*
$INCLUDE/usr/local/share/freeradius/dictionary



*/usr/local/share/freeradius/dictionary*...
$INCLUDE dictionary.sip
...

*/usr/local/share/freeradius/dictionary.sip* *(This is the opensips
dictionary)*

## $Id: dictionary.opensips 7139 2010-08-17 14:06:00Z razvancrainea $
...

P.S. If you need these dictionary files just PM me and i will send them to
you i think these are not required on the forum it will just clutter things
if anything.

Regards,
Qasim

On Mon, Mar 24, 2014 at 6:05 PM, John Quick wrote:

> I am already using the opensips dictionary.
> It does not contain the Message-Authenticator attribute.
>
> When I do not use dictionary.rfc2869, I get this error every time the
> radius_send_auth function is called:
> rc_avpair_gen: received unknown attribute 80 of length 18: 0x..
>
> When I include dictionary.rfc2869, I get this error on startup:
> rc_read_dictionary: invalid type on line 13 of dictionary
> /usr/local/etc/radiusclient-ng/dictionary.rfc2869
>
> John
>
>
> From: qasimak...@gmail.com [mailto:qasimak...@gmail.com]
> Sent: 24 March 2014 11:57
> To: john.qu...@smartvox.co.uk; OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] Problem using radius_send_auth
>
> Try using opensips dictionary.
> Regards,
> Qasim
>
>
> On Mon, Mar 24, 2014 at 4:37 PM, John Quick 
> wrote:
> I'm using OpenSIPS version 1.8.2 with radiusclient-ng.
> I need to be able to make custom radius authentication requests using
> radius_send_auth (a function in the aaa_radius module).
>
> The first time I tried, it failed and reported an error that
> Message-Authenticator was an unknown attribute.
> I found the missing attribute in dictionary.rfc2869, but when I include
> this
> dictionary, OpenSIPS fails to start and reports an error that seems to
> point
> to the "octets" attribute type being unrecognised.
>
> Any help with this would be greatly appreciated.
>
> 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
>
>
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] An Error in Opensips 1.9.1

2014-03-24 Thread qasimak...@gmail.com
I think a little more information than this would be required if you need
help :).

Regards,
Qasim


On Mon, Mar 24, 2014 at 4:36 PM, dpa  wrote:

> Hello!
>
>
>
> 1.   In log file I see many errors
>
> "CRITICAL:core:comp_scriptvar: invalid operation 20/3/4!!
>
> WARNING:core:do_action: error in expression (l=662)"
>
>
>
> As I understand there is a problem somewhere in opensips.cfg
>
> How can I understand where problem is?
>
>
>
> 2.   I have "modparam("dialog", "db_mode", 1)" in opensips.cfg.
>
> In normal operation of opensips I can see in statistics, for example, 800
> active dialogs, but after restart I see much more active dialogs. Why can
> it be?
>
>
>
> Thank you for any help.
>
>
>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
<>___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [OpenSIPS-Devel] [RELEASE] OpenSIPS 1.11 beta major release is out

2014-03-24 Thread Ryan Bullock
This is an exciting release! The new memory allocator looks really
interesting. Are there any numbers showing how its performance compares to
the current?

Great work!


~Ryan Bullock


On Thu, Mar 20, 2014 at 1:29 PM, Bogdan-Andrei Iancu wrote:

> Hello everyone!
>
> The OpenSIPS Project is proud to announce the release of OpenSIPS version
> 1.11 (beta)!
>
> We would like to thank the OpenSIPS community for all of their hard and
> diligent work in making this release possible. We could never have done it
> without you!
>
> Special thanks go out to Ovidiu Sas, Walter Doekes, Damien Sandrs, Nick
> Altmann, Brett Nemeroff, Ryan Bullock (and many others) for your amazing
> contribution on this release. We truly appreciate you!
>
> Building on our industry ready platform, we're excited to introduce many
> new features and updates. But also we've continued to make inroads in
> developing an easier to use OpenSIPS.
>
> Version 1.11 brings with it enhancements to the core, script handling, and
> many important modules.
>
> The OpenSIPS core has received a new memory allocator to increase
> performance. It's tunable and provides fine-grained locking!
>
> We've also heard your requests on improving scripting capabilities. Say
> hello to the SCRIPT_HELPER module and to the "for-each" statement! The
> learning curve will not be so steep again!
>
> We've also introduced 4 new modules in this release...
>
> - B2B_SCA module providing new shared call appearance features
> - CALL_CENTER module that introduces call queue features
> - MI_JSON module to encode data in JSON format over HTTP for the MI
> Interface commands
> - SCRIPT_HELPER module to simplify the script/configuration for beginners
>
> In all, too many features to list. However you can view them all by
> visiting the version page at:
> http://www.opensips.org/About/Version-1-11-0
>
> Again, we are excited about all the new changes version 1.11 delivers. We
> continue to appreciate all the feedback and help from the community.
>
> We still have many things to be done to get to the stable release (in ~1
> month), like improving the documentation, keep working on fixing bugs,
> excessive testing and others.
>
> We're always listening to your requests, so never be shy in making one!
>
>
> Many thanks,
> The OpenSIPS Project Team
>
> --
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.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


Re: [OpenSIPS-Users] Problem using radius_send_auth

2014-03-24 Thread John Quick
Hi Quasim,

I appreciate your help. However, I am not using FreeRadius as the Radius
server and have already got all the basic dictionaries loaded (like
dictionary.opensips, dictionary.sip)
aaa_www_authorize and writing of Radius CDR's is working ok. That is not the
problem.

It is only when I try to use the radius_send_auth(set1, set2) function that
I had problems.
Please can you confirm if you have used this function?

I just tried a change to the dictionaries I use. No longer using
dictionary.rfc2869. Instead using dictionary.rfc2865.
In set1, the attribs that are sent to the server, I now specify 'User-Name'
and 'User-Password'. This seems to have fixed the problem whereby OpenSIPS
required the Message-Authenticator attribute. However, to get
dictionary.rfc2865 to work, I had to comment out all the attributes of type
"octets".

I still have the second problem: OpenSIPS and radiusclient-ng does not
recognise the attribute type "octets".

John Quick
Smartvox Limited


From: qasimak...@gmail.com [mailto:qasimak...@gmail.com] 
Sent: 24 March 2014 16:27
To: john.qu...@smartvox.co.uk
Cc: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Problem using radius_send_auth

hmm... here are the settings that i am using that works perfectly for me:
These files are required on opensips radiusclient-ng side:
/etc/radiusclient-ng/dictionary
...
$INCLUDE    /etc/radiusclient-ng/dictionary.sip
...
ATTRIBUTE   User-Name   1   string
ATTRIBUTE   Password    2   string
ATTRIBUTE   CHAP-Password   3   string
...
/etc/radiusclient-ng/dictionary.sip (This is the opensips dictionary)
## $Id: dictionary.opensips 7139 2010-08-17 14:06:00Z razvancrainea $
...
ATTRIBUTE Sip-Uri-User 208  string # Proprietary, auth_radius
ATTRIBUTE Sip-Group    211  string # Proprietary, group_radius
ATTRIBUTE Sip-Rpid 213  string # Proprietary, auth_radius
ATTRIBUTE SIP-AVP  225  string # Proprietary, avp_radius
ATTRIBUTE Sip-Call-Duration    227  integer
ATTRIBUTE Sip-Call-Setuptime   228  integer
...

On freeradius end:
/usr/local/etc/raddb

$INCLUDE    /usr/local/share/freeradius/dictionary


/usr/local/share/freeradius/dictionary
...
$INCLUDE dictionary.sip
...

/usr/local/share/freeradius/dictionary.sip (This is the opensips dictionary)

## $Id: dictionary.opensips 7139 2010-08-17 14:06:00Z razvancrainea $
...
P.S. If you need these dictionary files just PM me and i will send them to
you i think these are not required on the forum it will just clutter things
if anything.

Regards,
Qasim

On Mon, Mar 24, 2014 at 6:05 PM, John Quick 
wrote:
I am already using the opensips dictionary.
It does not contain the Message-Authenticator attribute.

When I do not use dictionary.rfc2869, I get this error every time the
radius_send_auth function is called:
rc_avpair_gen: received unknown attribute 80 of length 18: 0x..

When I include dictionary.rfc2869, I get this error on startup:
rc_read_dictionary: invalid type on line 13 of dictionary
/usr/local/etc/radiusclient-ng/dictionary.rfc2869

John


From: qasimak...@gmail.com [mailto:qasimak...@gmail.com]
Sent: 24 March 2014 11:57
To: john.qu...@smartvox.co.uk; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Problem using radius_send_auth

Try using opensips dictionary.
Regards,
Qasim


On Mon, Mar 24, 2014 at 4:37 PM, John Quick 
wrote:
I'm using OpenSIPS version 1.8.2 with radiusclient-ng.
I need to be able to make custom radius authentication requests using
radius_send_auth (a function in the aaa_radius module).

The first time I tried, it failed and reported an error that
Message-Authenticator was an unknown attribute.
I found the missing attribute in dictionary.rfc2869, but when I include this
dictionary, OpenSIPS fails to start and reports an error that seems to point
to the "octets" attribute type being unrecognised.

Any help with this would be greatly appreciated.

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






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


Re: [OpenSIPS-Users] Problem using radius_send_auth

2014-03-24 Thread qasimak...@gmail.com
Hi John,

I am successfully using these functions (radius_send_auth)/dictionaries
with FreeRadius as radius server, I dont know about your particular radius
setup. As far as i know you dont need to load any other dictionary for your
radius related modules/functions to work. If your Opensip's dictionary is
properly loaded that should cater all your radius related functionality in
opensips.

Having said that you should make sure that the dictionary is loaded on both
Radius Server as well as on Client end that is the only requirement as far
as dictionaries are concerned.

Regards,
Qasim


On Mon, Mar 24, 2014 at 10:23 PM, John Quick wrote:

> Hi Quasim,
>
> I appreciate your help. However, I am not using FreeRadius as the Radius
> server and have already got all the basic dictionaries loaded (like
> dictionary.opensips, dictionary.sip)
> aaa_www_authorize and writing of Radius CDR's is working ok. That is not
> the
> problem.
>
> It is only when I try to use the radius_send_auth(set1, set2) function that
> I had problems.
> Please can you confirm if you have used this function?
>
> I just tried a change to the dictionaries I use. No longer using
> dictionary.rfc2869. Instead using dictionary.rfc2865.
> In set1, the attribs that are sent to the server, I now specify 'User-Name'
> and 'User-Password'. This seems to have fixed the problem whereby OpenSIPS
> required the Message-Authenticator attribute. However, to get
> dictionary.rfc2865 to work, I had to comment out all the attributes of type
> "octets".
>
> I still have the second problem: OpenSIPS and radiusclient-ng does not
> recognise the attribute type "octets".
>
> John Quick
> Smartvox Limited
>
>
> From: qasimak...@gmail.com [mailto:qasimak...@gmail.com]
> Sent: 24 March 2014 16:27
> To: john.qu...@smartvox.co.uk
> Cc: OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] Problem using radius_send_auth
>
> hmm... here are the settings that i am using that works perfectly for me:
> These files are required on opensips radiusclient-ng side:
> /etc/radiusclient-ng/dictionary
> ...
> $INCLUDE/etc/radiusclient-ng/dictionary.sip
> ...
> ATTRIBUTE   User-Name   1   string
> ATTRIBUTE   Password2   string
> ATTRIBUTE   CHAP-Password   3   string
> ...
> /etc/radiusclient-ng/dictionary.sip (This is the opensips dictionary)
> ## $Id: dictionary.opensips 7139 2010-08-17 14:06:00Z razvancrainea $
> ...
> ATTRIBUTE Sip-Uri-User 208  string # Proprietary, auth_radius
> ATTRIBUTE Sip-Group211  string # Proprietary, group_radius
> ATTRIBUTE Sip-Rpid 213  string # Proprietary, auth_radius
> ATTRIBUTE SIP-AVP  225  string # Proprietary, avp_radius
> ATTRIBUTE Sip-Call-Duration227  integer
> ATTRIBUTE Sip-Call-Setuptime   228  integer
> ...
>
> On freeradius end:
> /usr/local/etc/raddb
>
> $INCLUDE/usr/local/share/freeradius/dictionary
>
>
> /usr/local/share/freeradius/dictionary
> ...
> $INCLUDE dictionary.sip
> ...
>
> /usr/local/share/freeradius/dictionary.sip (This is the opensips
> dictionary)
>
> ## $Id: dictionary.opensips 7139 2010-08-17 14:06:00Z razvancrainea $
> ...
> P.S. If you need these dictionary files just PM me and i will send them to
> you i think these are not required on the forum it will just clutter things
> if anything.
>
> Regards,
> Qasim
>
> On Mon, Mar 24, 2014 at 6:05 PM, John Quick 
> wrote:
> I am already using the opensips dictionary.
> It does not contain the Message-Authenticator attribute.
>
> When I do not use dictionary.rfc2869, I get this error every time the
> radius_send_auth function is called:
> rc_avpair_gen: received unknown attribute 80 of length 18: 0x..
>
> When I include dictionary.rfc2869, I get this error on startup:
> rc_read_dictionary: invalid type on line 13 of dictionary
> /usr/local/etc/radiusclient-ng/dictionary.rfc2869
>
> John
>
>
> From: qasimak...@gmail.com [mailto:qasimak...@gmail.com]
> Sent: 24 March 2014 11:57
> To: john.qu...@smartvox.co.uk; OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] Problem using radius_send_auth
>
> Try using opensips dictionary.
> Regards,
> Qasim
>
>
> On Mon, Mar 24, 2014 at 4:37 PM, John Quick 
> wrote:
> I'm using OpenSIPS version 1.8.2 with radiusclient-ng.
> I need to be able to make custom radius authentication requests using
> radius_send_auth (a function in the aaa_radius module).
>
> The first time I tried, it failed and reported an error that
> Message-Authenticator was an unknown attribute.
> I found the missing attribute in dictionary.rfc2869, but when I include
> this
> dictionary, OpenSIPS fails to start and reports an error that seems to
> point
> to the "octets" attribute type being unrecognised.
>
> Any help with this would be greatly appreciated.
>
> John Quick
> Smartvox Limited
> Web: www.smartvox.co.uk
>
>
>
>
> ___
> Users mailing list
> Users@lists.opensips

[OpenSIPS-Users] Problem with Opensips and rtpproxy

2014-03-24 Thread Alcindo Schleder
My server is with rtproxy installed and initializing with the command:

rtpproxy -p /var/run/rtpproxy.pid -u rtpproxy -l SERVER_PUBLIC_IP -s
udp:127.0.0.1:2374 -F -f d DBUG

 

When I start the opensips get the following errors:

ERROR:rtpproxy:send_rtpp_command: can't send command to a RTP proxy
Connection refused

ERROR:rtpproxy:send_rtpp_command: proxy  does not
respond, disable it

WARNING:rtpproxy:rtpp_test: can't get version of the RTP proxy

WARNING:rtpproxy:rtpp_test: support for RTP proxy  has
been disabled temporarily

 

What could be wrong?

 

Alcindo Schleder

 

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


[OpenSIPS-Users] Error when initializing the OpenSIPS

2014-03-24 Thread Alcindo Schleder
Hi all.

 

This error occurs when I start the Opensips 1.10.1 and there are recorded
data in the table location:

 

Mar 24 15:06:08 xsip /usr/sbin/opensips[1632]: ERROR:core:db_str2int:
Unexpected characters: [-03-24 14:20:57]

Mar 24 15:06:08 xsip /usr/sbin/opensips[1632]:
ERROR:db_mysql:db_mysql_str2val: error while converting integer value from
string

Mar 24 15:06:08 xsip /usr/sbin/opensips[1632]:
ERROR:db_mysql:db_mysql_convert_row: failed to convert value

Mar 24 15:06:08 xsip /usr/sbin/opensips[1632]:
ERROR:db_mysql:db_mysql_fetch_result: error while converting row #0

Mar 24 15:06:08 xsip /usr/sbin/opensips[1632]: ERROR:usrloc:preload_udomain:
fetching rows failed

Mar 24 15:06:08 xsip /usr/sbin/opensips[1632]: ERROR:usrloc:child_init:
child(1): failed to preload domain 'location'

Mar 24 15:06:08 xsip /usr/sbin/opensips[1632]: ERROR:core:init_mod_child:
failed to initializing module usrloc, rank 1

Mar 24 15:06:08 xsip /usr/sbin/opensips[1632]: ERROR:core:main_loop:
init_child failed for UDP listener

 

Alcindo Schleder

 

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


Re: [OpenSIPS-Users] Probing IP for dispatcher

2014-03-24 Thread Wilmar Campos
Hi Bogdam,
I went back to version 1.8.3.  But it stopped working.
I basically have in the dispatcher table, the socket with UDP:
192.168.0.10:5060 wich is the IP I want to use to send the probind and
invites from.  it continues sending the invite from main interface.

Is there another parameter that ovewrites the value in the column socket?

Thanks,




On Fri, Mar 21, 2014 at 11:16 AM, Bogdan-Andrei Iancu
wrote:

>  Hello,
>
> In the dispatcher table (
> http://www.opensips.org/Documentation/Install-DBSchema-1-10#AEN2767 ),
> you have a socket column - you can configure there what is the preferred
> interface to be used by dispatcher in relation to that destination.
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
> On 20.03.2014 23:11, Wilmar Campos wrote:
>
> Hi Group,
>
>  I came into a situation that my opensips is listening only to the
> secondary IP in the eth0.
>
>  I have include Listern:udp:192.168.0.10:5060 wich is the secondary IP
> for eth0.
>
>  Now, when dispatcher is probing, its sending the probing from the ip
> 192.168.0.9 wich is the Primary IP in the interface.
>
>  I am using Opensips 1.10.1, already test mhomed and advertised_address.
>
>  I am also using the dispatcher config:
> modparam("dispatcher", "ds_probing_sock", "udp:192.168.0.10:5060")
>
>  But doesn't do any difference.
>
>  Any ideas please?
>
>  Thanks,
>
>  Wilmar
>
>
> ___
> 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] An Error in Opensips 1.9.1

2014-03-24 Thread dpa
Hello

 

I am ready. But what type of information do I need provide?

To tell the truth I rarely look into opensips log file. Only when some
critical case happens (opensips crash for example).

Yesterday there was such case. 

 

Thank you.

 

From: users-boun...@lists.opensips.org
[mailto:users-boun...@lists.opensips.org] On Behalf Of qasimak...@gmail.com
Sent: Monday, March 24, 2014 8:29 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] An Error in Opensips 1.9.1

 

I think a little more information than this would be required if you need
help :).

Regards,
Qasim

 

On Mon, Mar 24, 2014 at 4:36 PM, dpa  wrote:



Hello!

 

1.   In log file I see many errors

"CRITICAL:core:comp_scriptvar: invalid operation 20/3/4!!

WARNING:core:do_action: error in expression (l=662)"

 

As I understand there is a problem somewhere in opensips.cfg 

How can I understand where problem is?

 

2.   I have "modparam("dialog", "db_mode", 1)" in opensips.cfg. 

In normal operation of opensips I can see in statistics, for example, 800
active dialogs, but after restart I see much more active dialogs. Why can it
be? 

 

Thank you for any help.

 

 


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

 

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