Hi,
My company wants me to hop on to Linux/Unix from Bill Gates, and to make it
even better I am suppose to get upto speed writing modules to enhance our
SER deployment.
What experience do I have writing in ANSI C "0", "ZERO", "nada",
BUT, I have been programming for over three yrs now so the logic is not an
issue.
My question, whats the best way to start, I am currently going through the
documentation on SER Admin, need to have a plan.
I know no one likes newbees, but hey any help would be highly appreciated.
Thanks
Viq
Hi,
I read somewhere that B2BUA will helpm with regards to some BYE being absent
sometimes. Would an rtpproxy do the same job as a B2BUA as far as making
sure the BYE won't get lost?
TIA
Regards,
Nhadie
HI,
first: please (CC) the mailing list in order to others can see answers.
Try enable logging in serweb (config variable $config->enable_loging =
true) and see the log file. There are more descriptive errror messages.
You may also try set log level to debug.
Karel
Nhadie napsal(a):
> I also get this error when I was able to logged under
> http://www.mydomain.com/serweb
>
> My Account
> DB Error: unknown error, file:
> /usr/local/serweb/application_layer/apu_aliases.php:112
>
> Karel Kozlik wrote:
>
>> Hello,
>> are you able to check content of your mysql tables? Check table
>> admin_privileges if contain these records:
>>
>> username | domain | priv_name | priv_value
>> -------------------------------------------------------
>> admin | your.domain | is_admin | 1
>> admin | your.domain | change_privileges | 1
>>
>>
>> Karel
>>
>> Nhadie napsal(a):
>>
>>> Hi All,
>>>
>>> I can login using admin and other users when I'm at
>>> http://www.mydomain.com/serweb/
>>> but when I use the login interface at
>>> http://www.mydomain.com/serweb/admin I can't login as admin/heslo
>>>
>>> What could I be missing here? TIA
>>>
>>> Regards,
>>> Nhadie
>>>
>>
>>
>
>
Sep 29 19:44:11 dns ser: WARNING: fix_socket_list: could not rev.
resolve 192.168.0.254
Sep 29 19:44:11 dns ser: WARNING: fix_socket_list: could not rev.
resolve 192.168.0.254
Sep 29 19:44:11 dns /usr/local/sbin/ser[19346]: Maxfwd module- initializing
Sep 29 19:44:11 dns /usr/local/sbin/ser[19346]: new_connection(): Access
denied for user: 'serro@localhost' (Using password: YES)
Sep 29 19:44:11 dns /usr/local/sbin/ser[19346]: db_init(): Could not
create a connection
Sep 29 19:44:11 dns /usr/local/sbin/ser[19346]: ERROR: auth_db_ver:
unable to open database connection
Sep 29 19:44:11 dns /usr/local/sbin/ser[19346]: auth_db:str_fixup():
Error while querying table version
Sep 29 19:44:11 dns /usr/local/sbin/ser[19346]: ERROR: fix_expr :
fix_actions error
Q:
1. Where do the Warning 192.168.0.254 come from? My network does not use
192.168.0.x
2. Access denied is most likely the error for all following errors. Note
the quote marks, they are around the entire name and not
'serro'@'localhost' I am not sure if that makes a difference.
The access to the database is for me not clear in the moment. We have a
user ser with password serpassword and a user serro with password
serropassword. We have also admin with the password adminpassword.
I don't find the user/passwords in the config files.
My ser.cfg looks like that:
grep -v ^[$,#] ser.cfg
/* Uncomment these lines to enter debugging mode
fork=no
log_stderror=yes
*/
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
fifo="/tmp/ser_fifo"
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/textops.so"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "db_url", "mysql://ser:serpassword@localhost/ser")
modparam("auth", "secret", "myphrase")
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("rr", "enable_full_lr", 1)
route{
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if (msg:len >= 2048 ) {
sl_send_reply("513", "Message too big");
break;
};
# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy; that's
# particularly good if upstream and downstream entities
# use different transport protocol
if (!method=="REGISTER") record_route();
# subsequent messages withing a dialog should take the
# path determined by record-routing
if (loose_route()) {
# mark routing logic in request
append_hf("P-hint: rr-enforced\r\n");
route(1);
break;
};
if (!uri==myself) {
# mark routing logic in request
append_hf("P-hint: outbound\r\n");
route(1);
break;
};
# if the request is for other domain use UsrLoc
# (in case, it does not work, use the following command
# with proper names and addresses in it)
if (uri==trace-intl.net) {
if (method=="REGISTER") {
if (!www_authorize("trace-intl.net",
"subscriber")) {
www_challenge("trace-intl.net", "0");
break;
};
save("location");
break;
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
break;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
append_hf("P-hint: usrloc applied\r\n");
route(1);
}
route[1]
{
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
if (!t_relay()) {
sl_reply_error();
};
}
Hi,
I've installed 4 RPM files on a Fedora CORE 3.
The RPM are:
ser-0.9.3-0.i386.rpm
php-pecl-classkit-0.4-2.i386.rpm
ser-mysql-0.9.3-0.i386.rpm
serweb-0.9.3-0.i386.rpm
I enabled the httpd and mysql service.
I'm not sure what to do next.
All the Documentation I have is related to source flies and not RPM.
Ser is working but I don't know how to configure the serweb in order for
it to work.
I tried: http://
but I get an error.
where can I find documentation about ser web?
Thanks,
Elad.
Hi,
I've once asked Serusers list about problem with sequential forking and
failure_routes[]. SER pickes lower result code from branches. This is
how "tm" module is done (t_check_status(), ...). Mail was from 05
September 2005, titled:
"t_check_status() - why it is checking for winning reply in failure_routes?"
Received many answers, thanks for it.
I was responded by Klaus Darilion on 06/09 that SER policy is kept
according to RFC - we pick LOWEST response code. So it is impossible in
example to make sequential (serial) routing based on "486" to third
branch, when first branch responded "404" and second branch responded
"486". There will always be "404".
I was thinking yesterday about writing just another alternative function
for t_check_status() and t_pick_branch() in tm module, to do what I
need. That is: checking if error code is something useful, that tells me
what happened downstream in current branch (busy? timed out?).
But today I was reading this article on OpenSER:
http://openser.org/pipermail/users/2005-June/000004.html
Seems it is possible to use OpenSER to make sequential forking with
more than one failure_route[]? There is fix to tm module that pickes
result only from last set of forked branches?
Am I correct? Thanks for comments.
--
Regards,
Arek Bekiersz
Dear Ludovic Zipp-Fuhrer,
Thank you very much!. They begin to work!
And now I can move on with acc.
>In radiusclient.conf you have to set the bind parameters with the IP of
>your client. I got similar errors because I don't set this parameter
>correctly. I hope it helps you.
>
>
>zhangshuai a écrit :
>> Dear Ludovic Zipp-Fuhrer,
>>
>>
>> What do you mean exactly? Whose configuration files? How to check it?
>>
>> The number "DA61FC29" in the error message is the hexadecimal value of the ip address of radius server.
>>
>>
>>
>>
>>>did you set the good bind addresses in the configuration files?
>>>
>>>
>>>
>>>zhangshuai a écrit :
>>>
>>>>Hi all,
>>>>
>>>>
>>>>I wish to use softphone X-lite on SER and radius in db_mode. When I installed both freeradius 1.0.4 and radiusclient 0.4.3 on the same server which ser 0.8.14 has installed on, I could log in X-lite through radius authorization. And now I want radiusclient (on server A) to send the request to a remote radius server (on server B) to realize authorization. I have changed those config files: /usr/local/etc/radiusclient/servers, /usr/local/etc/radiusclient/radiusclient.conf and /usr/local/etc/raddb/clients.conf as the document (http://www.iptel.org/ser/doc/ser_radius/ser_radius.html#AEN193) did. Then I test the radius server as the above document said on server A: radclient -f digest server B auth testing123 and I received expected replied message from server B.
>>>>
>>>>But when I log in x-lite, there are error messages:
>>>>
>>>>Sep 29 17:11:06 localhost ser[4408]: rc_ip_hostname: couldn't look up host by addr: DA61FC29
>>>>Sep 29 17:11:06 localhost ser[4408]: rc_send_server: no reply from RADIUS server unknown:1812
>>>>
>>>>How come? Did I mis-config anything?
>>>>
>>>>Many thanks for your reply!
>>>>
>>>>
>>>>Shuai
>>>>http://www.goldentek.biz
>>>>
>>>>
>>>>_______________________________________________
>>>>Serusers mailing list
>>>>Serusers(a)iptel.org
>>>>http://mail.iptel.org/mailman/listinfo/serusers
>>>>
>>>
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Serusers mailing list
>> Serusers(a)iptel.org
>> http://mail.iptel.org/mailman/listinfo/serusers
>
= = = = = = = = = = = = = = = = = = = =
I have configured ser with radius accounting and I see accounting records
being generated successfully in the file system. I have also configured
accounting to mysql. Successful calls are logged to mysql correctly but
unsuccessful calls are not. When I run radius -X and watch what happens I
see the following:
rlm_sql (sql): Unsupported Acct-Status-Type = 15
modcall[accounting]: module "sql" returns noop for request 1
dictionary.ser contains the following line:
VALUE Acct-Status-Type Failed 15 # RFC2866, acc
I have added the contents of dictionary.ser to the radiusclient/dictionary
and radiusclient-ng/dictionary files. I have included dictionary.ser in
raddb/dictionary.
I'm sure there's a configuration step I've missed. Could anyone suggest some
other things to check?
Thanks
Cameron
In ser 0.9.3 I am seeing the following problem with a parallel forking scenario. The SER is sending the final Request ACK to the wrong location every time. Is there a way to fix this. See below:
Endpoint (xyz(a)1.1.1.1) sends Invite(abc123(a)proxy.com) to the SER.
SER looks up location and then sends the following three messages:
TRYING back to (xyz(a)1.1.1.1)
INVITE to abc123(a)2.2.2.2
INVITE to abc123(a)3.3.3.3
This looks good so far.
SER then gets back ringing from both endpoints and sends along to xyz(a)1.1.1.1
abc123(a)3.3.3.3 answers the call and sends back OK
SER then sends OK to xyz(a)1.1.1.1 - Still good
SER then sends CANCEL to abc123(a)2.2.2.2
abc123(a)2.2.2.2 responds with 200 Canceling - so far so good.
Now xyz(a)1.1.1.1 sends the ACK to (abc123(a)proxy.com) - Still looks good.
But now after looking up location for abc123 SER sends the ACK to the wrong endpoint abc123(a)2.2.2.2
What am I doing wrong? SER always sends the ACK back to the first address in the list as shown by serctl ul show abc123. Is there a way to correct this so that SER knows the correct endpoint to relay the ACK to? Seems like it should understand which endpoint sent back the OK to the original INVITE and then send the ACK to that endpoint and not the first one in the list after a location lookup.
thanks,
Jim