Hi everyone,
I am trying to use Ser for the first time. I finally compiled it and it is running with the default configuration.
But I don't know the needed mysql tables/users/databases. Where can I find this information ?
In fact, I didn't want to use mysql for first tests but serctl command requires it.
Is there another way of adding users ?
Btw, with no user I tried to register a sip softphone. ser responses with "200 ok" but the phone does not get registered.
What am I doing wrong ?
Simply, I need basic configuration information to register my first sip user.
Thanks for your help,
ilker
<http://271570.sigclick.mailinfo.com/sigclick/0A060704/06024D06/0E004A03/181…>
_____________________________________________________________________________________________________________________________________________
Bu e-posta mesaji kisiye ozel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez.
This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
_____________________________________________________________________________________________________________________________________________
Hello,
I have been looking into the code. strncasecmp does case insensitive
comparison, so this part is correct.
My guess is that the hash function should use the lowercase domain.
In my case I have in the domain table "i-call.gr" and "sip.i-call.gr".
If the From header is ....(a)i-Call.gr then is_from_local() returns false
(in caching mode).
I hope this helps
George
> -----Original Message-----
> From: Bogdan-Andrei Iancu [mailto:bogdan@voice-system.ro]
> Sent: Monday, March 13, 2006 11:32 AM
> To: Papadopoulos Georgios
> Cc: daniel(a)voice-system.ro; users(a)openser.org; Juha Heinanen
> Subject: Re: [Users] Domain: is_from_local() is case
> sensitive in caching mode.
>
> Hi Georgios,
>
> indeed, the search through the cache is done case sensitive
> via strncasesmp().
>
> Juha, souldn't the domain matching be case insensitive?
>
> regards,
> bogdan
>
>
> Georgios Papadopoulos wrote:
>
> >I am pretty sure (I am using OpenSER 1.0.0).
> >What about the part where the table is cached into memory? Do you do
> >select lower(domain) from domain? I tried briefly to find
> the relevant
> >piece of code but I couldn't.
> >
> >George
> >
> >
> >
> >
> >>-----Original Message-----
> >>From: Daniel-Constantin Mierla [mailto:daniel@voice-system.ro]
> >>Sent: Saturday, March 11, 2006 3:50 PM
> >>To: Papadopoulos Georgios
> >>Cc: users(a)openser.org
> >>Subject: Re: [Users] Domain: is_from_local() is case sensitive in
> >>caching mode.
> >>
> >>Hello,
> >>
> >>On 03/10/06 17:51, Papadopoulos Georgios wrote:
> >>
> >>
> >>>Hello,
> >>>
> >>>I have noticed that is_from_local in the Domain module is
> >>>case-sensitive if the module is in caching mode. In
> >>>
> >>>
> >>non-caching mode
> >>
> >>
> >>>it is case insensitive.
> >>>Could this be fixed in the future?
> >>>
> >>>
> >>>
> >>are you sure? I was looking in the sources and the comparison is
> >>case-insensitive.
> >>
> >>Cheers,
> >>Daniel
> >>
> >>
> >>
> >>>thank you
> >>>
> >>>George
> >>>
> >>>Disclaimer
> >>>The information in this e-mail and any attachments is
> >>>
> >>>
> >>confidential. It is intended solely for the attention and
> use of the
> >>named addressee(s). If you are not the intended recipient,
> or person
> >>responsible for delivering this information to the intended
> recipient,
> >>please notify the sender immediately. Unless you are the intended
> >>recipient or his/her representative you are not authorized to, and
> >>must not, read, copy, distribute, use or retain this message or any
> >>part of it. 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.
> >>
> >>
> >>>
> >>>_______________________________________________
> >>>Users mailing list
> >>>Users(a)openser.org
> >>>http://openser.org/cgi-bin/mailman/listinfo/users
> >>>
> >>>
> >>>
> >>>
> >
> >
> >
> >_______________________________________________
> >Users mailing list
> >Users(a)openser.org
> >http://openser.org/cgi-bin/mailman/listinfo/users
> >
> >
> >
>
>
Disclaimer
The information in this e-mail and any attachments is confidential. It is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or person responsible for delivering this information to the intended recipient, please notify the sender immediately. Unless you are the intended recipient or his/her representative you are not authorized to, and must not, read, copy, distribute, use or retain this message or any part of it. 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.
Hi Georgios,
indeed, the search through the cache is done case sensitive via
strncasesmp().
Juha, souldn't the domain matching be case insensitive?
regards,
bogdan
Georgios Papadopoulos wrote:
>I am pretty sure (I am using OpenSER 1.0.0).
>What about the part where the table is cached into memory? Do you do
>select lower(domain) from domain? I tried briefly to find the relevant piece
>of code but I couldn't.
>
>George
>
>
>
>
>>-----Original Message-----
>>From: Daniel-Constantin Mierla [mailto:daniel@voice-system.ro]
>>Sent: Saturday, March 11, 2006 3:50 PM
>>To: Papadopoulos Georgios
>>Cc: users(a)openser.org
>>Subject: Re: [Users] Domain: is_from_local() is case
>>sensitive in caching mode.
>>
>>Hello,
>>
>>On 03/10/06 17:51, Papadopoulos Georgios wrote:
>>
>>
>>>Hello,
>>>
>>>I have noticed that is_from_local in the Domain module is
>>>case-sensitive if the module is in caching mode. In
>>>
>>>
>>non-caching mode
>>
>>
>>>it is case insensitive.
>>>Could this be fixed in the future?
>>>
>>>
>>>
>>are you sure? I was looking in the sources and the comparison
>>is case-insensitive.
>>
>>Cheers,
>>Daniel
>>
>>
>>
>>>thank you
>>>
>>>George
>>>
>>>Disclaimer
>>>The information in this e-mail and any attachments is
>>>
>>>
>>confidential. It is intended solely for the attention and use
>>of the named addressee(s). If you are not the intended
>>recipient, or person responsible for delivering this
>>information to the intended recipient, please notify the
>>sender immediately. Unless you are the intended recipient or
>>his/her representative you are not authorized to, and must
>>not, read, copy, distribute, use or retain this message or
>>any part of it. 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.
>>
>>
>>>
>>>_______________________________________________
>>>Users mailing list
>>>Users(a)openser.org
>>>http://openser.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>
>>>
>
>
>
>_______________________________________________
>Users mailing list
>Users(a)openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>
>
>
Hi, and a good evening to you all.
I'm having a beer (or two) and found out that I oughta try something
"new" :-)
I've started (I've done it successfully before, but then in a standalone
server scenario) to implement the OSP module for peering.
However, I see in my logs, that OpenSER is complaining about buffer
sizes......
What I'm worried about is the ERROR message beneath. I'm afraid that
this is messing up my routing.
Any comments?
----
osp: there is 1 osp routes, call-id '692039019(a)10.0.0.18',
transaction-id '1142102578275'
Mar 11 19:42:58 proxy-02 /usr/sbin/openser[21464]: xl_printf: no more
space for text [1950183213]
Mar 11 19:42:58 proxy-02 /usr/sbin/openser[21464]: xl_printf: buffer
overflow -- increase the buffer size...
Mar 11 19:42:58 proxy-02 /usr/sbin/openser[21464]:
ERROR:rr:w_add_rr_param: failed to print the format
----
Hi,
The MiniSIP project team is proud to announce that:
* MiniSIP for Windows XP (2K ... not tested) can be downloaded from the webpage.
* MiniSIP for Pocket PC is on the way ... we'll keep you posted.
* The project's webpage has been updated.
Check it out at:
http://www.minisip.org/
The MiniSIP Team
Hi all,
Having this error come up after following all of the instructions and troubleshooting.
Function aggregate_methods() doesn't exists. Try install Classkit extension. http://pecl.php.net/package/classkit
I am running FC4 with php, php-mysql, php-devel, php-pear, and mysql all installed with yum from the default repositories.
I went ahead and put the serweb folder in my /var/www/html directory to see if I could get it working with the intent of moving it and setting up an alias later.
Here are some snippets of my many different configuration files.
_php.ini:_
extension_dir = "/usr/lib/php/modules"
extension=classkit.so
-- also the mysql.so files are loaded from the /etc/php directory
_config_data_layer.php_
$config->data_sql->type="mysql"; //type of db host, enter "mysql" for MySQL or "pgsql" for PostgreSQL
$i=0;
$config->data_sql->host[$i]['host']="localhost"; //database host
$config->data_sql->host[$i]['port']=""; //database port - leave empty for default
$config->data_sql->host[$i]['name']="ser"; //database name
$config->data_sql->host[$i]['user']="ser"; //database conection user
$config->data_sql->host[$i]['pass']="******"; //database conection password
_config_paths.ini_
$config->root_path="/serweb/html/";
/* roo uri of your server */
if (isset($_SERVER['rcsip.myservername.ext']))
$config->root_uri="http://".$_SERVER['rcsip.myservername.ext'];
else
$config->root_uri="";
_php.conf_
LoadModule php5_module modules/libphp5.so
AddHandler php5-script .php .phtml
AddType text/html .php .phtml
DirectoryIndex index.php
_ser.cfg_
debug=3 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=no # (cmd line: -E)
/* Uncomment these lines to enter debugging mode
fork=no
log_stderror=yes
*/
#alias=tcp:myip:5060
#alias=udp:myip:5060
#check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
port=5060
children=4
fifo="/tmp/ser_fifo"
fifo_db_url="mysql://ser:heslo@localhost/ser"
# ------------------ module loading ----------------------------------
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/uri.so"
loadmodule "/usr/local/lib/ser/modules/uri_db.so"
loadmodule "/usr/local/lib/ser/modules/domain.so"
loadmodule "/usr/local/lib/ser/modules/nathelper.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
loadmodule "/usr/local/lib/ser/modules/exec.so"
# ----------------- setting module-specific parameters ---------------
modparam("auth_db|domain|uri_db|usrloc", "db_url", "mysql://ser:******@localhost/ser")
modparam("auth_db", "calculate_ha1", 1)
modparam("auth_db", "password_column", "password")
modparam("nathelper", "rtpproxy_disable", 0)
modparam("nathelper", "natping_interval", 30)
modparam("usrloc", "db_mode", 2)
modparam("registrar", "nat_flag", 6)
modparam("rr", "enable_full_lr", 1)
Hi,
Could you provide me a sample or any
link that points to a detailed howto.
Thanks,
Ryan
At 04:32 AM 3/13/2006, Voipers Portugal wrote:
>Yes, that is possible. That´s what LRC is used for.
>
>Jose Simoes
>
>
>On 3/11/06, Ryan Pagquil
><<mailto:rpagquil@philonline.com>rpagquil(a)philonline.com> wrote:
>Hi,
> I want to use the LCR module of SER, but it is not included on the
>latest release of SER ( 0.9.6). Also is it possible to use this module
>to route especial calls to a certain gateway based on the country
>code of the destination? For example all calls to the Philippines are
>bound to a specific gateway and the decision
>will be based on the destination:
>
>destination is: 00632xxxxxxx ; i strip the leading 00 and to
>determine that it is a PSTN call
>then i want this call to be forwarded to a specific gateway. Can I do
>this with LCR module? How? Sample please...
>
>Thanks in advance,
>Ryan
>
>_______________________________________________
>Serusers mailing list
><mailto:serusers@lists.iptel.org>serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
Hi Helge,
I will take a look at the error. Are you using the latest code for OpenSER
and the module or a particular version?
Thanks,
Dmitry
> Date: Sat, 11 Mar 2006 21:09:38 +0100
> From: Helge Waastad <helge(a)smartnet.no>
> Subject: [Users] OSP and buffer size
> To: users(a)openser.org
> Message-ID: <1142107778.21478.10.camel(a)localhost.localdomain>
> Content-Type: text/plain
>
> Hi, and a good evening to you all.
> I'm having a beer (or two) and found out that I oughta try something
> "new" :-)
>
> I've started (I've done it successfully before, but then in a standalone
> server scenario) to implement the OSP module for peering.
> However, I see in my logs, that OpenSER is complaining about buffer
> sizes......
> What I'm worried about is the ERROR message beneath. I'm afraid that
> this is messing up my routing.
>
> Any comments?
> ----
>
> osp: there is 1 osp routes, call-id '692039019(a)10.0.0.18',
> transaction-id '1142102578275'
> Mar 11 19:42:58 proxy-02 /usr/sbin/openser[21464]: xl_printf: no more
> space for text [1950183213]
> Mar 11 19:42:58 proxy-02 /usr/sbin/openser[21464]: xl_printf: buffer
> overflow -- increase the buffer size...
> Mar 11 19:42:58 proxy-02 /usr/sbin/openser[21464]:
> ERROR:rr:w_add_rr_param: failed to print the format
Hi,
U can use Serweb with OpenSER aswell.
You just need to modify fifo references
default db user/passwd and a couple of tablenames.(If I do not mistaken)
br hw
---
Hello to all
I just wanted to know if exists a web interface like serweb, but for
OpenSER.
Thanks
Joao Pereira
Hi, Guys...
As the MySQL problem is aparently solved I’m facing a Radius issue… I'm using FreeRadius 1.0.4, RadiusCliente-NG 0.5.2 and OpenSER 1.0.1.
If I duplicate the configs used with SER (and that it works fine) I’m unable to authenticate my UA (the same that authenticate with SER). The message with “debug=4” is:
Mar 1 15:41:43 dell openser-TEST[20789]: check_nonce(): comparing [4405ec129258d5cf9c016ade69cf37e33b5af52b] and [4405ec129258d5cf9c016ade69cf37e33b5af52b]
Mar 1 15:41:43 dell openser-TEST[20789]: rc_check_reply: received invalid reply digest from RADIUS server
Mar 1 15:41:43 dell openser-TEST[20789]: ERROR:auth_radius:radius_authorize_sterman: rc_auth failed
So I supposed that there were some failed configuration, I looked at my “radiusd.conf” and finded:
modules {
...
digest {
}
...
}
authorize {
preprocess
auth_log
suffix
digest
sql
}
authenticate {
digest
}
As my FreeRadius back-end is a MySQL database, the 'sql' statement in authorize seems ok. And so do 'digest' in 'autheticate' section.
The question remains: Why are OpenSER complain on Radius response? Maybe it's because of the sterman schema (?)....
Anyway, I try to test the server using the radtest tool. The output seems good to me:
# radtest 8201(a)DOMAIN.VALID 8201 127.0.0.1 12345 MyServerPassword
Sending Access-Request of id 255 to 127.0.0.1:1812
User-Name = "8201(a)DOMAIN.VALID"
User-Password = "8201"
NAS-IP-Address = sip
NAS-Port = 12345
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=255, length=35
Reply-Message = "Authenticated"
So I discard FreeRadius config. Is this related on the value of “Reply-Message”? I already read all Radius material that I found on OpenSER web-page…
What am I doing wrong? What am I missing? As this same configs work with SER 0.9.2, why did it not with OpenSER 1.0.x?
Edson.