I have installed ser_0.8.14_i386.deb on Debian Testing (Sarge). I
have also installed from CVS serweb rel_0_8_12. I found solutions to
some of the problems I encountered by searching the archives but I
just could not find a solution for my constant numerical alias
problem.
Serweb is supposed to automatically increment numerical aliases for
new users but the users that i tried adding, both have the same
numerical aliases (first_alias_number). What coud be the problem?
Thanks in advance.
Holden
Diagnostics:
----------------------------------------------------
test# serctl alias show 82000
200 OK
<sip:johnny@test.net>;q=1.00;expires=567636634
<sip:kyne@test.net>;q=1.00;expires=567639620
----------------------------------------------------
test# serctl alias show johnny
404 Username johnny in table aliases not found
-----------------------------------------------------
Below are my configs:
ser.cfg
--------------------------------------------------
fifo="/tmp/ser_fifo"
fifo_mode=438
loadmodule "/usr/lib/ser/modules/mysql.so"
loadmodule "/usr/lib/ser/modules/sl.so"
loadmodule "/usr/lib/ser/modules/tm.so"
loadmodule "/usr/lib/ser/modules/rr.so"
loadmodule "/usr/lib/ser/modules/maxfwd.so"
loadmodule "/usr/lib/ser/modules/usrloc.so"
loadmodule "/usr/lib/ser/modules/registrar.so"
loadmodule "/usr/lib/ser/modules/auth.so"
loadmodule "/usr/lib/ser/modules/auth_db.so"
modparam("usrloc", "db_mode", 2)
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("rr", "enable_full_lr", 1)
route{
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if ( msg:len > max_len ) {
sl_send_reply("513", "Message too big");
break;
};
record_route();
if (loose_route()) {
t_relay();
break;
};
if (uri==myself) {
lookup("aliases");
if (method=="REGISTER") {
if (!www_authorize("test.net", "subscriber")) {
www_challenge("test.net", "0");
break;
};
save("location");
break;
};
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
if (!t_relay()) {
sl_reply_error();
};
}
Portions of config.php
----------------------------------------------
$this->db_host="localhost"; //database host
$this->db_name="ser"; //database name
$this->db_user="ser"; //database
conection user
$this->db_pass="heslo"; //database
conection password
$this->root_path="/webser/html/";
$this->root_uri="http://".$_SERVER['SERVER_NAME'];
$this->zonetab_file = "/usr/share/zoneinfo/zone.tab";
$this->mail_header_from="registrar(a)test.net";
$this->web_contact="sip:daemon@192.168.2.16";
$this->voice_silo_dir = '/var/spool/voicemail/';
$this->greetings_spool_dir = '/var/greetings/';
$this->fifo_server="/tmp/ser_fifo";
$this->prolog="/webser/html/prolog.html";
$this->separator="/webser/html/separator.html";
$this->epilog="/webser/html/epilog.html";
$this->title="iptel.org, the IP Telephony Site";
$this->realm=$this->domainname=$this->default_domain="test.net";
$this->first_alias_number=82000;
$this->infomail = "info(a)test.net";
$this->regmail = "registrar(a)test.net";
I have installed the latest SerWeb from the cvs directory .
Also am using 8.14 scr release . with 1.62 ser_mysql.sh to create the tables
I am able to login in as admin and see the admin tabs but when I long in as
a user I see no tabs at all.
I am missing something in the serweb config's or . ?
Thanks
Peter
I was hoping someone could help identify why I have errors in my
config file. When I try to start SER,I am told that it has failed and
there are three erros in my config file.
When I comment out the following line I can get rid of one error:
#loadmodule "/usr/local/lib/ser/modules/mysql.so"
I dont even understand why that is an error. Please help me to
understand why my config file is incorrect. Thank you.
#
# $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 andrei Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters ------------------------
#debug=3 # debug level (cmd line: -dddddddddd)
#fork=yes
#log_stderror=no # (cmd line: -E)
/* Uncomment these lines to enter debugging mode
debug=7
fork=no
log_stderror=yes
*/
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"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
#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"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
#loadmodule "/usr/local/lib/ser/modules/auth.so"
#loadmodule "/usr/local/lib/ser/modules/auth_db.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
modparam("usrloc", "db_mode", 0)
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
modparam("usrloc", "db_mode", 2)
# -- auth params --
# Uncomment if you are using auth module
#
#modparam("auth_db", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which true in this
config),
# uncomment also the following parameter)
#
#modparam("auth_db", "password_column", "password")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
# main routing logic
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 > max_len ) {
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
record_route();
# loose-route processing
if (loose_route()) {
t_relay();
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==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("xxx.xxx.xxx.xxx", "subscriber")) {
www_challenge("xxx.xxx.xxx.xxx", "0");
break;
};
save("location");
break;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
# forward to current uri now; use stateful forwarding; that
# works reliably even if we forward from TCP to UDP
if (!t_relay()) {
sl_reply_error();
};
}
-------------------Legal Disclaimer---------------------------------------
The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.
Hi Everybody,
I'm trying to make SER work with ASTERISK, ser as a proxy server and SIP terminator, and asterisk for other services like voicemail and International calls like an UAC (thing that I know SER is not able to do). I've configured SER with the following forward route, to forward all "1" beggining call phones to forward to my asterisk for international calls:
if (uri=~"^sip:8[0-9]{7}.*") {
forward( 10.0.18.3, 5061 );
break;
}
When I restart SER, it gives me this errors:
Jul 22 12:49:54 sipproxy /usr/local/sbin/ser[479]: ERROR: send_rtpp_command: can't connect to RTP proxy
Jul 22 12:49:54 sipproxy /usr/local/sbin/ser[479]: WARNING: rtpp_test: can't get version of the RTP proxy
Jul 22 12:49:54 sipproxy /usr/local/sbin/ser[479]: WARNING: rtpp_test: support for RTP proxyhas been disabled temporarily
I've also tried with the following rewritehost but it gives me the same error:
if (uri=~"^sip:8[0-9]{7}.*") {
rewritehost("10.0.18.3, 5061");
break;
}
I know that i'm missing something with RTP that i'm still working on.
I've tried to look for it at google, but find nothing interesting.
Do anyone know what is going on ? My ser.cfg is attached.
--
Felipe Martins
Linux System Administrator
Tep Solution Provider
Mundivox Communications
Rua Lauro Muller, 116/Sala 505
RJ - Brasil - 22290-906
Tel.: 55 21 3820-8839
Fax.: 55 21 3820-8844
Greetings,
I have two questions. What function() would i use to get a bool back
indicating whether a certain user is in the usrloc given i only know the
'username' field of the usrloc table? Secondly how can I get the contact
URI/IP address of a user given again I only know the 'username' field of
the usrloc table?; this will be used in a forward() statement.
Thank you.
Hi there,
I'm trying to forward some destinations, but there are accounts/users starting the same way connected to the server.
Example
account: 123456
When ser see that it forwards the call to other ser located at 12.34.56.79. I want my users to use prefix for local calls.
Example:
calling 699123456 goes to local server user 123456 not to 12.34.56.79. Please check my code and tell me what's
wrong:
...
if (uri=~"^sip:1234") {
log(0, "\n\n************ Office 1 ***********\n");
strip(0);
rewritehostport("12.34.56.79:5060");
append_branch("12.34.56.79");
t_relay_to_udp("12.34.56.79", "5060");
append_hf("P-hint: VoipSwitch GATEWAY\r\n");
log(0, "********************************************\n\n\n");
break;
};
if (uri=~"^sip:051") {
log(0, "\n\n************ Office 2 ***********\n");
strip(0);
rewritehostport("12.34.56.78:5060");
append_branch("12.34.56.78");
t_relay_to_udp("12.34.56.78", "5060");
append_hf("P-hint: VoipSwitch GATEWAY\r\n");
log(0, "********************************************\n\n\n");
break;
};
if (uri=~"^sip:699") {
strip(3);
route(1);
break;
};
}
else {
sl_send_reply("399", "Your account balance is low!");
};
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
append_hf("P-hint: usrloc applied\r\n");
route(1);
}
route[1] {
if (isflagset(6)) {
force_rtp_proxy();
};
t_on_reply("1");
if (!t_relay()) {
sl_reply_error();
};
}
onreply_route[1] {
if (isflagset(6) && status =~ "(183)|2[0-9][0-9]") {
fix_nated_contact();
force_rtp_proxy();
} else if (nat_uac_test("1")) {
fix_nated_contact();
};
}
Thanks in advance :)!
Pavel Siderov
Hi All,
Anyone here uses the Linksys PAP2-NA(open version)?
I'm having problem right now because I have the 2-port Linksys PAP2-NA.
The problem is that when one port(any of the ports) is being use to call pstn
the other port cannot make any more calls, meaning they can make class one at
a time only, this occurs only when they call pstn, but when they are calling
local extensions on our sip server, no problem, both ports works simultaneously.
I did a packet sniff, I'm seeing that the gateway is sending service
unavailble to my SIP server. Is this a problem in the Linksys, gateway or the
SIP server itself?
Thank you in advanced
regards,
Ron
-- --
iTouch Communications, Inc.
Hi,
Does ser can listen several different port?
thanks.
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
How can make SER flags status 404 for accounting and send a stop accouting record to the radius server?
Am currently doing accounting for calls going to PSTN network and it's working fine if the call is completed but if I get an error like status 404 then no stop accounting record is sent to the radius server.
Thanks.
Mohamed
---------------------------------
Post your free ad now! Yahoo! Canada Personals
Hello list.
Regarging to this module i have a question. i want to implement
a "domain" list with all the codes, or at least as many as i can use. The
problem is that i can't have a "terminating" digit for every code. The way
a user dial a number in my system is something like :
00 + Country Code + City Code + Number.
I want to match the Country Code + City Code. but I can't add a
"terminating" digit for every call or even more, force to the enduser to add
a "terminating" digit before the Country Code + City Code when he's dialing,
that only will add more confusion.
My question is : Is possible to avoid or bypass the "terminating digit"? and
maybe have a match with the best code?.
56+2+1234567 will match with 56+2
56+9+1235678 will match with 56+9
and so on.....
Hope that someone could give me a hand here.
Ricardo Martinez Ogalde.