You must provision in the destinations table with all prefixes for
PSTN destinations (at least all country codes). The software will
find the longest match from that table.
Adrian
>>>>>>
Trying cdrtool prepaid rating, got stuck with something.
When a request like "MaxSessionTime From=sip:me at example.com
To=sip:0031650222 at example.com Duration=7200 Lock=0" is given, cdrtool
always return "0", no matter what amount of balance is available in
prepaid table. This is what I see in syslog:
"CDRTool rating[5759]: Error: cannot figure out the destination id
for sip:0031650222 at example.com"
Cdrtool version is 6.3.2. Apparently rating engine needs the variable
$CDR->DestinationID set (rating_lib.phtml, line #5926), but this is
not happening. It isn't clear to me how this is initialised (In weak
defense, I'm totally clueless about php), and it doesn't work even if
DestinationID parameter is added in the above stated request.
Hi Openser,
My question is regarding case-handling of SIP usernames with Openser
1.3.1 presence modules. I'm using a stand-alone presence server with
pua/pua_usrloc modules. This is the test case:
1. user "sip:1234@10.10.90.51" sends SUBSCRIBE for user
"sip:Jane@10.10.90.51"
2. user "sip:Jane@10.10.90.51" sends REGISTER
After 2, watcher does not receive NOTIFY from Openser/presence. DB
contents is as follows:
active_watchers/presentity_uri contains "sip:Jane@10.10.90.51"
pua/pres_uri contains "sip:jane@10.10.90.51"
presentity/username contains "jane".
location/username contains "jane"
location/contact contains "sip:Jane@10.10.90.51:10001"
I'm not sure why case is different in these tables, and whether this
causes the missed NOTIFY. Can anyone suggest what might be wrong?
Here's the Openser route block:
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");
exit;
};
if (msg:len >= 2048 ) {
sl_send_reply("513", "Message too big");
exit;
};
# 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 (is_method("SUBSCRIBE|PUBLISH"))
route(2);
if (method == "REGISTER") {
pua_set_publish();
save("location");
exit;
}
}
route[2]
{
# presence handling
if (! t_newtran())
{
sl_reply_error();
exit;
};
if(is_method("PUBLISH"))
{
handle_publish();
t_release();
} else if( is_method("SUBSCRIBE"))
{
handle_subscribe();
t_release();
};
exit;
}
Hi,
I've set up serMyAdmin on the tomcat server and everything appears to be
working, however I don't seem to be able to log in as the admin. I've added
a user admin to subscriber with password etc. but it still does not allow me
in. MySQL is recieveing the queries and processing them as I have checked
in the general-query-log. I'm currently running openser 1.2.x with
serMyAdmin 0.5. Any help would be appreciated.
Thanks
Hi,
Is there any possibility to remove the whole message body of a SIP
message? replace_body_all and subst_body seem to operate per line,
leaving a bunch of "\n" behind.
There's a two year old feature request for that on the tracker
(https://sourceforge.net/tracker/?func=detail&atid=743023&aid=1546501&group_…).
Any news on that? Any other possibilities?
Andreas
Hello everybody.
Today we got a crash in our production deployment of OpenSER, which is
running version 1.3.1 on Solaris SPARC. OpenSER was compiled on 64 bits
mode.file is:
The backtrace of the core file is:
Program terminated with signal 11, Segmentation fault.
#0 0xffffffff79719774 in insert_dlg_timer_unsafe (tl=0xffffffff61ea8ad0) at
dlg_timer.c:91
91 if ( ptr->timeout <= tl->timeout )
(gdb) bt
#0 0xffffffff79719774 in insert_dlg_timer_unsafe (tl=0xffffffff61ea8ad0) at
dlg_timer.c:91
#1 0xffffffff79719a8c in update_dlg_timer (tl=0xffffffff61ea8ad0,
timeout=300) at dlg_timer.c:163
#2 0xffffffff7970fe9c in dlg_onroute (req=0x100341fb0,
route_params=0xffffffff7fffe2b0, param=0x0) at dlg_handlers.c:612
#3 0xffffffff7d80c278 in run_rr_callbacks (req=0x100341fb0,
rr_params=0xffffffff7d910468) at rr_cb.c:83
#4 0xffffffff7d807b0c in after_loose (_m=0x100341fb0, preloaded=0) at
loose.c:865
#5 0xffffffff7d803744 in loose_route (_m=0x100341fb0, _s1=0x0, _s2=0x0) at
loose.c:901
#6 0x000000010000f088 in do_action (a=0x1002e3e30, msg=0x100341fb0) at
action.c:816
#7 0x0000000100009e48 in run_action_list (a=0x1002e3e30, msg=0x100341fb0)
at action.c:132
#8 0x0000000100086a08 in eval_elem (e=0x1002e3ed0, msg=0x100341fb0,
val=0x0) at route.c:1069
#9 0x000000010008db44 in eval_expr (e=0x1002e3ed0, msg=0x100341fb0,
val=0x0) at route.c:1360
#10 0x000000010008dd00 in eval_expr (e=0x1002e3f18, msg=0x100341fb0,
val=0x0) at route.c:1381
#11 0x000000010000e0b8 in do_action (a=0x1002e53c8, msg=0x100341fb0) at
action.c:672
#12 0x0000000100009e48 in run_action_list (a=0x1002d8878, msg=0x100341fb0)
at action.c:132
#13 0x000000010000a4b0 in run_actions (a=0x1002d8878, msg=0x100341fb0) at
action.c:112
#14 0x000000010000a6fc in run_top_route (a=0x1002d8878, msg=0x100341fb0) at
action.c:172
#15 0x00000001000781ec in receive_msg (
buf=0x1002aaf68 "INVITE
sip:76907295@200.114.42.182<sip%3A76907295(a)200.114.42.182>;user=phone
SIP/2.0\r\nVia: SIP/2.0/UDP 200.30.79.17:5066;branch=z9hG4bKa8fae90df\r\nRoute:
<sip:200.13.225.243;lr;ftag=885a2b1ed6b8a7d8;did=7cf.1721>\r\nCall-ID:
f6a12831f"..., len=747, rcv_info=0xffffffff7ffff860) at receive.c:156
#16 0x00000001000db620 in udp_rcv_loop () at udp_server.c:438
#17 0x00000001000321b8 in main_loop () at main.c:834
#18 0x00000001000373bc in main (argc=7, argv=0xffffffff7ffffbe8) at
main.c:1373
I would thank any hint you could provide about it.
Best regards.
Sergio Gutiérrez.
Anyone Get this setup correctly? I've been at it for a while and after
getting it to insert new users I cannot login as an admin. I'm not sure
where the problem is but Any help would be appreciated.
--
View this message in context: http://www.nabble.com/sermyadmin-almost-works-tp17219053p17219053.html
Sent from the OpenSER Users Mailing List mailing list archive at Nabble.com.
Hi mates,
In my O'SER 1.3 config file from svn i have this modules parameters which
shows the location of rtp and sip clients but in reality these files doesnt
exist in the said location or anywhere in my box, what must be wrong with my
config??
below are the two lines:
modparam("mediaproxy","sip_asymmetrics","/usr/local/etc/openser/sip-clients")
modparam("mediaproxy","rtp_asymmetrics","/usr/local/etc/openser/rtp-clients")
--
Luzango Mfupe
TUUNE MOBILE
Tel:0128440528/0123825710
Tshwane-RSA
website:http://www.tuune.mobi
Hi!
Trying cdrtool prepaid rating, got stuck with something.
When a request like "MaxSessionTime From=sip:me@example.com
To=sip:0031650222@example.com Duration=7200 Lock=0" is given, cdrtool
always return "0", no matter what amount of balance is available in
prepaid table. This is what I see in syslog:
"CDRTool rating[5759]: Error: cannot figure out the destination id
for sip:0031650222@example.com"
Cdrtool version is 6.3.2. Apparently rating engine needs the variable
$CDR->DestinationID set (rating_lib.phtml, line #5926), but this is
not happening. It isn't clear to me how this is initialised (In weak
defense, I'm totally clueless about php), and it doesn't work even if
DestinationID parameter is added in the above stated request.
Since there seems to be other people using cdrtool with success, I
guess might be doing something really stupid. I haven't trudged too
far away from a standard cdrtool install. Can anyone tell me what
possibly could have gone wrong?
Or even better: teach a man how to fish (ie, how to trace out this),
so that he might shut up when there's no fish... :)
Thanks,
Sajith.
--
Don't you wish you had more energy... or less ambition?
9DB8FF06 : CB80 0BA6 7D13 B10A 6FBB D43E B4D2 28AD 9DB8 FF06
Hi,
I just found and fix a really strange bug in authentication module, when building the auth challenge header. I say strange, because I found it while using a UAC that implements a very strict view on the auth process. Also this UAC tries to reuse the nonces.
This bug had as effect the UACs stopping to re-register with openser after an openser restart. Quite unpleasant effect to have all the UACs dropping out if you do a server restart :( .
More technically, the bug consists in openser's failure to append the stale parameter in the challenge request if the nonce is not recognize as local - this can happen after a restart, when openser uses a new schema to generate nonces.
Scenario:
1) start openser -> it will set SCHEMA1 for generating nonces
2) UAC registers with authentication and receives during challenge the nonce NONCE1 (based on SCHEMA1)
3) OpenSER restarts and sets a new SCHEMA2 for generating nonces
4) UAC tries to re-register using the previous nonce it received - NONCE1.
5) OpenSER rejects the auth as received NONCE1 does not follow current SCHEMA2.
6) OpenSER sends a new challenge to the UAC, but so far, the stale parameter was not added to indicate that the nonce is invalid
7) UAC simply drops any registration attempts as it thinks that the password it has is wrong -> it authentication was rejected and no stale indication was received.
With the fix, openser now adds the stale parameter in the challenge and to indicate to UAC a nonce issue if the nonce is not recognized. The script auth functions were already reporting (as return code) NONCE_STALE indication in this case, but the challange was not properly
computed.
Have anybody experience such problem also? or I was the first coming across a such UAC :) .
Regards,
Bogdan
Hi experts,
Anyone has experience on compilation on solaris 10/Spar?
I am start user of openser and need use openser to support sctp.
now I have download the source codes of openser-1.3.1-tls.
then I compiled it, there have many errors that need your supports.
e.g.
openser-1.3.1-tls> make all
Makefile.defs:717: *** missing separator. Stop.
then I commented Makefile.defs line717 and 718.
# $(warning Old gcc detected ($(CC_SHORTVER)), use
gcc >= 3.1 \
# for better results)
Errors were still there.
openser-1.3.1-tls> make all
Makefile:402: warning: overriding commands for target
`/opt/CiscoMGC$(DESTDIR)'
Makefile:393: warning: ignoring old commands for target
`/opt/CiscoMGC$(DESTDIR)'
yacc -d -b cfg cfg.y
"cfg.y", line 391: warning: redeclaration of precedence of SLASH.
conflicts: 1 shift/reduce
flex cfg.lex
statistics.c:58: warning: #warning STATISTICS: Architecture with no
support for atomic operations. Using Locks!!
Makefile:402: warning: overriding commands for target
`/opt/CiscoMGC$(DESTDIR)'
Makefile:393: warning: ignoring old commands for target
`/opt/CiscoMGC$(DESTDIR)'
Compiling action.c
gcc -g -O9 -funroll-loops -Wall -mv8 -DNAME='"openser"'
-DVERSION='"1.3.1-notls"' -DARCH='"sparc64"' -DOS='"solaris"'
-DCOMPILER='"gcc 2.91.66"' -D__CPU_sparc64 -D__OS_solaris -D__SMP_no
-DCFG_DIR='"$(DESTDIR)/etc/openser/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC
-DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024
-DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD
-DHAVE_ALLOCA_H -DUSE_SIGACTION -D_POSIX_PTHREAD_SEMANTICS
-DHAVE_DEVPOLL -DHAVE_SELECT -c action.c -o action.o
parser/msg_parser.h: In function `char_msg_val':
In file included from action.h:27,
from action.c:44:
parser/msg_parser.h:300: parse error before `)'
forward.h: In function `msg_send':
In file included from action.c:49:
forward.h:95: parse error before `)'
forward.h:103: parse error before `)'
forward.h:107: parse error before `)'
mem/../lock_alloc.h: In function `lock_set_alloc':
In file included from mem/../locking.h:66,
from mem/../statistics.h:115,
from mem/shm_mem.h:33,
from ut.h:52,
from action.c:54:
mem/../lock_alloc.h:68: parse error before `)'
ut.h: In function `int2bstr':
In file included from action.c:54:
ut.h:172: parse error before `)'
ut.h: In function `un_escape':
ut.h:365: parse error before `)'
ut.h: In function `shm_str_dup':
ut.h:498: parse error before `)'
ut.h: In function `pkg_str_dup':
ut.h:515: parse error before `)'
ut.h: In function `str_strcmp':
ut.h:532: parse error before `)'
ut.h:535: parse error before `int'
ut.h:539: `minlen' undeclared (first use in this function)
ut.h:539: (Each undeclared identifier is reported only once
ut.h:539: for each function it appears in.)
ut.h:547: `alen' undeclared (first use in this function)
ut.h:547: `blen' undeclared (first use in this function)
ut.h: In function `str_strcasecmp':
ut.h:563: parse error before `)'
ut.h:566: parse error before `int'
ut.h:570: `minlen' undeclared (first use in this function)
ut.h:578: `alen' undeclared (first use in this function)
ut.h:578: `blen' undeclared (first use in this function)
action.c: In function `run_action_list':
action.c:140: parse error before `)'
action.c: In function `do_assign':
action.c:193: parse error before `)'
action.c:202: parse error before `)'
action.c:222: parse error before `)'
action.c:228: parse error before `)'
action.c: In function `do_action':
action.c:302: parse error before `)'
action.c:309: parse error before `)'
action.c:335: parse error before `)'
action.c:498: parse error before `)'
action.c:524: parse error before `)'
action.c:682: parse error before `)'
action.c:710: parse error before `)'
action.c:723: parse error before `)'
action.c:757: parse error before `)'
action.c:763: parse error before `)'
action.c:807: parse error before `)'
action.c:819: parse error before `)'
action.c:870: parse error before `)'
action.c:896: parse error before `)'
action.c:904: parse error before `)'
action.c:930: parse error before `)'
action.c:939: parse error before `)'
action.c:945: parse error before `)'
action.c:966: parse error before `)'
make: *** [action.o] Error 1
Your any help is much appreciated!
BR,
Eric