<!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.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Setup:</FONT></DIV>
<DIV><FONT face=Arial size=2>Asterisk with chan_h323 (chan_iax was connecting
the two clients directly, dropping asterisk out of the picture)</FONT></DIV>
<DIV><FONT face=Arial size=2>Clients are two pentium class computers on the same
network with ohphone installed.</FONT></DIV>
<DIV><FONT face=Arial size=2>The idea is simply to have one client call into
asterisk (a client calling from outside) to be</FONT></DIV>
<DIV><FONT face=Arial size=2>answered by an operator then transferred to a
different extension.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Extensions.conf:</FONT></DIV>
<DIV> [default]</DIV>
<DIV> include => parkedcalls</DIV>
<DIV><FONT face=Arial size=2> ...</FONT></DIV>
<DIV><FONT face=Arial size=2> exten =>
s,2,Dial(${ARG2}|20|tT) ; ARG2 = H323/192.168.1.55</FONT></DIV>
<DIV> </DIV>
<DIV>The caller dials in.</FONT></DIV>
<DIV><FONT face=Arial size=2>The operator answers.</FONT></DIV>
<DIV><FONT face=Arial size=2>The operator dials #</FONT></DIV>
<DIV><FONT face=Arial size=2>Asterisk plays "transfer" (so
far, no problems)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The operator dials an extension </FONT></DIV>
<DIV><FONT face=Arial size=2>Asterisk replies "sorry, that is not a valid
extension. Please try again."</FONT></DIV>
<DIV><FONT face=Arial size=2>The message in asterisk -vvvc is "unknown extension
'X' in context ' ' " </FONT></DIV>
<DIV><FONT face=Arial size=2>or something to that effect.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>What I've found is the following:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>line 668 of chan_h323.c (cvs from Tuesday
08/19/2003 around 11:45am)</FONT></DIV>
<DIV><FONT face=Arial size=2> strncpy( ch->context,
i->context, sizeof( ch->context )-1 );</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>i is struct oh323_pvt that was generated shortly
beforehand by oh323_alloc() with </FONT></DIV>
<DIV><FONT face=Arial size=2>no reference in the function to ->context.
THere doesn't even appear be a search</FONT></DIV>
<DIV><FONT face=Arial size=2>to compare the requested IP address with an H323
user so the context is left blank!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Therefore, the operator cannot transfer because he
is out of context in asterisk.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>There appears to be a similar problem with chan_iax
because I can dial to an IAX client</FONT></DIV>
<DIV><FONT face=Arial size=2>from an H323 client through asterisk and have the
same problem. (IAX client to IAX client</FONT></DIV>
<DIV><FONT face=Arial size=2>cannot dial # to return to asterisk. Asterisk
hangs up the connection after linking the two</FONT></DIV>
<DIV><FONT face=Arial size=2>clients.)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My question is: Have I setup extensions.conf
wrong or is this really a bug in Asterisk?</FONT></DIV>
<DIV><FONT face=Arial size=2>This has been bothering me for about four weeks now
and I cannot fix this correctly.</FONT></DIV>
<DIV><FONT face=Arial size=2>I have faked it by changing:</FONT></DIV>
<DIV><FONT face=Arial size=2> strncpy( ch->context,
i->context, sizeof( ch->context )-1 );</FONT></DIV>
<DIV><FONT face=Arial size=2>to </FONT></DIV>
<DIV><FONT face=Arial size=2> strncpy( ch->context,
"default", sizeof( ch->context )-1 );</FONT></DIV>
<DIV><FONT face=Arial size=2>which works to test the transfer function but is no
where near a good fix.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you,</FONT></DIV>
<DIV><FONT face=Arial size=2>John.</FONT></DIV></BODY></HTML>