Hello,
Don't reply to this mail it's done.
http://lists.iptel.org/pipermail/serusers/2005-July/022126.html
I can use serweb avpops to forward to voicemail .
Harry
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
Hello.
On this same issue. Today i had another crash from my SER. I'm
attaching the gdb output from the core file. Could this be related to a
glibc issue as Dmitry Semyonov pointed? Hope that someone can help me.!
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
Core was generated by `/usr/local/sbin/ser -P /var/run/ser.pid'.
Program terminated with signal 11, Segmentation fault.
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 /usr/local//lib/ser/modules/mysql.so...done.
Loaded symbols for /usr/local//lib/ser/modules/mysql.so
Reading symbols from /usr/lib/mysql/libmysqlclient.so.10...done.
Loaded symbols for /usr/lib/mysql/libmysqlclient.so.10
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/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 /usr/local//lib/ser/modules/sl.so...done.
Loaded symbols for /usr/local//lib/ser/modules/sl.so
Reading symbols from /usr/local//lib/ser/modules/tm.so...done.
Loaded symbols for /usr/local//lib/ser/modules/tm.so
Reading symbols from /usr/local//lib/ser/modules/rr.so...done.
Loaded symbols for /usr/local//lib/ser/modules/rr.so
Reading symbols from /usr/local//lib/ser/modules/maxfwd.so...done.
Loaded symbols for /usr/local//lib/ser/modules/maxfwd.so
Reading symbols from /usr/local//lib/ser/modules/usrloc.so...done.
Loaded symbols for /usr/local//lib/ser/modules/usrloc.so
Reading symbols from /usr/local//lib/ser/modules/registrar.so...done.
Loaded symbols for /usr/local//lib/ser/modules/registrar.so
Reading symbols from /usr/local//lib/ser/modules/textops.so...done.
Loaded symbols for /usr/local//lib/ser/modules/textops.so
Reading symbols from /usr/local//lib/ser/modules/exec.so...done.
Loaded symbols for /usr/local//lib/ser/modules/exec.so
Reading symbols from /usr/local//lib/ser/modules/mediaproxy.so...done.
Loaded symbols for /usr/local//lib/ser/modules/mediaproxy.so
Reading symbols from /usr/local//lib/ser/modules/domain.so...done.
Loaded symbols for /usr/local//lib/ser/modules/domain.so
Reading symbols from /usr/local//lib/ser/modules/dbtext.so...done.
Loaded symbols for /usr/local//lib/ser/modules/dbtext.so
Reading symbols from /usr/local//lib/ser/modules/nathelper.so...done.
Loaded symbols for /usr/local//lib/ser/modules/nathelper.so
Reading symbols from /usr/local/lib/ser/modules/auth.so...done.
Loaded symbols for /usr/local/lib/ser/modules/auth.so
Reading symbols from /usr/local/lib/ser/modules/auth_radius.so...done.
Loaded symbols for /usr/local/lib/ser/modules/auth_radius.so
Reading symbols from /usr/local/lib/libradiusclient-ng.so.2...done.
Loaded symbols for /usr/local/lib/libradiusclient-ng.so.2
Reading symbols from /usr/local/lib/ser/modules/group_radius.so...done.
Loaded symbols for /usr/local/lib/ser/modules/group_radius.so
Reading symbols from /usr/local/lib/ser/modules/acc.so...done.
Loaded symbols for /usr/local/lib/ser/modules/acc.so
Reading symbols from /usr/local/lib/ser/modules/avp_radius.so...done.
Loaded symbols for /usr/local/lib/ser/modules/avp_radius.so
Reading symbols from /usr/local/lib/ser/modules/avpops.so...done.
Loaded symbols for /usr/local/lib/ser/modules/avpops.so
Reading symbols from /usr/local/lib/ser/modules/xlog.so...done.
Loaded symbols for /usr/local/lib/ser/modules/xlog.so
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
#0 0x42070fa4 in _IO_str_overflow_internal () from /lib/tls/libc.so.6
(gdb)
(gdb)
(gdb) bt
#0 0x42070fa4 in _IO_str_overflow_internal () from /lib/tls/libc.so.6
#1 0x4206fb28 in _IO_default_xsputn_internal () from /lib/tls/libc.so.6
#2 0x4204528a in vfprintf () from /lib/tls/libc.so.6
#3 0x4206432c in vsprintf () from /lib/tls/libc.so.6
#4 0x4204f18d in sprintf () from /lib/tls/libc.so.6
#5 0x4016f889 in UseMediaProxy (msg=0x8106b18, str1=0x0, str2=0x0) at
mediaproxy.c:1454
#6 0x0804efe2 in do_action (a=0x8105328, msg=0x8106b18) at action.c:610
#7 0x0805079c in run_actions (a=0x8105328, msg=0x8105328) at action.c:718
#8 0x0804ef01 in do_action (a=0x8105358, msg=0x8106b18) at action.c:600
#9 0x0805079c in run_actions (a=0x8105328, msg=0x8105358) at action.c:718
#10 0x0804ef01 in do_action (a=0x8105388, msg=0x8106b18) at action.c:600
#11 0x0805079c in run_actions (a=0x8105328, msg=0x8105388) at action.c:718
#12 0x0804ed9f in do_action (a=0x8104278, msg=0x8106b18) at action.c:375
#13 0x0805079c in run_actions (a=0x8105328, msg=0x8106b18) at action.c:718
#14 0x0804ef01 in do_action (a=0x81042d8, msg=0x8106b18) at action.c:600
#15 0x0805079c in run_actions (a=0x8105328, msg=0x81042d8) at action.c:718
#16 0x0804ef01 in do_action (a=0x8104c38, msg=0x8106b18) at action.c:600
#17 0x0805079c in run_actions (a=0x8105328, msg=0x8104c38) at action.c:718
#18 0x08069449 in receive_msg (
buf=0x80c48a0 "INVITE sip:4352220@sipproxy.redvoiss.net SIP/2.0\r\nVia:
SIP/2.0/UDP 192.168.1.3:5060;branch=z9hG4bK-f669b8df;rport\r\nFrom:
5555847315
<sip:5555847315@sipproxy.redvoiss.net>;tag=98eef174d354691fo0\r\nTo: <"...,
len=1101, rcv_info=0xbfffdbd0)
at receive.c:165
#19 0x08079e8f in udp_rcv_loop () at udp_server.c:458
#20 0x0805b480 in main_loop () at main.c:1032
#21 0x0805c7ac in main (argc=0, argv=0x4213ad38) at main.c:1568
#22 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6
(gdb) frame 5
#5 0x4016f889 in UseMediaProxy (msg=0x8106b18, str1=0x0, str2=0x0) at
mediaproxy.c:1454
1454 sprintf(info, "from:%.*s,to:%.*s,fromtag:%.*s,totag:%.*s",
(gdb) list
1449 }
1450
1451 agent = encodeQuopri(userAgent);
1452
1453 info = pkg_malloc(infolen);
1454 sprintf(info, "from:%.*s,to:%.*s,fromtag:%.*s,totag:%.*s",
1455 fromAddr.len, fromAddr.s, toAddr.len, toAddr.s,
1456 fromTag.len, fromTag.s, toTag.len, toTag.s);
1457 if (isRTPAsymmetric(userAgent)) {
1458 strcat(info, ",asymmetric");
(gdb) print infolen
$1 = 143
(gdb) print &info
Can't take address of "info" which isn't an lvalue.
(gdb) print info
$2 = 0x5 <Address 0x5 out of bounds>
(gdb) print fromAddr
$3 = {
s = 0x80c4929
"5555847315(a)sipproxy.redvoiss.net>;tag=98eef174d354691fo0\r\nTo:
<sip:4352220@sipproxy.redvoiss.net>\r\nCall-ID:
c5c633d8-e09d6a0b(a)192.168.1.3\r\nCSeq: 102 INVITE\r\nMax-Forwards:
16\r\nProxy-Authorization: Dige"..., len = 32}
(gdb) print *fromAddr
Structure has no component named operator*.
(gdb) print toAddr
$4 = {
s = 0x80c496c "4352220(a)sipproxy.redvoiss.net>\r\nCall-ID:
c5c633d8-e09d6a0b(a)192.168.1.3\r\nCSeq: 102 INVITE\r\nMax-Forwards:
16\r\nProxy-Authorization: Digest
username=\"ID_12289\",realm=\"sipproxy.redvoiss.net\",nonce=\"42dd462"...,
len = 29}
(gdb) print *toAddr
Structure has no component named operator*.
(gdb) print fromTag
$5 = {
s = 0x80c494f "98eef174d354691fo0\r\nTo:
<sip:4352220@sipproxy.redvoiss.net>\r\nCall-ID:
c5c633d8-e09d6a0b(a)192.168.1.3\r\nCSeq: 102 INVITE\r\nMax-Forwards:
16\r\nProxy-Authorization: Digest
username=\"ID_12289\",realm=\"sipproxy"..., len = 18}
(gdb) print *fromTag
Structure has no component named operator*.
(gdb) print toTag
$6 = {s = 0x401773d0 "", len = 0}
(gdb) print *toTag
Structure has no component named operator*.
(gdb)
Regards,.
Ricardo Martinez.-
Rewriting R-URI to E.164 format is fine. Is there a good way to rewrite
FROM & TO fields to E.164 format as well? Any options to do this without
invoking external scripts?
Hello,
according to avpops docs AVP type:
0 - AVP with string name and string value
1 - AVP with string name and integer value
2 - AVP with integer name and string value
3 - AVP with integer name and integer value
however "method.update_attribute_of_user.php" script
use '". '".$value."'."' to "0" how can i set $value
to "1"
when i update "forward to voicemail" from account.php?
Hoping my "frenglish" is comprehensible !
Regards
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 all,
If i don't miss, textops is a module from voice-sistem and we found a bug.
If u do two consecutive replaces, the second start when the first is still
working.
because the second replace start at the same time as the first and they
works together, result are unpredictable.
I must suppose it's the same for othher functions (i didn't test it).
Olivier
Hello everyone!
I am running debian stable and openser 0.9.5 installed
from .deb binaries. I want to test radius accounting.
I set:
modparam("acc", "radius_flag", 1)
but i got
Jul 18 14:03:48 localhost openser:
set_mod_param_regex: parameter <radius_flag> not found
in module <acc>
Where do I get the acc with radius support?
kind regards,
Pablo.
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
Hi,
Can someone please help me to get a better understanding how re-invites are handled in openser.cfg. I'm having difficulty understanding the follow:
Scenario: UA1 <---> OPENSER <---> UA2
1) Definition: Is re-invite refer to a "new" INVITE that is sent by a UA so that some modifications can be made to a session (put on hold e.g.) ? Or is RE-INVITE referred to a re-transmission of an INVITE by an entity because no response was received to the prior INVITE?
2) If a REINVITE is sent by UA1 inorder to put UA2 "on hold", how and where would it be handled in openser.cfg?
How can I play MOH if UA1 puts UA2 on hold?
3) If a REINVITE is sent by UA1 because it got no response from Openser (packet got lost), will this INVITE be handled any differently from 2)
4) The document in Onsip.org mentions that a RE-INVITE will have a to_tag attached to it.
4.1) Is this refering to a REINVITE generated by SER OR an REINVITE received by SER??
4.2) Under what situations would this reinvite be generated?
4.3) The doc mentions that this REINVITE would be handled by loose_route(). Why?
Any answers will be highly appreciated.
Dave
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Hello.
I'm trying SER 0.8.14 with FreeRadius. The radius server and SER are running in the same pc.
I'am able to authenticate using radius but I have problems when I try to check the group mebership.
Help!
Thanks.
FreeRadius log:
rad_check_password: Found Auth-Type Digest
auth: type "digest"
modcall: entering group authenticate
A1 = alejandro:sip2.cn.ryerson.ca:cisco1234
A2 = INVITE:sip:94161000@sip2.cn.ryerson.ca
KD = 53d3b82970bada131a062103f553b8b8:42dc1764b51d79819e7e9f755aab7b639cc2175a:00000017:7DB990955AB8490D85411C0796224362:auth:18227b358ffe96049a3745eeb449fae2
modcall[authenticate]: module "digest" returns ok
modcall: group authenticate returns ok
radius_xlat: 'Authenticated'
Login OK: [alejandro(a)sip2.cn.ryerson.ca/<no User-Password attribute>] (from client proxy port 5060)
Sending Access-Accept of id 145 to 192.168.2.1:32823
Reply-Message = "Authenticated"
Sip-Rpid = "1970"
Finished request 6
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
rad_recv: Access-Request packet from host 192.168.2.1:32823, id=146, length=55
User-Name = "alejandro"
Sip-Group = "pstn"
Service-Type = Group-Check
NAS-IP-Address = 192.168.2.1
NAS-Port = 0
modcall: entering group authorize
Invalid operator for item Suffix: reverting to '=='
Invalid operator for item Suffix: reverting to '=='
Invalid operator for item Suffix: reverting to '=='
modcall[authorize]: module "preprocess" returns ok
modcall[authorize]: module "chap" returns noop
rlm_eap: No EAP-Message, not doing EAP
modcall[authorize]: module "eap" returns noop
modcall[authorize]: module "digest" returns noop
rlm_realm: No '@' in User-Name = "alejandro", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop
modcall[authorize]: module "files" returns notfound
modcall[authorize]: module "mschap" returns noop
modcall: group authorize returns ok
auth: No authenticate method (Auth-Type) configuration found for the request: Rejecting the user
auth: Failed to validate the user.
Login incorrect: [alejandro/<no User-Password attribute>] (from client proxy port 0)
Delaying request 7 for 1 seconds
Finished request 7
FreeRadius User file.
alejandro(a)sip2.cn.ryerson.ca Auth-Type := Digest, User-Password == "cisco1234"
Reply-Message = "Authenticated",
Sip-Rpid = "1970"
alejandro(a)sip2.cn.ryerson.ca Auth-Type := Accept
Reply-Message = "Authorized",
Sip-Group == "pstn"
the SER Config.
.
.
.
.
if (!radius_www_authorize("")) {
www_challenge("", "1");
break;
}else{
if (radius_is_user_in("group", "pstn")){
forward(192.168.2.101,5060);
break;
};
};
.
.
.
.
Hello Greger.
Thanks for your answer on this topic. Now i'm attaching more debug
information (the /var/log/messages from mediaproxy, the ngrep output and
some xlog statements in the ser.cfg file) beside some comments in the file
reINVITE_debug_problem.txt.
> - Is your session really set up initially (before the reINVITE)?
> (mediaproxy reports 0/0/0 bytes)
At least i have ringback tone. Then, when the call is answered i have an OK
and a ACK message coming to my SER box, then inmediatly the reINVITE message
arrives Asterisk box.
For what i can see from the debug the "nat=yes" is never reached because the
caller has a "valid ip" and therefore the first "if" in the statament
if (method=="INVITE" && client_nat_test("3")) {
# INSERT YOUR IP ADDRESS HERE
record_route_preset("64.76.148.246:5060;nat=yes");
xlog("L_INFO", "time [%Tf] RECORD ROUTE SECTION : invite &
client_nat_test(3) TRUE ,record_route_preset [%rm]\n");
} else if (method!="REGISTER") {
xlog("L_INFO", "time [%Tf] RECORD ROUTE SECTION :
record_route [%rm]\n");
record_route();
};
from the RECORD ROUTE SECTION is FALSE.
Also, i don't understand why the second OK (the one from the reINVITE) is
not procesed in the ONREPLY ROUTE, or at least i don't see any statement
from the "xlog" in the debug. Is this normal?
Thanks.!
Regards,
Ricardo Martinez.-
> -----Mensaje original-----
> De: Greger V. Teigre [mailto:greger@teigre.com]
> Enviado el: Lunes, 18 de Julio de 2005 2:45
> Para: Ricardo Martinez; serusers(a)lists.iptel.org
> Asunto: Re: [Serusers] Problem : Can SER process the reINVITE messages
> properly?
>
>
> Hi Ricardo,
> Thanks for a detailed analysis. Some questions:
> - Is your session really set up initially (before the reINVITE)?
> (mediaproxy reports 0/0/0 bytes)
> - You didn't show the ngrep trace. The script uses nat=yes in
> the Route
> header of the INVITE to detect a nat'ed client. Can you
> verify that the
> reINVITE has the nat=yes?
> - You haven't showed the mediaproxy log (it will show the
> callers reporting
> in etc). That could help (default /var/log/messages)
> - You can put a log statement in the loose_route section
> after the test for
> nat=yes to see if use_media_proxy was called
>
> g-)
>
> Ricardo Martinez wrote:
> > Hello.
> > I'm having problems trying to make SER, NAT'd endpoints
> and reINVITE
> > work together.
> > I was using the "gw-pstn3.07.cfg" file from onsip.org to do some
> > tests, and this is what i have. In one side i have an Asterisk with
> > an endpoint registered in it (let's call it A). In the other side i
> > have a PAP2 under NAT (let's call it B).
> >
> >
> > A ---------- Asterisk ----------- SER ----------- B (NAT'd)
> > 200.0.0.7 200.0.0.6 200.0.0.5
> > 10.0.0.4
> >
> > When i make a call from "A" to "B" this is what i see (in terms of
> > SDP). Looking from SER.
> >
> > A --------- Asterisk ------------ SER ------------ B (NAT'd)
> > Public:
> > 200.0.0.4
> > 200.0.0.7 200.0.0.6 200.0.0.5
> Inside:
> > 10.0.0.1
> >
> > INVITE
> > c:200.0.0.6:19996
> > ------------------->
> > INVITE
> > c:200.0.0.5:35010
> > ---------------->
> >
> >
> > Caller Via Called Status
> > Duration Codec Type Traffic
> >
> --------------------------------------------------------------
> ------------
> > 200.0.0.6:19996 - 200.0.0.5:35010 - ?.?.?.?:? inactive 0'04"
> > Unknown Audio 0/0/0
> >
> > Total traffic: 0bps/0bps/0bps (in1/in2/out)
> > Session count: 1
> >
> > So far is ok..........and the phone is answered
> > OK
> > c:10.0.0.1:16440
> > <---------------- (the phone is
> > answered)
> > OK
> > c:200.0.0.5:35010
> > <---------------------
> >
> > reINVITE
> > c:200.0.0.7:19996
> > --------------------->
> > reINVITE
> > c:200.0.0.7:19996
> > ---------------->
> >
> > OK
> > c:10.0.0.1:16440
> > <----------------
> > OK
> > c:10.0.0.1:16440
> > <---------------------
> >
> > Finally according to the "session" information :
> >
> > Caller Via Called
> > Status Duration Codec Type Traffic
> >
> --------------------------------------------------------------
> --------------
> > ----------
> > 200.0.0.6:19996 - 200.0.0.5:35010 - 200.0.0.7:16420 inactive
> > 0'26" G729 Audio 0/11.48k/11.48k
> >
> > Total traffic: 0bps/0bps/0bps (in1/in2/out)
> > Session count: 1
> > And the audio is only in one way. :(
> >
> > So. you can see the reINVITE message apparently is not being
> > processed as a call to a NAT'd endpoint and therefore is not using
> > the mediaproxy, you can see the second "OK" messsage has the invalid
> > IP from the NAT'd user is in his sdp information.
> > As i said it before i am using the gw-pstn configuration
> file from the
> > onsip.org and as far as i can remember this configuration can handle
> > the reINVITE? isn't
> > I'm also using the last version of the mediaproxy (1.3.1).
> > Can someone tell me what i'm doing wrong?
> >
> > Hope someone could help me here.
> > Thanks in advance.
> > Regards...
> >
> > Ricardo Martinez.-
> >
> > _______________________________________________
> > Serusers mailing list
> > serusers(a)lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
>