[OpenSIPS-Devel] OpenSIPS, OpenXCAP and Blink: SIP Presence Tutorial

2013-04-17 Thread Adrian Georgescu
Here is the list with OpenSIPS tutorials updated:

http://www.opensips.org/Resources/DocsTutorials#toc25

Regards,
Adrian



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [OpenSIPS-Users] OpenSIPS, OpenXCAP and Blink: SIP Presence Tutorial

2013-04-17 Thread Muhammad Shahzad
Thanks, really useful stuff.

Thank you.


On Wed, Apr 17, 2013 at 12:27 PM, Adrian Georgescu a...@ag-projects.comwrote:

 Here is the list with OpenSIPS tutorials updated:

 http://www.opensips.org/Resources/DocsTutorials#toc25

 Regards,
 Adrian


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


[OpenSIPS-Devel] opensips register

2013-04-17 Thread Cleiton Diniz
Hello, I want to use OpenSIPS as sip server

 

how do I let users have access only allowed?

 

today I have OpenSIPS running 1.7 over any User can connect to it

 

 

Thank you.

 

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


Re: [OpenSIPS-Devel] opensips register

2013-04-17 Thread Bogdan-Andrei Iancu

Hello Cleiton,

To control what users are allowed to registered in, you need to use 
authentication - to put your users in the subscriber table (you need 
to create the opensips DB with opensipsdbctl) - adding can be done with 
opensipsctl add  tool.


In your config, enable authentication for REGISTERs and calls - user 
make menuconfig or osipsconfig to generate a residential script 
with authentication support - this is available only starting with 1.8 
version.


Regards,

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


On 04/17/2013 07:10 PM, Cleiton Diniz wrote:


Hello, I want to use OpenSIPS as sip server

how do I let users have access only allowed?

today I have OpenSIPS running 1.7 over any User can connect to it

Thank you.


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


[OpenSIPS-Devel] [ opensips-Bugs-3610662 ] REGISTRAR save with force flag and limited contacts broken

2013-04-17 Thread SourceForge . net
Bugs item #3610662, was opened at 2013-04-12 01:32
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=1086410aid=3610662group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.8.x
Status: Open
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Kiss Karoly (kisskaroly)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: REGISTRAR save with force flag and limited contacts broken

Initial Comment:
When using save in registrar module with f and cXX flags set, the number of 
contacts can exceed the XX value.
Consider the following scenario: 3 devices registering with the same SIP 
account and XX above is set to 2, with f flag set. In this case we should be 
seeing two contacts saved, and the third should randomly overwrite one of the 
two contacts because of the force flag. What I see instead is that when the 
third device registers, one of the contacts is correctly overwritten, however 
when the device whos contact was overwritten, reregisters, it's contact is 
incorrectly added to the list of contacts, thus exceeding the limit of maximum 
allowed contacts. The cXX flag in my case is specified as a parameter to the 
save command in script.
Tested with opensips 1.8.2 svn rev 9438.

--

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2013-04-17 10:26

Message:
Kiss, indeed, the update logic was not fully correct - I tried a simpler
approach (which should work) - the version 2 patch is here, against SVN (so
remove any prev patch).
Please have it tested and let me know what's the result :)

Thanks and regards,
Bogdan

--

Comment By: Kiss Karoly (kisskaroly)
Date: 2013-04-16 05:41

Message:
With this patch, the original problem is solved, however still not working
as expected.
The problem is, that when max allowed regs is 2 and there are two contacts
registered, at the first refresh by one of the contacts, the other contact
is deleted. I would expect it not to delete any contacts, when I allow 2
and have 2.

--

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2013-04-15 09:39

Message:
Hi Kiss,

Attached is a patch that should solve the problem - at least it solved it
in my tests :).

Please apply it and give it a try - ignore the really verbose debug
messages :D.

Thanks and regards,
Bogdan 

--

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2013-04-12 10:46

Message:
Hi Kiss,

I managed to reproduce the scenario - I'm working on a fix.

