I believe that avp_db_load can load either a specific avp
(avp_db_load("$from/username", "i:500")) or all avps of a specific type
(avp_db_load("$from/username", "i:"))
I dont think that it is possible to load multiple avps as part of a
single command, correct? e.g. avp_db_load("$from/username", "i:500,
i:600")
I'm doing a fairly decent amount of manipulation, and I'm trying to cut
down on the number of db calls that I have to make, and the 'all or
none' approach is starting to constrain me...
cheers
Though conversations do to work, when I look at my raw packets I see that I have an incorrect checksum on most packets originating from my SER box. I'm guessing there's some kind of ACK or loose_route issue here, but I am unable to determine what it is.
I have attached the dump. Please advise.
Hi Everybody,
i'm trying to run SER 0.9.3 on SuSE 9.3 (2.6.11.4-21.8-default) from SRC and it dies after startup with a segmentation fault.
The problem occures everytime i try to load the auth_db mod...Without that, ser runs pretty fine.
--------------------- schnipp -----------------------
Core was generated by `ser -Eddd'.
Program terminated with signal 11, Segmentation fault.
warning: current_sos: Can't read pathname for load map: Eingabe-/Ausgabefehler
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/ser/modules/mysql.so...done.
Loaded symbols for //lib/ser/modules/mysql.so
Reading symbols from /usr/lib/libmysqlclient.so.14...done.
Loaded symbols for /usr/lib/libmysqlclient.so.14
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/ser/modules/exec.so...done.
Loaded symbols for //lib/ser/modules/exec.so
Reading symbols from /lib/ser/modules/sl.so...done.
Loaded symbols for //lib/ser/modules/sl.so
Reading symbols from /lib/ser/modules/acc.so...done.
Loaded symbols for //lib/ser/modules/acc.so
Reading symbols from /lib/ser/modules/textops.so...done.
Loaded symbols for //lib/ser/modules/textops.so
Reading symbols from /lib/ser/modules/tm.so...done.
Loaded symbols for //lib/ser/modules/tm.so
Reading symbols from /lib/ser/modules/rr.so...done.
Loaded symbols for //lib/ser/modules/rr.so
Reading symbols from /lib/ser/modules/maxfwd.so...done.
Loaded symbols for //lib/ser/modules/maxfwd.so
Reading symbols from /lib/ser/modules/usrloc.so...done.
Loaded symbols for //lib/ser/modules/usrloc.so
Reading symbols from /lib/ser/modules/registrar.so...done.
Loaded symbols for //lib/ser/modules/registrar.so
Reading symbols from /lib/ser/modules/auth.so...done.
Loaded symbols for //lib/ser/modules/auth.so
Reading symbols from /lib/ser/modules/auth_db.so...done.
Loaded symbols for //lib/ser/modules/auth_db.so
#0 insert_tmcb (cb_list=0x0, types=1, f=0x4041d408, param=0x4041d408) at t_hooks.c:99
99 cbp->next = cb_list->first;
(gdb)
(gdb) bt
#0 insert_tmcb (cb_list=0x0, types=1, f=0x4041d408, param=0x4041d408) at t_hooks.c:99
#1 0x40312566 in register_tmcb (p_msg=0x0, t=0x0, types=1, f=0x402f8410 <acc_onreq>, param=0x0) at t_hooks.c:166
#2 0x402f8204 in mod_init () at acc_mod.c:308
#3 0x08074d29 in init_mod (m=0x8105248) at sr_module.c:474
#4 0x08074ce7 in init_mod (m=0x81052f8) at sr_module.c:471
#5 0x08074ce7 in init_mod (m=0x81053a8) at sr_module.c:471
#6 0x08074ce7 in init_mod (m=0x8105458) at sr_module.c:471
#7 0x08074ce7 in init_mod (m=0x8105508) at sr_module.c:471
#8 0x08074ce7 in init_mod (m=0x81055b8) at sr_module.c:471
#9 0x08074ce7 in init_mod (m=0x8105668) at sr_module.c:471
#10 0x08074ce7 in init_mod (m=0x8105718) at sr_module.c:471
#11 0x08074ce7 in init_mod (m=0x81057c8) at sr_module.c:471
#12 0x0805df24 in main (argc=2, argv=0xbffff594) at main.c:1553
(gdb)
-------------------schipp-------------------------
I get exactly the same error when I try to run ser 0.9.0 on that system.
The ironic part of that problem is, that ser 0.8.14 runs perfectly with same modules and same configuration on the same system :-(
Has anybody a idea how to resolve that problem ?
with best regards
Rainer Strobel
Hi all,
Im trying to rewrite the sip uri with textops module as follows:
subst_uri('/sip:0([0-9]+)@(.*)$/sip:0034\1@voipprovider.com/i');
I see in the openser output:
17(17303) ERROR: parse_msg: message=<INÖTE sip:00349999999@voipprovider.com
SIP/2.0
It seems the subst_uri is modifying also the SIP method.
Am I doing something wrong? Any known bug? Im working with the current
CVS version.
Thank you very much.
G.
Hi,
I noticed that when a client declines a call (603) it is forwarded out
as an 403 from openser....I belive this is something that was fixed in
the SER-0.9.4....(?)
--
mvh/best regards
Helge Waastad
System Engineer
Smartnet
(+47)67830017
Ser users,
I've often posted mails to solve some problems.
I tried to help people if possible.
I got replies in the past but i think most of
developpers think about business so do it.
For example i called ag-projects.com for help i
received
"488 not acceptable here" it's a good policy for an
enterprise which want to sell voip solutions.
Open source spirit is died.
I do hope that most of open source projects will do th
e same things than iptelorg.com and voice-sistem.ro
...
Bye
Harry
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
Hi
I am using check_to() and check_from() for this issue, something like:
if (method == "REGISTER") {
log(1, "ANALYZING REGISTER REQUEST\n");
# to use digest authentication
if (is_user_in("Request-URI", "deactivated")) {
sl_send_reply("402", "Su cuenta fue desactivada");
break;
};
if (!www_authorize("mydomain.com.pe <http://mydomain.com.pe>",
"subscriber")) {
log(1," ----- Fails to Register \n");
www_challenge("mydomain.com.pe <http://mydomain.com.pe>", "0");
break;
};
# only signed users are allowed
if (!check_to()) {
log(1, "LOG: Hijack!!!--> unsigned user registration attempt\n");
sl_send_reply("403", "hijack attempt!!!! Only signed users are allowed");
break;
};
log(1," Registered!!! \n");
if (!save("location")) {
sl_reply_error();
};
break;
};
# First check the source of the call
#***********************************
# If the call comes from the gateways, no authentication is required.
if (src_ip==200.x.x.x || src_ip==200.y.y.y) {
log(1,"Call from pstn|*, no authentication is required. \n");
# If the call comes from B2BUA, no authentication is required.
# The first leg of the call has already been authenticated.
} else if (src_ip==200.z.z.z && src_port==5070) {
log(1,"Call from B2BUA, no authentication is required. \n");
} else {
# We check user credentials
if ((method == "INVITE" || method== "CANCEL" || method== "BYE" || method==
"ACK") && (!src_ip==200.z.z.z && !src_port==5070)){
log(1, "ANALYZING INVITE||CANCEL REQUESTs\n");
if (!proxy_authorize("mydomain.com.pe <http://mydomain.com.pe>",
"subscriber")) {
# log(1," ----- Fails to ...proxy_authorize \n");
proxy_challenge("mydomain.com.pe <http://mydomain.com.pe>", "0");
break;
} else {
if (method == "INVITE" && !check_from()) {
sl_send_reply("403", "Only registered users are allowed");
log(1," ----> Only registered users are allowed \n");
break;
};
};
....
slds.-
Rafael Risco
On 9/5/05, Raymond Chen <rchen(a)broadz.com> wrote:
>
> Dear all,
>
> We want to prevent people dial out to PSTN without registering, how to
> check from header again location table?
>
> Ray
>
>
> _______________________________________________
> Users mailing list
> Users(a)openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>
>
--
rrgv
Hello,
i've installed serweb 0.9.3 under SuSE 9.3 with apache2_2.0.35 + PHP5.0.5 + PEAR 1.3.6 with Classkit...
When I try to call one of the Login pages (admin or user) i get following error message:
Fatal error: Smarty error: [in u_index.tpl line 4]: syntax error: invalid attribute name: '_head.tpl\' (Smarty_Compiler.class.php, line 1497) in /home/ser/serweb/smarty/Smarty.class.php on line 1102
I'd tried to search for the broken lines in the files but there are only error_calls on that lines.
Except in u_index.tpl...that includes just the '_head.tpl'...I have no idea where to start searching for a solution.
Has anybody an idea ?
Thanx
Rainer Strobel