<!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 have modified the app_dial application, so it can
take an extra argument G(n) where n is the call group you want the outgoing leg
of the call to be in (currently only one group, have to work on that).
</FONT></DIV>
<DIV><FONT face=Arial size=2>If anyone is interested, post me and I'll send a
diff.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Franco</FONT></DIV>
<DIV style="FONT: 10pt arial">----- Original Message -----
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A
title=fbellagamba@ssatelital.com.ar
href="mailto:fbellagamba@ssatelital.com.ar">Franco Bellagamba</A> </DIV>
<DIV><B>To:</B> <A title=asterisk-dev@lists.digium.com
href="mailto:asterisk-dev@lists.digium.com">asterisk-dev@lists.digium.com</A>
</DIV>
<DIV><B>Sent:</B> Tuesday, March 22, 2005 4:14 PM</DIV>
<DIV><B>Subject:</B> [Asterisk-Dev] Call Pickup Question</DIV></DIV>
<DIV><BR></DIV>
<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>
<P>
<HR>
<P></P>_______________________________________________<BR>Asterisk-Dev mailing
list<BR>Asterisk-Dev@lists.digium.com<BR>http://lists.digium.com/mailman/listinfo/asterisk-dev<BR>To
UNSUBSCRIBE or update options visit:<BR>
http://lists.digium.com/mailman/listinfo/asterisk-dev</BODY></HTML>