On Fri, May 29, 2009 at 11:35 PM, Olivier <span dir="ltr">&lt;<a href="mailto:oza-4h07@myamail.com">oza-4h07@myamail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div class="gmail_quote">2009/5/29 Danny Nicholas <span dir="ltr">&lt;<a href="mailto:danny@debsinc.com" target="_blank">danny@debsinc.com</a>&gt;</span><div class="im"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">












<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">I’m pretty sure that attended
transfer is a “features” function, not a dialplan one.</span></font></p></div></div></blockquote></div><div><br>Yes, you&#39;re right but do you think there&#39;s such a big difference between both that it shouldn&#39;t be easy or even possible to add support of attended transfer in dialplan ?<br>

<br>What I have in my mind is this :<br><br>Today, Dial application M or U options allows macro execution when caller and callee are connected.<br>What if this same macro could be also launched during some later events (like attended transfer) ?<br>

With features.conf, you could then specify :<br>- how lo launch an attended
transfer (which key to type as today),<br>- if a given &quot;feature&quot; (attended transfer, parking, ...) should be supported by Dial macro option (for compatibilty, default could be set to none)<br><br>and with extension.conf, you could specify :<br>

- which specific
treatment (sending UserEvents, launching an external program, ...) to apply<br><br>In this puzzle, if Asterisk could support a few more standard variables like ATTENDED_TRANSFERER ATTENDED_TRANSFER_TARGET, you would everything to define and run attended transfers specific logic :<br>

<br>exten =&gt; 123,1,Dial(SIP/123,M(mymacro^arg1^arg2))     ; mymacro is launched upon connection and specified (in features.conf) events<br><br>[macro-mymacro]<br>GotoIf(&quot;x${ATTENDED_TRANSFERER}&quot;, ....<br><br>

What about that ?<br></div></div></blockquote><div> </div><div>Olivier--<br><br>This is actually not a bad idea.Why single out just the Attended xfer? Why would you treat<br>attended xfers differently than blind xfers? Just curious.<br>
<br>Also, calling just one macro for all features seems a bit restricted. Why not allow the features.conf<br>to specify which macro/gosub to call, for each feature?  Dial is already overloaded with options,<br>anything that could be offloaded would probably be desirable. Plus, calls that were not initiated by<br>
a dialplan &quot;Dial()&quot; invocation might not be able to provide that option.<br><br>Another question: what do you need this functionality to *do*? It could be that there is an already <br>existing functionality that you could exploit to get the same results?<br>
<br>murf<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><div link="blue" vlink="purple" lang="EN-US"><div><p>
<font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"></span></font></p>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">On my system I do *2 and asterisk says
transfer, then I punch in the new extension.</span></font></p>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<div>

<div style="text-align: center;" align="center"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>Olivier<br>
<b><span style="font-weight: bold;">Sent:</span></b> Friday, May 29, 2009 10:29
AM<br>
<b><span style="font-weight: bold;">To:</span></b> Asterisk
 Users Mailing List - Non-Commercial Discussion<br>
<b><span style="font-weight: bold;">Subject:</span></b> [asterisk-users] Attended
transfer and dialplan</span></font></p>

</div><div><div></div><div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">Hi,<br>
<br>
How can you add specific statements into Asterisk dialplan (extension.ael, ...)
for attented transfers ?<br>
<br>
I can see Asterisk sending Transfer or Masquerade events through AMI (in 1.6.1)
but I could use an external program to catch those events but I would prefer to
use dialplan instead.<br>
<br>
Any idea ?<br>
<br>
Regards</span></font></p>

</div></div></div>

</div><br></div></blockquote></div></blockquote></div>-- <br>Steve Murphy<br>ParseTree Corp<br><br>