I'm new to SER.
It's easy enough to install ser-0.8.12-0.i386.rpm and
ser-mysql-0.8.12-0.i386.rpm with Fedora Core 1 but just can't get the
acc.so working after adding the following in ser.cfg
modparam("acc", "log_level", 1)
modparam("acc", "log_flag", 1)
modparam("acc", "db_url", "mysql://ser:heslo@localhost/ser")
Apprecaite if anyone can tell me does acc.so work with mysql for the rpm
install.
Willie
I'm trying to direct requests to registered users to another proxy which has an application server. Right now the proxy simply sends a 404 back. In that case I want to simply complete the call. What I am doing is looping until the ser has had enough. I've tried to set a flag to prevent it but the
flag is in fact never set although the logs indicate it's the same transaction. Any comments?
debug=3
fork=yes
log_stderror=no
dns=no
rev_dns=no
fifo="/tmp/ser_fifo"
fifo_db_url="mysql://ser:heslo@localhost/ser"
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/exec.so"
loadmodule "/usr/local/lib/ser/modules/xlog.so"
modparam("usrloc", "db_mode", 1)
modparam("rr", "enable_full_lr", 1)
route {
# ------------------------------------------------------------------------
# Sanity Check Section
# ------------------------------------------------------------------------
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483", "Too Many Hops");
break;
};
if (msg:len > max_len) {
sl_send_reply("513", "Message Overflow");
break;
};
xlog("L_NOTICE", "Method <%rm> r-uri <%ru>\n");
# ------------------------------------------------------------------------
# Record Route Section
# ------------------------------------------------------------------------
if (method != "REGISTER") {
record_route();
};
# ------------------------------------------------------------------------
# Loose Route Section
# ------------------------------------------------------------------------
if (loose_route()) {
route(1);
break;
};
# ------------------------------------------------------------------------
# Call Type Processing Section
# ------------------------------------------------------------------------
if (uri != myself) {
route(1);
break;
};
if (uri == myself) {
if (method == "REGISTER") {
route(2);
break;
};
if (!lookup("location")) {
sl_send_reply("404", "User Not Found");
break;
};
route(1);
};
}
route[1] {
# ------------------------------------------------------------------------
# Default Message Handler
# ------------------------------------------------------------------------
xlog("L_NOTICE", "route[1] *****\n");
t_on_reply("1");
if(isflagset(1))
{
xlog("L_NOTICE", "RELAYING.\n");
resetflag(1);
if (!t_relay()) {
sl_reply_error();
break;
};
};
t_on_failure("1");
t_relay_to_udp("app_servers_address", "5060");
}
route[2] {
# ------------------------------------------------------------------------
# REGISTER Message Handler
# ------------------------------------------------------------------------
if (!save("location")) {
sl_reply_error();
};
}
onreply_route[1] {
xlog("L_NOTICE", "Reply status %rs: Reason %rr\n");
}
failure_route[1] {
setflag(1);
xlog("L_NOTICE", "FAILURE LOGIC.\n");
revert_uri();
append_branch();
t_relay();
}
Greg Martin
Technology & Operations
TELUS Communication Inc.
office: 780-493-2786
cell: 780-718-4139
Hi Again!
Please help .. I really need it so badly ..
thanks,
ed
Hi!
my accounting is still not working though im not receiving any error
message during my startup.
Its nto logging my transaction on my db.
Can you please check my ser.cfg file below .. Please put your comments ..
thanks,
ed
======================
debug=7
#fork=no
#log_stderror=yes
check_via=no
dns=no
rev_dns=no
port=5060
#children=4
fifo="/tmp/ser_fifo"
# ------------------ module loading ----------------------------------
loadmodule "/usr/local/ser/lib/ser/modules/mysql.so"
loadmodule "/usr/local/ser/lib/ser/modules/sl.so"
loadmodule "/usr/local/ser/lib/ser/modules/tm.so"
loadmodule "/usr/local/ser/lib/ser/modules/rr.so"
loadmodule "/usr/local/ser/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/ser/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/ser/lib/ser/modules/registrar.so"
loadmodule "/usr/local/ser/lib/ser/modules/auth.so"
loadmodule "/usr/local/ser/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/ser/lib/ser/modules/acc.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
modparam("usrloc", "db_mode", 1)
modparam("usrloc", "db_url","mysql://ser:heslo@localhost/ser")
# -- auth params --
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
# -- rr params --
modparam("rr", "enable_full_lr", 1)
# -- acc params --
modparam("acc", "log_level", 1)
modparam("acc", "log_flag", 1)
modparam("acc", "log_missed_flag", 3)
modparam("acc", "db_url", "mysql://ser:heslo@localhost/ser")
modparam("acc", "db_flag", 2)
modparam("acc", "failed_transactions", 1)
# ------------------------- request routing logic -------------------
alias=test.com
# main routing logic
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=~"test.com") {
if (method=="REGISTER") {
setflag(1);
setflag(2);
if (!www_authorize("test.com", "subscriber")) {
www_challenge("test.com", "0");
break;
};
save("location");
break;
};
lookup("aliases");
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
if (!t_relay()) {
sl_reply_error();
};
}
======================================
At 02:47 PM 4/26/2005, Barry Murphy wrote:
>Mine works, just I dont get the BYE into mysql, even though I see it in ngrep.
>
>Secondly if i call my PBX (Asterisk) via ser and the asterisk hangs up
>after giving the time, the call doesnt end on SER it remains connected.
>
>Stupid stupid thing :(
>
>Barry
>
>----- Original Message -----
>From: <mailto:edgardo.g@pacific.net.ph>Edgardo O. Gonzales II
>To: <mailto:kofi@radiocomplex.com>Kofi Obiri-Yeboah
>Cc: <mailto:serusers@lists.iptel.org>serusers(a)lists.iptel.org
>Sent: Tuesday, April 26, 2005 6:29 PM
>Subject: RE: [Serusers] ACC into mysql
>
>Thanks again for your help .. Here's my running ser.cfg
>Hope you can help me make my accounting work..
>thanks,
>ed
>================================================================
># ----------- global configuration parameters ------------------------
>#debug=3
>#fork=yes
>#log_stderror=no
>#debug=7
>#fork=no
>#log_stderror=yes
>check_via=no
>dns=no
>rev_dns=no
>#port=5060
>#children=4
>fifo="/tmp/ser_fifo"
># ------------------ module loading ----------------------------------
>loadmodule "/usr/local/ser/lib/ser/modules/mysql.so"
>loadmodule "/usr/local/ser/lib/ser/modules/sl.so"
>loadmodule "/usr/local/ser/lib/ser/modules/tm.so"
>loadmodule "/usr/local/ser/lib/ser/modules/rr.so"
>loadmodule "/usr/local/ser/lib/ser/modules/maxfwd.so"
>loadmodule "/usr/local/ser/lib/ser/modules/usrloc.so"
>loadmodule "/usr/local/ser/lib/ser/modules/registrar.so"
>loadmodule "/usr/local/ser/lib/ser/modules/auth.so"
>loadmodule "/usr/local/ser/lib/ser/modules/auth_db.so"
>loadmodule "/usr/local/ser/lib/ser/modules/acc.so"
># ----------------- setting module-specific parameters ---------------
># -- usrloc params --
>modparam("usrloc", "db_mode", 1)
>modparam("usrloc", "db_url","mysql://ser:heslo@localhost/ser")
># -- auth params --
>modparam("auth_db", "calculate_ha1", yes)
>modparam("auth_db", "password_column", "password")
># -- rr params --
>modparam("rr", "enable_full_lr", 1)
># -- acc params --
>modparam("acc", "log_level", 1)
>modparam("acc", "log_flag", 1)
>modparam("acc", "log_missed_flag", 3)
># ------------------------- request routing logic -------------------
>alias=abc.com.ph
># main routing logic
>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=~"abc.com.ph") {
> if (method=="REGISTER") {
> if (!www_authorize("abc.com.ph", "subscriber")) {
> www_challenge("abc.com.ph", "0");
> break;
> };
> save("location");
> break;
> };
> lookup("aliases");
> if (!lookup("location")) {
> sl_send_reply("404", "Not Found");
> break;
> };
> };
> if (!t_relay()) {
> sl_reply_error();
> };
>}
>
>
>
>================================================================
>At 10:55 AM 4/26/2005, Kofi Obiri-Yeboah wrote:
>>I am assuming your question is if the record_route() function is a
>>parameter for accounting? If that was your question then the answer is
>>no. Generally you invoke record_route() to ensure acl acceptance on a
>>gateway (i.e. all calls through that gateway)
>>-----Original Message-----
>>From: Edgardo O. Gonzales II [ mailto:edgardo.g@pacific.net.ph]
>>Sent: Monday, April 25, 2005 6:22 PM
>>To: Kofi Obiri-Yeboah
>>Cc: serusers(a)lists.iptel.org
>>Subject: RE: [Serusers] ACC into mysql
>>
>>Hi Kofi!
>>got it.. thanks for immediate feedback .. however my accounting is not
>>working.
>>any parameters to be added to make it work..
>>I have the following info already on my ser.cfg
>>modparam("acc", "log_level", 1)
>>modparam("acc", "log_flag", 1)
>>modparam("acc", "log_missed_flag", 3)
>>record_route(); -> its this a parameter for accounting
>>thanks,
>>ed
>>At 08:32 AM 4/26/2005, Kofi Obiri-Yeboah wrote:
>>>I think the correct modparam statement should read as follows:
>>>modparam("acc", "db_url", "mysql://ser:heslo@localhost/ser")
>>>
>>>please note that "my" is required in front of sql
>>>
>>>and not:
>>>modparam("acc", "db_url", "sql://ser:heslo@localhost/ser")
>>>
>>>-----Original Message-----
>>>From: serusers-bounces(a)iptel.org [ mailto:serusers-bounces@lists.iptel.org]On
>>>Behalf Of Edgardo O. Gonzales II
>>>Sent: Monday, April 25, 2005 5:20 PM
>>>To: serusers(a)lists.iptel.org
>>>Subject: Re: [Serusers] ACC into mysql
>>>
>>>Hi all!
>>>Im also receiving this error message.
>>>Can somebody help us on how to make accounting work using mysql.
>>>thanks,
>>>ed
>>>At 06:01 AM 4/26/2005, Leon Sun wrote:
>>>>Hi,
>>>>I am using 0.8.12 in Fedora 3. I tried to log account info into Mysql
>>>>followed instruction from manual. I found, first, modparam("acc",
>>>>"db_url", "sql://ser:heslo@localhost/ser") coudnlt work at all in
>>>>ser.cfg. If I enabled in cfg file, it showed Starting ser: ERROR: bad
>>>>config file (1 errors)
>>>>If I disabled it, SER worked fine but I couldnt see any record in acc
>>>>table.
>>>>Would anyone suggest how to put call records into Mysql?
>>>>Thank you.
>>>># ----------- 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/lib/ser/modules/mysql.so"
>>>>loadmodule "/usr/lib/ser/modules/acc.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"
>>>># Uncomment this if you want digest authentication
>>>># mysql.so must be loaded !
>>>>loadmodule "/usr/lib/ser/modules/auth.so"
>>>>loadmodule "/usr/lib/ser/modules/auth_db.so"
>>>># ----------------- setting module-specific parameters ---------------
>>>>#modparam("acc", "db_url", "sql://ser:heslo@localhost/ser")
>>>># -- 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)
>>>>modparam("acc","log_level",1)
>>>>modparam("acc","log_flag",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()) {
>>>> if (method=="BYE") {
>>>> setflag(1);
>>>> setflag(2);
>>>> }
>>>> t_relay();
>>>> break;
>>>> };
>>>> #labeled all transaction for accounting
>>>> setflag(1);
>>>> setflag(2);
>>>> if (method=="CANCEL"){
>>>> t_relay();
>>>> };
>>>> # (in case, it does not work, use the following command
>>>> # with proper names and addresses in it)
>>>> if (uri==myself) {
>>>> # This for PSTN destination
>>>> if (uri=~"^sip:1")
>>>> { rewritehost("10.10.10.10");
>>>> forward(10.10.10.10,5060);
>>>> break;
>>>> }
>>>> if (method=="REGISTER") {
>>>> # Uncomment this if you want to use digest authentication
>>>> if (!www_authorize("sip.mycommunications.com",
>>>> "subscriber")) {
>>>>
>>>>www_challenge("sip.mycommunications.com", "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();
>>>> };
>>>>}
>>>>_______________________________________________
>>>>Serusers mailing list
>>>>serusers(a)lists.iptel.org
>>>>http://lists.iptel.org/mailman/listinfo/serusers
>
>----------
>_______________________________________________
>Serusers mailing list
>serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
Hi Kofi!
got it.. thanks for immediate feedback .. however my accounting is not working.
any parameters to be added to make it work..
I have the following info already on my ser.cfg
modparam("acc", "log_level", 1)
modparam("acc", "log_flag", 1)
modparam("acc", "log_missed_flag", 3)
record_route(); -> its this a parameter for accounting
thanks,
ed
At 08:32 AM 4/26/2005, Kofi Obiri-Yeboah wrote:
>I think the correct modparam statement should read as follows:
>modparam("acc", "db_url", "mysql://ser:heslo@localhost/ser")
>
>please note that "my" is required in front of sql
>
>and not:
>modparam("acc", "db_url", "sql://ser:heslo@localhost/ser")
>
>-----Original Message-----
>From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org]On
>Behalf Of Edgardo O. Gonzales II
>Sent: Monday, April 25, 2005 5:20 PM
>To: serusers(a)lists.iptel.org
>Subject: Re: [Serusers] ACC into mysql
>
>
>Hi all!
>
>Im also receiving this error message.
>
>Can somebody help us on how to make accounting work using mysql.
>
>thanks,
>ed
>
>At 06:01 AM 4/26/2005, Leon Sun wrote:
>>Hi,
>>I am using 0.8.12 in Fedora 3. I tried to log account info into Mysql
>>followed instruction from manual. I found, first, modparam("acc",
>>"db_url", "sql://ser:heslo@localhost/ser") coudnlt work at all in
>>ser.cfg. If I enabled in cfg file, it showed Starting ser: ERROR: bad
>>config file (1 errors)
>>
>>If I disabled it, SER worked fine but I couldnt see any record in acc table.
>>
>>Would anyone suggest how to put call records into Mysql?
>>
>>Thank you.
>>
>>
>>
>># ----------- 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/lib/ser/modules/mysql.so"
>>
>>loadmodule "/usr/lib/ser/modules/acc.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"
>>
>># Uncomment this if you want digest authentication
>># mysql.so must be loaded !
>>loadmodule "/usr/lib/ser/modules/auth.so"
>>loadmodule "/usr/lib/ser/modules/auth_db.so"
>>
>># ----------------- setting module-specific parameters ---------------
>>
>>#modparam("acc", "db_url", "sql://ser:heslo@localhost/ser")
>>
>># -- 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)
>>
>>
>>modparam("acc","log_level",1)
>>modparam("acc","log_flag",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()) {
>> if (method=="BYE") {
>> setflag(1);
>> setflag(2);
>> }
>>
>> t_relay();
>>
>> break;
>> };
>>
>> #labeled all transaction for accounting
>> setflag(1);
>> setflag(2);
>>
>> if (method=="CANCEL"){
>> t_relay();
>> };
>>
>> # (in case, it does not work, use the following command
>> # with proper names and addresses in it)
>>
>>
>> if (uri==myself) {
>>
>> # This for PSTN destination
>>
>> if (uri=~"^sip:1")
>>
>> { rewritehost("10.10.10.10");
>> forward(10.10.10.10,5060);
>> break;
>> }
>> if (method=="REGISTER") {
>>
>> # Uncomment this if you want to use digest authentication
>> if (!www_authorize("sip.mycommunications.com",
>> "subscriber")) {
>>
>>www_challenge("sip.mycommunications.com", "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();
>> };
>>
>>}
>>_______________________________________________
>>Serusers mailing list
>>serusers(a)lists.iptel.org
>>http://lists.iptel.org/mailman/listinfo/serusers
Thanks. But are you refering to writing a module
(modparam?)? I do not want to write a module. All I
want is the my web application be able to configure
ser and provision users. So in the case I would have
two choices - user FIFO for ser management and direct
database access for database manipulation. Right?
--- Iqbal <iqbal(a)gigo.co.uk> wrote:
>
> Hi
>
> I think fifo writes to in memory DB which is read
> for things like aliases
> etc, hence if you are changing them then use fifo.
>
> As for DB schema changing I think from the modparam
> lines you can change
> your table names etc for lookups on anything,
> (almost) which means that
> you can build you own DB structure, and then when a
> new version comes
> up, just compare the mysql.sh script used to see
> what new tables,columns
> were added.
>
> Iqbal
>
> On 4/27/2005, "Dave" <ddx66(a)yahoo.com> wrote:
>
> >I am thinking of implementing a web frontend to ser
> >(similar to serweb) for internal use and would
> >appreciate some feedback regarding:
> >1) Is using the FIFO the best or the only way to
> >manage SER?
> >2) From what I see, I'd need to access the database
> >directly for me to be able to add users, assign
> groups
> >or even being able to insert AVP's. But this would
> >imply modifying my code each time the database
> schema
> >were to change in the future. Is there any better
> way
> >to handle this?
> >
> >Thanks in advance.
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Tired of spam? Yahoo! Mail has the best spam
> protection around
> >http://mail.yahoo.com
> >
> >_______________________________________________
> >Serusers mailing list
> >serusers(a)lists.iptel.org
> >http://lists.iptel.org/mailman/listinfo/serusers
> >
> >
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
if (src_ip == 192.168.0.0/24) {
rewritehostport("gw1.gateway.com:5060");
} else {
rewritehostport("gw2.gateway.com:5060");
}
Hope this will help.
Thanks,
Mohammad
Original Message:
-----------------
From: Juan Priotti jpriotti(a)gmail.com
Date: Wed, 27 Apr 2005 17:29:10 -0300
To: serusers(a)iptel.org
Subject: [Serusers] route based on src IP address?
I have a simple question:
Is it possible to route a sip call based on source IP address? For
example, if a call if originated from UA1 I would need the call to be
routed to gateway1 but if the call was originated on UA2, gateway2
should be used (UA1 has different IP address than UA2). If possible,
which is the config I need to use in ser.cfg?
Thanks in advance
Juan
_______________________________________________
Serusers mailing list
Serusers(a)iptel.org
http://mail.iptel.org/mailman/listinfo/serusers
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
I have a question but its not related to SER.
Its about Firmware of Hardphones.
I would like learn more about the firmware.
What language they use?
Any documenation on it.
Any information about writing firmware for SIP hardphone, would be greatly
apprciated.
Mohammad Khan
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
If i'm not wrong you can define your "listen address" in your configuration
file (ser.cfg)
# ----------- global configuration parameters ------------------------ #
debug=0 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=yes # (cmd line: -E)
#Uncomment these lines to enter debugging mode
#fork=no
#log_stderror=yes
listen=10.0.161.52
....
That maybe do the trick....
Regards,
Ricardo Martinez.-
> -----Mensaje original-----
> De: Nucleo Wireless LSI [mailto:ntsf_lsi@yahoo.com.br]
> Enviado el: Miércoles, 27 de Abril de 2005 15:24
> Para: serusers(a)lists.iptel.org
> Asunto: [Serusers] Loopback Removal
>
>
> Hi,
> my SER displays the folowing message:
>
> Listening on
> udp: 127.0.0.1 [127.0.0.1]:5060
> udp: 10.0.161.52 [10.0.161.52]:5060
> tcp: 127.0.0.1 [127.0.0.1]:5060
> tcp: 10.0.161.52 [10.0.161.52]:5060
> Aliases:
> tcp: parati.intranet:5060
> tcp: localhost:5060
> tcp: parati:5060
> tcp: localhost.localdomain:5060
> udp: parati.intranet:5060
> udp: localhost:5060
> udp: parati:5060
> udp: localhost.localdomain:5060
> I'm afraid that by listening to the loopback address
> (127.0.0.1) ser is preventing other computer to
> connect (I can't register and connect using Kphone).
> Does anyone knows how to remove the loopback address
> from the listening table?
>
> Tank you!!!!
>
>
>
>
>
>
> Yahoo! Acesso Grátis - Internet rápida e grátis.
> Instale o discador agora! http://br.acesso.yahoo.com/
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
Hi,
my SER displays the folowing message:
Listening on
udp: 127.0.0.1 [127.0.0.1]:5060
udp: 10.0.161.52 [10.0.161.52]:5060
tcp: 127.0.0.1 [127.0.0.1]:5060
tcp: 10.0.161.52 [10.0.161.52]:5060
Aliases:
tcp: parati.intranet:5060
tcp: localhost:5060
tcp: parati:5060
tcp: localhost.localdomain:5060
udp: parati.intranet:5060
udp: localhost:5060
udp: parati:5060
udp: localhost.localdomain:5060
I'm afraid that by listening to the loopback address
(127.0.0.1) ser is preventing other computer to
connect (I can't register and connect using Kphone).
Does anyone knows how to remove the loopback address
from the listening table?
Tank you!!!!
Yahoo! Acesso Grátis - Internet rápida e grátis.
Instale o discador agora! http://br.acesso.yahoo.com/
According to error log, you should have syntax error in here:
fifo_db_url="mysql://ser:heslo@localhost/ser"
loadmodule "/usr/local/lib/ser/modules/mysql.so"
but these two lines looks good to me.
Are you sure, ser -E is using this configuration file?
why dont you try with -f switch, like ser -E -f /etc/ser/ser.cfg, assuming
your ser configuration file located at /et/ser/ser.cfg.
Thanks,
Mohammad
Here is the start of the ser.cfg that shows errors:
dns=no
rev_dns=no
fifo="/tmp/ser_fifo"
fifo_db_url="mysql://ser:heslo@localhost/ser"
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"
modparam("auth_db|usrloc", "db_url", "mysql://ser:heslo@localhost/ser")
modparam("auth_db", "calculate_ha1", 1)
modparam("auth_db", "password_column", "password")
modparam("usrloc", "db_mode", 2)
modparam("rr", "enable_full_lr", 1)
route {
# -----------------------------------------------------------------
# Sanity Check Section
# -----------------------------------------------------------------
# ser -E
0(50633) parse error (5,1-12): syntax error
0(50633) parse error (5,12-13): unknown config variable
0(50633) parse error (7,1-11):
ERROR: bad config file (3 errors)
-----Original Message-----
From: m36828253-1(a)imap.1and1.com [mailto:m36828253-1@imap.1and1.com]
Sent: 27 April 2005 17:36
To: Graham Lewis; serusers(a)iptel.org
Subject: RE: [Serusers] Working ser.cfg with mySQL authentication
HI Graham,
This log says, there have syntax error in your configuration file.
Why don't you post first 10/15 lines of you configuration file.
Thanks,
Mohammad
Original Message:
-----------------
From: Graham Lewis graham.lewis(a)spitfire.co.uk
Date: Wed, 27 Apr 2005 17:20:15 +0100
To: serusers(a)iptel.org
Subject: [Serusers] Working ser.cfg with mySQL authentication
Does anyone have a working example of ser.cfg with mySQL authentication
they can share please.
I have version 03a of the Onsip "SER Getting Started" documentation but the
example given results is errors:
# ser
0(49443) parse error (8,1-12): syntax error
0(49443) parse error (8,12-13): unknown config variable
0(49443) parse error (10,1-11):
ERROR: bad config file (3 errors)
#
I think the Onsip doc. authors acknowledge this but have not updated the
doc. yet.
Graham Lewis
_______________________________________________
Serusers mailing list
Serusers(a)iptel.org
http://mail.iptel.org/mailman/listinfo/serusers
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
_______________________________________________
Serusers mailing list
Serusers(a)iptel.org
http://mail.iptel.org/mailman/listinfo/serusers
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .