<!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.1491" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I've posted this to the ast-users list: <A
href="http://lists.digium.com/pipermail/asterisk-users/2005-March/096435.html">http://lists.digium.com/pipermail/asterisk-users/2005-March/096435.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have managed to get it working by doing some
nasty things:</FONT></DIV>
<DIV><FONT face=Arial size=2>1. Applied the app_pickup patch from
bristuff.</FONT></DIV>
<DIV><FONT face=Arial size=2>2. Created a new app that modifies the callgroup
field of the current channel. (called app_addcallgroup)</FONT></DIV>
<DIV><FONT face=Arial size=2>3. Modified app_dial, added a new option "a" that
inherits the call group from the original channel to the new one:</FONT></DIV>
<DIV><FONT face=Arial
size=2>
/* Franco
*/<BR>
if (inherit_callgroup)
{<BR>
tmp->chan->callgroup=chan->callgroup;<BR>
}<BR>
/* /Franco */<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>The question is: is there an easier way to do
it?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Tks</FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Franco Bellagamba<BR><A
href="http://www.ssatelital.com.ar">www.ssatelital.com.ar</A><BR> <BR>Tel:
5411 6334 1000 | Fax: 5411 6334 1010 <BR>Tte. Gral. J. D.
Perón 949, 5º Piso, C1038AAS,<BR>Buenos Aires, Argentina<BR> <BR><A
href="mailto:fbellagamba@ssatelital.com.ar">fbellagamba@ssatelital.com.ar</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><BR></FONT> </DIV></BODY></HTML>