<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1528" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have the following situation that is making my
Asterisk to go down.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have several queues defined on my system, and for
an agent to transfer a client from a queue to the other, he uses atxfer = 1,
define on features.conf.</FONT></DIV>
<DIV><FONT face=Arial size=2>The problem is that I need the agent to be able to
pull the call back, in case there is a long waiting queue for the transferred
extension.</FONT></DIV>
<DIV><FONT face=Arial size=2>Since I didn't find a way to do this, I implemented
a system with two queues (queue0 and queue1).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>So, the agent is calling to a customer, dials 1 +
queue0-extension and enter the 0 queue. If is a waiting line, he goes to a menu
that allows him to hang up (and thus return to the client) or to wait on the
queue, thus going to queue1.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have this working pretty well for several queues
in the company (billing, support, support levels 1, 2 and 3, etc.). BUT,
sometimes, Asterisk goes down.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I looked at the core file generated by
safe_asterisk on /tmp, using gdb and found the following
information.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am not a C specialist, but when checking on line
1442 of res_features.c I realized the the problem is when res=1 and it tries to
call ast_frfree(f).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I can give more details in case someone is
available and willing to help...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#0 0x00331239 in free () from
/lib/tls/libc.so.6<BR>(gdb) bt full<BR>#0 0x00331239 in free () from
/lib/tls/libc.so.6<BR>No symbol table info available.<BR>#1 0x0805a641 in
ast_frfree (fr=0x3f5cd8) at frame.c:277<BR>No locals.<BR>#2 0x0014f2ac in
ast_bridge_call (chan=0x9473048, peer=0x95dd658, config=0xb6d493f0) at
res_features.c:1442<BR> featurecode =
0x305ef902 <Address 0x305ef902 out of
bounds><BR> sense =
2<BR> other = (struct ast_channel *)
0x9473048<BR> f = (struct ast_frame *)
0xb6d493f0<BR> who = (struct
ast_channel *) 0x95dd658<BR>
chan_featurecode = '\0' <repeats 11
times><BR> peer_featurecode =
"1\000\000\000\000\000\000\000\000\000\000"<BR>
res = -1<BR> hasfeatures =
0<BR> hadfeatures =
0<BR> aoh = (struct ast_option_header
*) 0x3f3570<BR> start = {tv_sec = 0,
tv_usec = 0}<BR> backup_config =
{features_caller = {flags = 0}, features_callee = {flags = 0}, start_time =
{tv_sec = 0,<BR> tv_usec = 0}, feature_timer = 0, timelimit =
0, play_warning = 0, warning_freq = 0, warning_sound = 0x0,<BR> end_sound
= 0x0, start_sound = 0x0, firstpass = 0, flags =
0}<BR> monitor_exec = 0x305ef8fa
<Address 0x305ef8fa out of bounds><BR>#3 0x0022b1e3 in try_calling
(qe=0x6dc18e0, options=0x6dc18e0 "HzT\tfila", announceoverride=0x6dc1a5d "",
url=0x6dc1a5c "",<BR> go_on=0x95dd658) at
app_queue.c:2273<BR> res2 =
155660360<BR> cur = (struct member *)
0x0<BR> outgoing = (struct localuser
*) 0x0<BR> tmp = (struct localuser *)
0x95dd658<BR> to =
11731<BR> restofit = '\0' <repeats
16 times>,
"\b\030Ü\006Ø\\?\000´£\022\000´£\022\000è©\"\tä\030Ü\006H0G\t\003]\022\000H0G\t\234¡\022\000è©\"\t)k\005\b8õ\020\bx[\\\tì \022\000T5#"<BR>
oldexten = "s", '\0' <repeats 78
times><BR> oldcontext =
"macro-filagrupo1", '\0' <repeats 63
times><BR> queuename = "suporte1",
'\0' <repeats 247 times><BR>
newnum = 0x9473048
"Transfered/SIP/200.234.208.250-098da6c8<ZOMBIE>"<BR>
monitorfilename = 0x6dc18e0
"HzT\tfila"<BR> peer = (struct
ast_channel *) 0x95dd658<BR> which =
(struct ast_channel *) 0x9473048<BR>
lpeer = (struct localuser *)
0x95dd658<BR> member = (struct member
*) 0x9549618<BR> res =
0<BR> bridge =
157144664<BR> numbusies =
16<BR> x =
68<BR> announce = 0x0<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you very
much!!!<BR>Dov</FONT></DIV></BODY></HTML>