Hi all,
I moved the mysql DB from the same server it's running ser + sems and
I get this error :
Jul 15 20:51:20 server2 ser[72317]: Maxfwd module- initializing
Jul 15 20:51:20 server2 ser[72319]: new_connection(): Can't connect to
local MySQL server through socket '/tmp/mysql.sock' (2)
Jul 15 20:51:20 server2 ser[72319]: db_init(): Could not create a connection
Jul 15 20:51:20 server2 ser[72319]: ERROR: child_init(1): Error while
connecting database
Jul 15 20:51:20 server2 ser[72319]: init_mod_child(): Error while
initializing module usrloc
Jul 15 20:51:20 server2 ser[72319]: init_child failed
I've specify the address where ser has to connect to the DB
(fifo_db_url="mysql://username@password@xx.xx.xx.xx/ser"), but it
still tries to connect to a local mysql
Anybody knows why it happends? sems VM was working before moving the
DB to another server.
Thank you in advance
Juan
ser.cfg
# ----------- 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
fork=no
log_stderror=yes
*/
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
port=5090
#children=4
fifo="/tmp/ser_fifo"
# Configure FIFO DB
fifo_db_url="mysql://username@password@xx.xx.xx.xx/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/avp.so"
#loadmodule "/usr/local/lib/ser/modules/avpops.so"
#loadmodule "/usr/local/lib/ser/modules/avp_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)
# -- 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 (uri==myself) {
if (method=="REGISTER") {
# make UAs which want to register happy
sl_send_reply("200","OK");
break;
};
# switch to statefull mode:
if (!t_newtran()){
sl_send_reply("500","could not create transaction");
break;
};
if (method=="ACK"){
# actively absorb ACKs
t_relay();
break;
};
# prevent timeout on the other side:
t_reply("100","Trying - just wait a minute !");
if (method=="INVITE"){
# redirect the call to the 'conference' plug-in
# if the URI begin with 100
if (uri=~"sip:111.*@") {
# assumes that Sems configuration parameter 'socket_name='
# has been set to /tmp/am_sock
if(!t_write_req("/tmp/am_fifo","conference")) {
t_reply("500","error contacting sems");
};
break;
};
# redirect the call to the 'announcement' plug-in
# if the URI begin with 200
if (uri=~"sip:222.*@") {
if(!t_write_req("/tmp/am_fifo","announcement")) {
t_reply("500","error contacting sems");
};
break;
};
# no service number, redirect to voicemail.
# do not forget to load AVPs so that voicemail gets the
# callee's email address.
#load_avp("r_uri","email",0);
if(!t_write_req("/tmp/am_fifo","voicemail")) {
t_reply("500","error contacting sems");
};
break;
}
else if (method=="BYE" || method=="CANCEL") {
# Sems should already know which plug-in is handling that
# call. "bye" is no plug-in name. It is a reserved name which
# tells Sems to terminate the call.
if(!t_write_req("/tmp/am_fifo","bye")) {
t_reply("500","error contacting sems");
};
};
};
# 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();
};
}
Hi,
I am trying to understand the section 5.1.1
(mediaproxy ser.cfg analysis) and I am having trouble
understanding RE-INVITES and loose-routing:
Consider following scenario:
UA1 - SER -- P2 - UA2
1) When SER gets a REINVITE from UA1, what happens?
How does SER know it is a REINVITE? Does it work as
follows: When SER gets a REINVITE, it checks it's
memory to see if an existing TransactionID exists and
if yes, then it know that this is a REINVITE?
Even if it knows it is a REINVITE, what role does
loose_route() play?
2) WHY does the line 85 on page 40 say
"n order to ensure that we are dealing only with an
actual re-INVITE, we must make sure
the has_totag() function returns TRUE and
loose_route() is also TRUE."
Why would the REINVITE have a to_tag()?
Why must the loose_route return TRUE for RE-INVITES?
Won't REINVITES be also record_routed() before
reaching the loose_route() directive?
ANy explanations will be appreciated.
Dave
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Hi team,
Trying to load sems, I get the error "getLocalIP ... Could not determine proper local address for media advertising !"
Might be something stupid but I can not figure out why. Was checking sems and ser config sems.cpp and the archives.
Anyone have an idea or a suggestion, whatever ?
Thanks
(720) ERROR: getLocalIP (sems.cpp:547): Could not determine proper local address for media advertising !
(720) ERROR: getLocalIP (sems.cpp:548): Try using 'ifconfig -a' to find a proper interface and configure
Quite sure, it has already happened
Debugging cpp now ! Any hint ?
Thanks, G
Hi team,
Trying to load sems, I get the error "getLocalIP ... Could not determine proper local address for media advertising !"
Might be something stupid but I can not figure out why. Was checking sems and ser config sems.cpp and the archives.
Anyone have an idea or a suggestion, whatever ?
Thanks
(720) ERROR: getLocalIP (sems.cpp:547): Could not determine proper local address for media advertising !
(720) ERROR: getLocalIP (sems.cpp:548): Try using 'ifconfig -a' to find a proper interface and configure
Quite sure, it has already happened
Debugging cpp now ! Any hint ?
Thanks, G
> > > auth: No User-Password or CHAP-Password attribute in the request
> > > auth: Failed to validate the user.
> >
> > You need to use Digest Authentication in freeradius. you
> > need to add
> > the digest module at the authorization scheme in the
> > radiusd.conf.
> >
>
> I thought I have done it. I have allready uncommented the
> digest line, but apparently there is more to it than i
> thought. This is what i have in my radiusd.conf
>
> # The 'digest' module currently has no configuration.
> #
> # "Digest" authentication against a Cisco SIP server.
> # See 'doc/rfc/draft-sterman-aaa-sip-00.txt' for details
> # on performing digest authentication for Cisco SIP servers.
> #
> digest {
> }
>
Well ... it seems you did not enable it. You first need to "configure"
the digest module, like you showed above. But, you need to "use" the
module where ever you want. The radiusd.conf is divided ,let say, in
schemes. You have a "modules" scheme, where you configure your modules,
for example the digest module. Once you configured your modules, you
need to use them in the authorization scheme, yes?. So, if you
configured your digest module but you are not using it in the
authorization scheme, it will not work.
Conclusion: It seems to me that you have configured your module but you
are not using it. Search your radiusd.conf for the word "digest". See if
you have "digest" enabled in the authorization scheme.
Regards,
Lucas
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.15/49 - Release Date:
14/07/2005
Hi
I'm using ser-0.9.3 and freeradius-1.0.0-5 on separate hosts. The radius
server works fine authenticating wireless and dial-up users and it also
wroks just fine when i try to authenticate the test user from the digest
file from then ser server.The problem is when a user tries to
authenticate through SER, looks like ser doesen't send the User-Password
attribute to the radius server. Infact the radius server says :
auth: No User-Password or CHAP-Password attribute in the request
auth: Failed to validate the user.
--
Dimitar Mojsovski
Macedonia On-Line
Service Provider
www.mol.com.mk
Fix you script to write PID
USAGE: sems [options]
Options:
-f config_filename: sets configuration file to
use
-i fifo_name: path and file name of our
fifo file.
-o ser_fifo_name: path and file name of
Ser's fifo file.
-d device: sets network device for
media advertising
-P pid_file: write a pid file.
-u uid: set user id.
-g gid: set group id.
-x plugin_path: root path for plugins
-D log_level: sets log level (error=0,
warning=1, info=2, debug=3).
-E : debug mode: do not fork
and log to stderr.
-h : this help screen.
Notes:
* plug-ins are searched in
plugin_path/{apps,audio}/*.so.
--- geotelcom <geotelcom(a)yahoo.fr> a écrit :
> No : I have no more the error but nothing can not
> see any pid.
> Geo
> >It's ok ?
> >Does sems start?
> >
> >Harry
> >
> >--- geotelcom <geotelcom(a)yahoo.fr> a écrit :
> >
> >> hello
> >>
> >> Thanks for the hint
> >> >
> >> >Try in your start script to set sems -d ppp0 or
> >> eth0
> >> >
> >> >--- geotelcom <geotelcom(a)yahoo.fr> a écrit :
> >> >
> >> >> Hi team,
> >> >> Trying to load sems, I get the error
> "getLocalIP
> >> ...
> >> >> Could not determine proper local address for
> >> media
> >> >> advertising !"
> >> >> Might be something stupid but I can not figure
> >> out
> >> >> why. Was checking sems and ser config sems.cpp
> >> and
> >> >> the archives.
> >> >> Anyone have an idea or a suggestion, whatever
> ?
> >> >> Thanks
> >> >>
> >> >>
> >> >>
> >> >> (720) ERROR: getLocalIP (sems.cpp:547): Could
> not
> >> >> determine proper local address for media
> >> advertising
> >> >> !
> >> >> (720) ERROR: getLocalIP (sems.cpp:548): Try
> using
> >> >> 'ifconfig -a' to find a proper interface and
> >> >> configure
> >> >>
> >> >> Quite sure, it has already happened
> >> >> Debugging cpp now ! Any hint ?
> >> >> Thanks, G
> >> >> >
> _______________________________________________
> >> >> Serusers mailing list
> >> >> serusers(a)lists.iptel.org
> >> >>
> http://lists.iptel.org/mailman/listinfo/serusers
> >> >>
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >>
>
>>___________________________________________________________________________
> >> >Appel audio GRATUIT partout dans le monde avec
> le
> >> nouveau Yahoo! Messenger
> >> >Téléchargez cette version sur
> >> http://fr.messenger.yahoo.com
> >>
> >>
> >>
> >>
> >>
> >>
> >>
>
>___________________________________________________________________________
> >> Appel audio GRATUIT partout dans le monde avec le
> >> nouveau Yahoo! Messenger
> >> Téléchargez cette version sur
> >> http://fr.messenger.yahoo.com
> >>
> >
> >
> >
> >
> >
> >
>
>___________________________________________________________________________
> >Appel audio GRATUIT partout dans le monde avec le
> nouveau Yahoo! Messenger
> >Téléchargez cette version sur
> http://fr.messenger.yahoo.com
>
>
>
>
>
>
>
___________________________________________________________________________
> Appel audio GRATUIT partout dans le monde avec le
> nouveau Yahoo! Messenger
> Téléchargez cette version sur
> http://fr.messenger.yahoo.com
>
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
It's ok ?
Does sems start?
Harry
--- geotelcom <geotelcom(a)yahoo.fr> a écrit :
> hello
>
> Thanks for the hint
> >
> >Try in your start script to set sems -d ppp0 or
> eth0
> >
> >--- geotelcom <geotelcom(a)yahoo.fr> a écrit :
> >
> >> Hi team,
> >> Trying to load sems, I get the error "getLocalIP
> ...
> >> Could not determine proper local address for
> media
> >> advertising !"
> >> Might be something stupid but I can not figure
> out
> >> why. Was checking sems and ser config sems.cpp
> and
> >> the archives.
> >> Anyone have an idea or a suggestion, whatever ?
> >> Thanks
> >>
> >>
> >>
> >> (720) ERROR: getLocalIP (sems.cpp:547): Could not
> >> determine proper local address for media
> advertising
> >> !
> >> (720) ERROR: getLocalIP (sems.cpp:548): Try using
> >> 'ifconfig -a' to find a proper interface and
> >> configure
> >>
> >> Quite sure, it has already happened
> >> Debugging cpp now ! Any hint ?
> >> Thanks, G
> >> > _______________________________________________
> >> Serusers mailing list
> >> serusers(a)lists.iptel.org
> >> http://lists.iptel.org/mailman/listinfo/serusers
> >>
> >
> >
> >
> >
> >
> >
>
>___________________________________________________________________________
> >Appel audio GRATUIT partout dans le monde avec le
> nouveau Yahoo! Messenger
> >Téléchargez cette version sur
> http://fr.messenger.yahoo.com
>
>
>
>
>
>
>
___________________________________________________________________________
> Appel audio GRATUIT partout dans le monde avec le
> nouveau Yahoo! Messenger
> Téléchargez cette version sur
> http://fr.messenger.yahoo.com
>
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
serusers(a)lists.iptel.org,
I'm updating my address book. Please take a moment to update
your latest contact information. Your information is stored in
my personal address book and will not be shared with anyone
else. Plaxo is free, if you'd like to give it a try.
Click the following link to correct or confirm your information: https://www.plaxo.com/edit_contact_info?r=21475503789-37468989-491759731
Name: serusers(a)lists.iptel.org
Job Title:
Company:
Work E-mail: serusers(a)lists.iptel.org
Work Phone:
Work Fax:
Work Address Line 1:
Work Address Line 2:
Work City, State, Zip:
Mobile Phone:
Home E-mail:
Home Phone:
Home Fax:
Home Address Line 1:
Home Address Line 2:
Home City, State, Zip:
Birthday:
P.S. I've included my Plaxo card below so that you have my current information. I've also attached a copy as a vCard.
+-----------------
| Olivier Taylor
| olivier.taylor(a)geomatics.be
|
| Geomatics
| 19 avenue du vivier d'oie
| 1000 Bruxelles
| work: +32 2 320 06 16
| mobile: +32 495 28 33 61
+-------------------------------------
____________________________________________________________
This message was sent to you by olivier.taylor(a)gmail.com
via Plaxo.
To opt out: https://www.plaxo.com/opt_out?r=21475503789-37468989-491759731
Plaxo's Privacy Policy: http://www.plaxo.com/support/privacy