Thanks and regards,
Bogdan

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=1086410aid=3610662group_id=232389

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


[OpenSIPS-Devel] RES: opensips register

2013-04-17 Thread Cleiton Diniz
follow the steps using osipsconfig

 

that being accessed --- OpenSIPS Generate Script - Residential Script - 
Configure Residential Script - USE AUTH

 

added User

opensipsctl add 5050 12345

 

and yet I can log in and links to any User

 

De: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] 
Enviada em: quarta-feira, 17 de abril de 2013 13:26
Para: OpenSIPS devel mailling list
Cc: Cleiton Diniz; 'OpenSIPS users mailling list'
Assunto: Re: [OpenSIPS-Devel] opensips register

 

Hello Cleiton,

To control what users are allowed to registered in, you need to use 
authentication - to put your users in the subscriber table (you need to 
create the opensips DB with opensipsdbctl) - adding can be done with 
opensipsctl add  tool.

In your config, enable authentication for REGISTERs and calls - user make 
menuconfig or osipsconfig to generate a residential script with 
authentication support - this is available only starting with 1.8 version.

Regards,



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


On 04/17/2013 07:10 PM, Cleiton Diniz wrote: 

Hello, I want to use OpenSIPS as sip server

 

how do I let users have access only allowed?

 

today I have OpenSIPS running 1.7 over any User can connect to it

 

 

Thank you.

 

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


[OpenSIPS-Devel] [ opensips-Bugs-3607052 ] Load balancer - corrupt data when loading table

2013-04-17 Thread SourceForge . net
Bugs item #3607052, was opened at 2013-03-06 07:08
Message generated for change (Comment added) made by umautone
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=1086410aid=3607052group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.9.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Umberto Mautone (umautone)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: Load balancer - corrupt data when loading table

Initial Comment:

Tested on 1.9.x

Data table:

 id | group_id |  dst_uri  | resources | probe_mode 
+--+---+---+
 19 |1 | sip:192.168.1.5   | pstn=100  |  0
 20 |1 | sip:192.168.1.8   | pstn=100  |  0
 21 |2 | sip:192.168.1.100 | pstn=2500 |  0

I added this line in lb_db_load_data()  to log the actual table fields being 
loaded:

LM_ERR(Fields: %d %d %s %s\n, id, group, uri, resource);

The first row loads correctly but subsequent rows seem to lose a pointer 
alignment somewhere:

Mar  6 10:01:53 localhost opensips[1796]: ERROR:load_balancer:lb_db_load_data: 
Fields: 19 1 sip:192.168.1.5 pstn=100
Mar  6 10:01:53 localhost opensips[1796]: ERROR:load_balancer:lb_db_load_data: 
Fields: 20 1 sip:192.168.1.8  ¥Ý9w#177
Mar  6 10:01:53 localhost opensips[1796]: 
ERROR:load_balancer:parse_resources_list: resource must has value!
Mar  6 10:01:53 localhost opensips[1796]: ERROR:load_balancer:add_lb_dsturi: 
failed to parse resourse string  ¥Ý9w#177
Mar  6 10:01:53 localhost opensips[1796]: ERROR:load_balancer:lb_db_load_data: 
failed to add destination 1 - skipping
Mar  6 10:01:53 localhost opensips[1796]: ERROR:load_balancer:lb_db_load_data: 
Fields: 21 2 sip:192.168.1.100 192.168.1.5
Mar  6 10:01:53 localhost opensips[1796]: 
ERROR:load_balancer:parse_resources_list: resource must has value!
Mar  6 10:01:53 localhost opensips[1796]: ERROR:load_balancer:add_lb_dsturi: 
failed to parse resourse string 192.168.1.5
Mar  6 10:01:53 localhost opensips[1796]: ERROR:load_balancer:lb_db_load_data: 
failed to add destination 1 - skipping

Also tested in 1.8.2 and the problem is not present. The bug seems to be only 
in the 1.9.x branch.


--

Comment By: Umberto Mautone (umautone)
Date: 2013-04-17 11:25

Message:
This bug as tested is happening on CentOS 6.x and Ubuntu 12.xx. The only
common component between the two is PostgreSQL.

--

Comment By: Umberto Mautone (umautone)
Date: 2013-04-05 14:04

Message:

Sorry for taking so long. This is using PostgreSQL 9.2 with unixODBC on a
64 bit box. Here is the output with debug=4 on startup:

===
Apr  5 16:57:24 localhost opensips: WARNING:core:warn: warning in config
file /usr//etc/opensips/opensips.cfg, line 44, column 13-16: tls support
not compiled in
Apr  5 16:57:24 localhost opensips: INFO:core:init_tcp: using epoll_lt as
the TCP io watch method (auto detected)
Apr  5 16:57:24 localhost opensips[13284]: NOTICE:core:main: version:
opensips 1.9.0-notls (x86_64/linux)
Apr  5 16:57:24 localhost opensips[13284]: INFO:core:main: using 32 Mb
shared memory
Apr  5 16:57:24 localhost opensips[13284]: INFO:core:main: using 2 Mb
private memory per process
Apr  5 16:57:24 localhost opensips[13284]: INFO:core:evi_publish_event:
Registered event E_CORE_THRESHOLD(0)
Apr  5 16:57:24 localhost opensips[13284]: INFO:core:evi_publish_event:
Registered event E_CORE_SHM_THRESHOLD(1)
Apr  5 16:57:24 localhost opensips[13284]: INFO:core:evi_publish_event:
Registered event E_CORE_PKG_THRESHOLD(2)
Apr  5 16:57:24 localhost opensips[13284]: NOTICE:signaling:mod_init:
initializing module ...
Apr  5 16:57:24 localhost opensips[13284]: INFO:sl:mod_init: Initializing
StateLess engine
Apr  5 16:57:24 localhost opensips[13284]: INFO:tm:mod_init: TM -
initializing...
Apr  5 16:57:24 localhost opensips[13284]: INFO:rr:mod_init: rr -
initializing
Apr  5 16:57:24 localhost opensips[13284]: INFO:maxfwd:mod_init:
initializing...
Apr  5 16:57:24 localhost opensips[13284]: INFO:sipmsgops:mod_init:
initializing...
Apr  5 16:57:24 localhost opensips[13284]: INFO:dialog:mod_init: Dialog
module - initializing
Apr  5 16:57:24 localhost opensips[13284]: INFO:load_balancer:mod_init:
Load-Balancer module - initializing
Apr  5 16:57:24 localhost opensips[13284]:
ERROR:load_balancer:parse_resources_list: resource must has value!
Apr  5 16:57:24 localhost opensips[13284]:
ERROR:load_balancer:add_lb_dsturi: failed to parse resourse string
HÿóÇ*#177
Apr  5 16:57:24 localhost opensips[13284]:
ERROR:load_balancer:lb_db_load_data: failed to add destination 3 -
skipping
Apr  5 16:57:24 localhost opensips[13284]: ERROR:core:parse_uri: bad uri, 
state 

[OpenSIPS-Devel] RES: RES: opensips register

2013-04-17 Thread Cleiton Diniz
Create file

 

opensips_residential_2013-4-17_15:48:32.cfg

 

changed name to opensips.cfg and try to start OpenSIPS of error PIN

 

 

 

De: devel-boun...@lists.opensips.org [mailto:devel-boun...@lists.opensips.org] 
Em nome de Cleiton Diniz
Enviada em: quarta-feira, 17 de abril de 2013 15:36
Para: 'Bogdan-Andrei Iancu'; 'OpenSIPS devel mailling list'
Cc: 'OpenSIPS users mailling list'
Assunto: [OpenSIPS-Devel] RES: opensips register

 

follow the steps using osipsconfig

 

that being accessed --- OpenSIPS Generate Script - Residential Script - 
Configure Residential Script - USE AUTH

 

added User

opensipsctl add 5050 12345

 

