Does anyone know how to insert a User-Agent field into the header BEFORE Mediaproxy gets it?
I am trying to set up mediaproxy to work with a UA that is asymmetric, but it doesn't recognize the UA because this header field is missing.
Thanks,
George
Hi
I am new to ser issues. I installed it last Friday. I managed to set up it
correctly with Asterisk, but now I have a slightly problem with
authorization, frankly with postgres.
part of my ser.cfg file looks like this:
# Uncomment this if you want to use SQL database
#loadmodule "/usr/lib/ser/modules/mysql.so"
loadmodule "/usr/lib/ser/modules/postgres.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/textops.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 ---------------
# -- usrloc params --
#modparam("usrloc", "db_mode", 0)
modparam("usrloc", "user_column", "username")
modparam("usrloc","db_url", "postgres://ser:ser1234@localhost:5432/ser")
# 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")
modparam("auth_db","db_url", "postgres://ser:ser1234@localhost:5432/ser")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
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==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("ser.leon.pl", "subscriber")) {
www_challenge("ser.leon.pl", "0");
break;
};
save("location");
break;
};
}
***
my postgres table subscriber look like this:
username | domain | password
------------ + ------------- + ----------
2222 | ser.xxx.org | serxxx
this is my only postgres table connected with ser.
I did my configuration according to
http://www.voip-info.org/wiki-SER+module+postgres.
When I restarting ser I getting this error in syslog and my phones are not
able to register to ser:
Feb 18 16:31:39 asterix /usr/sbin/ser[6164]: Maxfwd module- initializing
Feb 18 16:31:39 asterix /usr/sbin/ser[6164]: PG[364] submit_query query
'select table_version from version where table_name='subscriber'', result
'ERROR: relation "version" does not exist '
Feb 18 16:31:39 asterix /usr/sbin/ser[6164]: db_query(): Error while
submitting query
Feb 18 16:31:39 asterix /usr/sbin/ser[6164]: table_version(): Error in
db_query
Feb 18 16:31:39 asterix /usr/sbin/ser[6164]: auth_db:str_fixup(): Error
while querying table version
Feb 18 16:31:39 asterix /usr/sbin/ser[6164]: ERROR: fix_expr : fix_actions
error
Does anyone can help me with this because I stuck and I can't go any further
with my configuration.
Please help
Andrew
Cheers
Hi All,
I have SER and mysql DB in USA and I am calling from India. For all the calls I
am dialling from India the time of call invite is getting recorded 5.5 hours
ahead the local time in USA. Suppose if time in USA is 6:30 and if I call from
India, in mysql DB it is getting stored that I called at 12:00. So for billing
if I calculate calls between NOW() and NOW()-30 days, all the calls in this 5.5
hours are missing.
Please tell me where I have to change my configuration. I have ser -0.9.4 and
Mysql 4.0 on Linux.
Thanks for your help and time,
Manoj.
Hi
Does SER have partition / heteling feature?
Thanks
NG
---------------------------------
Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
Hello Brijesh,
The question could have been more specific. What are you looking at ?
Installion instructions or uses of openser ? be more specific and am
sure experts would point you in the right direction
OpenSER is a SIP proxy. Very basically it can be used for SIP client
registration with TLS transport layer security.
Have you used SER before ? IF yes,
its almost the same as SER with added TLS support
IF not,
Compile OpenSER with Mysql and with or without TLS support. Go through
the readme file once you have unpacked the tar ball.
Follow the instructions in the readme. If you have more specific
doubts write again.
Gruß,
Pjothi
On 2/20/06, Brijesh <brijesh.jadav(a)einfochips.com> wrote:
>
>
> Hi all
>
>
>
> Can anyone tell me how to use openser ?
>
>
>
> I am not getting it from the site.
>
>
>
> Thanx in advance
>
>
>
> Brijesh
> _______________________________________________
> Users mailing list
> Users(a)openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>
>
Hi,
I am facing a problem returning a value from shell script for ser.cfg. I could
not even get working with exec_msg. I added a line like this
if(exec_msg('x=1; if [ $x == 0 ];then exit 1 ;fi'))
ERROR: exec_msg: cmd x=1; if [ $x == 0 ];then exit 1 ;fi failed.
exit_status=-1,
errno=32: Broken pipe
I am getting this error but If I include this
if(exec_msg('x=0; if [ $x == 0 ];then exit 1 ;fi'))
it works. Please tell me what can I do? As described below my plan is to call
java program from shell script and use it's output.
Thanks,
M.
Quoting mkumar(a)mantragroup.com:
> After some search I found exec_msg return false, if return value of
> script does
> not equals zero, so from shell script I must collect java program output and
> based on that I must return some value.
>
> Quoting mkumar(a)mantragroup.com:
>
>> Hi All,
>>
>> I am trying to call a external script from Ser.cfg using exec_msg.
>> It calls a
>> shell script and from shell script I am running a java program which
>> connects
>> to Database and makes some queries for getting number of minutes
>> dialled out by
>> a customer. My problem is that how can I get the output of the java
>> programme
>> value to ser.cfg? I am doing like this
>>
>> exec_msg("sh -a /usr/local/ser/mobi.sh $SIP_USER;Some more commands
>> required")
>>
>> I tried one approach, if the user crossed number of minutes then I
>> am calling
>> system.out(-1); telling unix OS that something went wrong and
>> system.out(0);
>> if user did not croos his number of minutes, but it is sometimes
>> successful and
>> fails sometimes. So please tell me how can get the output of java program,
>> should I use system.out.print in java and grep for that but I do not
>> know how
>> can I do this ? I also have no idea whether this approach can be
>> used or not?
>> Please tell what should be used to acheive this?
>>
>> Any help will be sincerely appreciated.
>>
>> Thanks,
>> Manoj.
>>
>>
>
>
>
Hello,
I received the following errors when attempting to compile the source
related to ser-0.10.99-dev30-tm-timers-pa-3. Any ideas on what is causing
the problem? I was able to successfully compile and run ser-0.9.6 and want
to add the presence patch.
In file included from route_struct.h:44,
from route_struct.c:41:
/usr/include/regex.h:362: parse error before "size_t"
/usr/include/regex.h:369: parse error before ':' token
/usr/include/regex.h:378: parse error before ':' token
/usr/include/regex.h:382: parse error before ':' token
/usr/include/regex.h:386: parse error before ':' token
/usr/include/regex.h:390: parse error before ':' token
/usr/include/regex.h:393: parse error before ':' token
/usr/include/regex.h:396: parse error before ':' token
/usr/include/regex.h:461: parse error before "size_t"
/usr/include/regex.h:554: parse error before "size_t"
/usr/include/regex.h:556: parse error before "regerror"
/usr/include/regex.h:557: parse error before "size_t"
make: *** [route_struct.o] Error 1
Thanks
Warren