Hello,
here is the stderr console output (just the last lines which should be important as I saw there is a message size limit), and the gdb backtrace.
Do you see any hint for the crash?
Best regards
Sebastian
________________________________
Von: Anca-Maria Vamanu [mailto:anca@voice-system.ro]
Gesendet: Do 5/17/2007 16:57
An: Schumann Sebastian
Cc: users(a)openser.org
Betreff: Re: [Users] OpenSER crashed with Segmentation Fault using PresenceModule
Hello,
Please post the log and the gdb backtrace.
regards,
Anca Vamanu
Schumann Sebastian wrote:
>Dear all
>
>I am currently writing my final thesis and want to set up a Presence Core therefore. I am using OpenSER as Presence Agent (with Registrar function or now with separat Registrar, both configuration has the problem). It crashes after a certain time and certain amount of watcher entries. I cannot replicate this or deliminate to a certain action but it always happends, no matter if I clean up the tables, restart the machine or whatever.
>
>My configuration is one XCAP Server (XCAP Lite 1.0 from ag-projects, working properly), one Registrar (OpenSER with MySQL DB, which forwards SUBSCRIBE/PUBLISH to PA) and Presence Agent (OpenSER with Presence Module, MySQL DB, XMLRPC Module) and Eyebeam 1.5 Clients. All runs on VMware virtual machines.
>
>I have just three clients that try to subscribe each other. Without any Subscriptions everything works properly, XML data gets stored, PUBLISH is processed etc. Subscribing one user by another is possible and works properly.
>
>After allowing a watcher to subscription (using XCAP) and if the watcher logs in next time, the state in the watcher table changes from pending to active. It happens now and then, when a user goes online and one of his subscribed presentities is not online, that the OpenSER PA crashes.
>
>Analyzing DEBUG info and backtrace was not successful, because I found no information or hints about it, just the message segmentation fault appears.
>
>Does anyone have this problem as well or has anybody an idea about it? I can provide you logs, the dump or traces if you need it.
>
>Thanks for your help.
>
>Sebastian
>
>
>
Dear all
I am currently writing my final thesis and want to set up a Presence Core therefore. I am using OpenSER as Presence Agent (with Registrar function or now with separat Registrar, both configuration has the problem). It crashes after a certain time and certain amount of watcher entries. I cannot replicate this or deliminate to a certain action but it always happends, no matter if I clean up the tables, restart the machine or whatever.
My configuration is one XCAP Server (XCAP Lite 1.0 from ag-projects, working properly), one Registrar (OpenSER with MySQL DB, which forwards SUBSCRIBE/PUBLISH to PA) and Presence Agent (OpenSER with Presence Module, MySQL DB, XMLRPC Module) and Eyebeam 1.5 Clients. All runs on VMware virtual machines.
I have just three clients that try to subscribe each other. Without any Subscriptions everything works properly, XML data gets stored, PUBLISH is processed etc. Subscribing one user by another is possible and works properly.
After allowing a watcher to subscription (using XCAP) and if the watcher logs in next time, the state in the watcher table changes from pending to active. It happens now and then, when a user goes online and one of his subscribed presentities is not online, that the OpenSER PA crashes.
Analyzing DEBUG info and backtrace was not successful, because I found no information or hints about it, just the message segmentation fault appears.
Does anyone have this problem as well or has anybody an idea about it? I can provide you logs, the dump or traces if you need it.
Thanks for your help.
Sebastian
--
Sebastian Schumann
Diploma Student Architecture and Design Department
Slovak Telekom, a. s.
T-Com, Operations Unit
Production and Service Division
Innovations and Enterprise Solution Subunit
Address: Namestie Slobody 6, 817 62 Bratislava, Slovakia
Office: Room 232, Jarabinkova 1, 821 09 Bratislava, Slovakia
+421 910 643010 (mobile)
sebastian.schumann(a)t-com.sk
http://www.t-com.sk
Hello all,
I don't know why my openser.cfg doesn't work correctly, I want my openser to catch the failure_route after 10 seconds to reroute a call to a Asterisk when nobody responds the phone on an openser.
Does anybody know what I'm doing wrong??
Thanks in advance!!!!!!!!!
Openser.cfg:
modparam("tm","fr_timer",4)
modparam("tm", "fr_inv_timer" ,10)
# ------------------------- request routing logic -------------------
# main routing logic
(...)
route{
(...)
# 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("172.16.51.150", "subscriber")) {
www_challenge("172.16.51.150", "0");
exit;
};
save("location");
exit;
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
};
#
if(uri=~"sip:2[0-9]+@") {
t_on_failure("1");
# rewritehostport("172.16.51.160:5060");
# t_relay();
# rewriteuser("2002");
# exit;
}
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
exit;
};
append_hf("P-hint: usrloc applied\r\n");
};
route(1);
}
route[1] {
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
if (!t_relay()) {
sl_reply_error();
};
exit;
}
failure_route[1] {
#reroute to asterisk
rewritehost("172.16.51.150");
rewriteuser("2002");
t_relay();
exit;
}
Hi all,
I'm testing Blind Trasfer with my IP Phones, SER and GW, in this scenario:
AnalogPhone (GW) is the Transferee
IP Phone1, registred to SER, is the Transferor
IP Phone 2, registred to SER, is the Transfer Target
When the Transferor send INVITE to put on hold the Trasferee, SER
reply with 407 Proxy Authentication Requrire, as follow reported:
2007/05/17 12:45:49.370808 10.28.19.124:5060 -> 10.28.19.202:5060
INVITE sip:06XXXXXX15@10.28.19.230 SIP/2.0.
Via: SIP/2.0/UDP 10.28.19.124;branch=z9hG4bKc442076492fe9954.
Route: <sip:10.28.19.202;ftag=1c1272914830;lr=on>.
From: <sip:06XXXXXX14@10.28.19.202>;tag=9bb7a2279efa8707.
To: <sip:06XXXXXX15@10.28.19.230>;tag=1c1272914830.
Contact: <sip:06XXXXXX14@10.28.19.124;user=phone>.
Supported: replaces.
Call-ID: 127291448221200023114(a)10.28.19.230.
CSeq: 21593 INVITE.
User-Agent: Grandstream BT110 1.0.8.12.
Max-Forwards: 70.
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE.
Content-Type: application/sdp.
Content-Length: 206.
.
v=0.
o=0660522014 8000 8001 IN IP4 10.28.19.124.
s=SIP Call.
c=IN IP4 0.0.0.0.
t=0 0.
m=audio 5004 RTP/AVP 8 18 0.
a=sendonly.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
#
U 2007/05/17 12:45:49.371204 10.28.19.202:5060 -> 10.28.19.124:5060
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 10.28.19.124;branch=z9hG4bKc442076492fe9954.
From: <sip:06XXXXXX14@10.28.19.202>;tag=9bb7a2279efa8707.
To: <sip:06XXXXXX15@10.28.19.230>;tag=1c1272914830.
Call-ID: 127291448221200023114(a)10.28.19.230.
CSeq: 21593 INVITE.
Proxy-Authenticate: Digest realm="10.28.19.202",
nonce="464c4fa95f251088d01666190944e53313bab22e".
Server: Sip EXpress router (0.9.6 (i386/linux)).
Content-Length: 0.
Warning: 392 10.28.19.202:5060 "Noisy feedback tells: pid=15940
req_src_ip=10.28.19.124 req_src_port=5060
in_uri=sip:0660522015@10.28.19.230 out_uri=sip:0660522015@10.28.19.230
via_cnt==1".
My question is: why SER reply with an authentication request to
INVITE, if the Transferor party is a registred user? Have you any
suggestion about?
I verify user subscribtion in my ser.cfg file as follow:
if (!allow_trusted()) {
if (!proxy_authorize("","subscriber")) {
proxy_challenge("","0");
break;
} else if (!check_from()) {
sl_send_reply("403", "Use From=ID");
break;
};
consume_credentials();
}
Thanks for support,
Flavio
--
********************************
* (o< ing. Patria Flavio
* //\ phone 0823451358
* V_/_ mobile 3407873357
*
********************************
Hi all,
I have observed when looping a request through SER (using
t_relay_to("127.0.0.1", 5060)) that sometimes the via branch parameter
value generated when the request goes out is kept equal to the value
in the previous via (when this request was looped), and two equal vias
go out.
This causes problems with on_reply routes. On_reply routes are then
called only once, instead of two. Since these are 2 independent
transactions, this should happen twice.
Browsing through tm code, it seems that this is caused by the usage of
syn_branch == 1 in main.c (the default), leading to the following
function calls when an initial INVITE loops:
tm/t_fwd.c:
t_forward_nonack
add_uac
print_uac_request
tm/t_msgbuilder.c:
t_calc_branch
msg_translator.c:
branch_builder <-- here, when syn_branch==1, the transaction
'label' value is used for the branch value, but according to
tm/h_table.h, this value is "sequence number within hash collision
slot".
Is this the reason why some times the branch value is the same in two
transactions looped through SER? The label value can perfectly be the
same across 2 transactions not in the same hash slot... right?
Maybe this has nothing to do with the request being looped, or it just
makes this situation more probable?
Anyone else can replicate this behaviour?
Thanks,
João Filipe Plácido
--
PT Inovação
Hi guys,
I able the control of simultaneous users with the function [max_contacts], but whenever the user is blocked the softphone (X-lite) show the following message: [Registration error: 503 - Service Unavailable].
I tried to adapt the message conform code below, but not resolve:
if (t_check_status("503")) {
sl_send_reply("503","my new reply");
exit;
}
Any sugestion ?
Regards
Jeferson
Hi guys,
I was wondering if it is possible to change the log level of some
messages, namely:
ERROR:auth_radius:radius_authorize_sterman: rc_auth failed
rc_send_server: no reply from RADIUS server xxxx.:1812
I have alot of clutter from this one and i would like to lower its
severity so it does not get logged, but i still need other messages
from radius to be logged.
Apart from going into the code and changing the log level do you know
of any other way to do it?
Best.
Dimo
Greeting ,
I have downloaded Media Proxy , but unfortunately I could not find mediaproxy.iso in you package , in you readme , you have explain to how I install it , you mentioned to mediaproxy.iso file which is missing in the package , can you please urgently advise where from can I get the full mediaproxy server .
waiting your reply a.s.a.p .
Best Regards
Mohammad
Network Engineer
GCS
Amman, Jordan