and yet I can log in and links to any User

 

De: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] 
Enviada em: quarta-feira, 17 de abril de 2013 13:26
Para: OpenSIPS devel mailling list
Cc: Cleiton Diniz; 'OpenSIPS users mailling list'
Assunto: Re: [OpenSIPS-Devel] opensips register

 

Hello Cleiton,

To control what users are allowed to registered in, you need to use 
authentication - to put your users in the subscriber table (you need to 
create the opensips DB with opensipsdbctl) - adding can be done with 
opensipsctl add  tool.

In your config, enable authentication for REGISTERs and calls - user make 
menuconfig or osipsconfig to generate a residential script with 
authentication support - this is available only starting with 1.8 version.

Regards,

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


On 04/17/2013 07:10 PM, Cleiton Diniz wrote: 

Hello, I want to use OpenSIPS as sip server

 

how do I let users have access only allowed?

 

today I have OpenSIPS running 1.7 over any User can connect to it

 

 

Thank you.

 

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


[OpenSIPS-Devel] RES: RES: RES: opensips register

2013-04-17 Thread Cleiton Diniz
tail -f /var/log/syslog

Apr 17 16:27:45 OpenSips opensips: CRITICAL:core:yyerror: parse error in config 
file /usr/local/etc/opensips/opensips.cfg, line 364, column 16-17: unknown 
command t_on_reply, missing loadmodule?

Apr 17 16:27:45 OpenSips opensips: CRITICAL:core:yyerror: parse error in config 
file /usr/local/etc/opensips/opensips.cfg, line 365, column 18-19: unknown 
command t_on_failure, missing loadmodule?

Apr 17 16:27:45 OpenSips opensips: CRITICAL:core:yyerror: parse error in config 
file /usr/local/etc/opensips/opensips.cfg, line 369, column 18-19: unknown 
command add_rr_param, missing loadmodule?

Apr 17 16:27:45 OpenSips opensips: CRITICAL:core:yyerror: parse error in config 
file /usr/local/etc/opensips/opensips.cfg, line 372, column 15-16: unknown 
command t_relay, missing loadmodule?

Apr 17 16:27:45 OpenSips opensips: CRITICAL:core:yyerror: parse error in config 
file /usr/local/etc/opensips/opensips.cfg, line 373, column 19-20: unknown 
command send_reply, missing loadmodule?

Apr 17 16:27:45 OpenSips opensips: CRITICAL:core:yyerror: parse error in config 
file /usr/local/etc/opensips/opensips.cfg, line 387, column 21-22: unknown 
command nat_uac_test, missing loadmodule?

Apr 17 16:27:45 OpenSips opensips: CRITICAL:core:yyerror: parse error in config 
file /usr/local/etc/opensips/opensips.cfg, line 388, column 21-22: unknown 
command fix_nated_contact, missing loadmodule?

Apr 17 16:27:45 OpenSips opensips: CRITICAL:core:yyerror: parse error in config 
file /usr/local/etc/opensips/opensips.cfg, line 390, column 21-22: unknown 
command rtpproxy_answer, missing loadmodule?

Apr 17 16:27:45 OpenSips opensips: CRITICAL:core:yyerror: parse error in config 
file /usr/local/etc/opensips/opensips.cfg, line 396, column 22-23: unknown 
command t_was_cancelled, missing loadmodule?

Apr 17 16:27:45 OpenSips opensips: ERROR:core:main: bad config file (121 errors)

 

 

tail -f /var/log/messages

Apr 17 16:21:59 OpenSips /usr/local/sbin/opensips[12229]: INFO:core:sig_usr: 
signal 15 received

Apr 17 16:21:59 OpenSips /usr/local/sbin/opensips[12227]: INFO:core:sig_usr: 
signal 15 received

Apr 17 16:21:59 OpenSips /usr/local/sbin/opensips[12231]: INFO:core:sig_usr: 
signal 15 received

Apr 17 16:21:59 OpenSips /usr/local/sbin/opensips[12228]: INFO:core:sig_usr: 
signal 15 received

Apr 17 16:21:59 OpenSips /usr/local/sbin/opensips[12226]: INFO:core:sig_usr: 
signal 15 received

Apr 17 16:21:59 OpenSips /usr/local/sbin/opensips[12225]: INFO:core:cleanup: 
cleanup

Apr 17 16:22:21 OpenSips opensips: WARNING:core:warn: warning in config file 
/usr/local/etc/opensips/opensips.cfg, line 50, column 13-16: tls support not 
compiled in

Apr 17 16:25:53 OpenSips mpt-statusd: detected non-optimal RAID status

Apr 17 16:26:52 OpenSips opensips: WARNING:core:warn: warning in config file 
/usr/local/etc/opensips/opensips.cfg, line 50, column 13-16: tls support not 
compiled in

Apr 17 16:27:45 OpenSips opensips: WARNING:core:warn: warning in config file 
/usr/local/etc/opensips/opensips.cfg, line 50, column 13-16: tls support not 
compile

 

 

De: devel-boun...@lists.opensips.org [mailto:devel-boun...@lists.opensips.org] 
Em nome de Cleiton Diniz
Enviada em: quarta-feira, 17 de abril de 2013 15:50
Para: 'OpenSIPS devel mailling list'; 'Bogdan-Andrei Iancu'
Cc: 'OpenSIPS users mailling list'
Assunto: [OpenSIPS-Devel] RES: RES: opensips register

 

Create file

 

opensips_residential_2013-4-17_15:48:32.cfg

 

changed name to opensips.cfg and try to start OpenSIPS of error PIN

 

 

 

De: devel-boun...@lists.opensips.org [mailto:devel-boun...@lists.opensips.org] 
Em nome de Cleiton Diniz
Enviada em: quarta-feira, 17 de abril de 2013 15:36
Para: 'Bogdan-Andrei Iancu'; 'OpenSIPS devel mailling list'
Cc: 'OpenSIPS users mailling list'
Assunto: [OpenSIPS-Devel] RES: opensips register

 

follow the steps using osipsconfig

 

that being accessed --- OpenSIPS Generate Script - Residential Script - 
Configure Residential Script - USE AUTH

 

added User

opensipsctl add 5050 12345

 

and yet I can log in and links to any User

 

De: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] 
Enviada em: quarta-feira, 17 de abril de 2013 13:26
Para: OpenSIPS devel mailling list
Cc: Cleiton Diniz; 'OpenSIPS users mailling list'
Assunto: Re: [OpenSIPS-Devel] opensips register

 

Hello Cleiton,

To control what users are allowed to registered in, you need to use 
authentication - to put your users in the subscriber table (you need to 
create the opensips DB with opensipsdbctl) - adding can be done with 
opensipsctl add  tool.

In your config, enable authentication for REGISTERs and calls - user make 
menuconfig or osipsconfig to generate a residential script with 
authentication support - this is available only starting with 1.8 version.

Regards,

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


On 04/17/2013 07:10 PM, Cleiton Diniz wrote: 

Hello, I want to use OpenSIPS as sip 

[OpenSIPS-Devel] Cachedb_Couchbase questions

2013-04-17 Thread Ryan Bullock
Hey all,

I am doing some work with opensips + couchbase and have started on a
patchset for the opensips couchbase driver to clean up a few things (better
error outputs, etc) and make some changes that we require before going
production.

One thing I am noticing are calls to lcb_get_last_error() after every
operation, even though the error on the callback is being stored in
last_error. In my quick testing the response from lcb_get_last_error()
seems to always be success even if the operation failed (such as due to a
connection failure), last_error shows the correct failure.

I am wondering if the checks to lcb_get_last_error could be removed? Or are
their instances where it would show an error not caught by last_error? I
don't see many uses of lcb_get_last_error in the libcouchbase examples and
they seem to all go off the error in the callback. The benefit I see is
being able to more easily report useful and relevant errors.

Input welcome.

Regards,

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