<br><br><div class="gmail_quote">2013/1/18 Danny Nicholas <span dir="ltr"><<a href="mailto:danny@debsinc.com" target="_blank">danny@debsinc.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Since Gosub is technically an application, you should be able to modify this snippet in features.conf<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">testfeature => #9,peer,Playback,tt-monkeys ;Allow both the caller and callee to play<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">; ;tt-monkeys to the opposite channel<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">To this<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">testfeature => #9,peer,Gosub,play-monkeys,s,1 ;Allow both the caller and callee to play<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">; ;tt-monkeys to the opposite channel<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">And in extensions.conf add<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[play-monkeys]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Exten => s,1,playback(tt-monkeys)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Exten => s,n,return()</span></p>
</div></div></blockquote><div><br>Unfortunately, I couldn't make the above work (with Asterisk 1.8/FreePBX 2.10) nore I could pass arguments to a custom Macro.<br>Can you confirm it worked on your setup ? Which asterisk version did you use ?<br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <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>On Behalf Of </b>Olivier<br>
<b>Sent:</b> Friday, January 18, 2013 3:35 AM</span></p><div class="im"><br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br></div><b>Subject:</b> Re: [asterisk-users] How to give users the capability to set CDR userfield for some calls<u></u><u></u><p>
</p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p><div><p class="MsoNormal">2013/1/17 Kevin Larsen <<a href="mailto:kevin.larsen@pioneerballoon.com" target="_blank">kevin.larsen@pioneerballoon.com</a>><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Possibly switch to using subroutines instead of Macros. Macros are being deprecated in place of subroutines.</span> <u></u><u></u></p>
<div><p class="MsoNormal"><br><br>Interesting thing to try.<br>The trouble is I can't find any usable example of calling Gosub routines from features.conf's application map.<br>I've found old references explaining that this is not supported but I don't if it's still valid or not.<br>
<br>Any ex<br><br> <u></u><u></u></p></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><p class="MsoNormal"><span style="font-family:"Arial","sans-serif""><br>
Kevin Larsen - Systems Analyst - Pioneer Balloon - Ph: <a href="tel:316-688-8208" target="_blank">316-688-8208</a></span> <br><br><br><br><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5f5f5f">From: </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">Olivier <<a href="mailto:oza_4h07@yahoo.fr" target="_blank">oza_4h07@yahoo.fr</a>></span> <br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5f5f5f">To: </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">Asterisk Users Mailing List - Non-Commercial Discussion <<a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a>>, </span><br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5f5f5f">Date: </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">01/17/2013 10:29 AM</span> <br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5f5f5f">Subject: </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">[asterisk-users] How to give users the capability to set CDR userfield for some calls</span> <br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5f5f5f">Sent by: </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif""><a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a></span> <u></u><u></u></p>
<div class="MsoNormal" style="text-align:center" align="center"><hr style="color:#a0a0a0" align="center" noshade size="2" width="100%"></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br><br><u></u><u></u></p><div>
<div><p class="MsoNormal" style="margin-bottom:12.0pt">Hello,<br><br>To my surprise, with asterisk 1.8 (I've not tried with other versions), it seems you cannot set CDR's userfield from within a dialplan macro called by dynamic features.<br>
<br>See :<br><br>testfeature => *321,self/callee,Macro,toto<br><br>[macro-toto]<br>exten => s,1,Verbose(0,Into macro-toto with CDR(src) set to ${CDR(src)})<br>exten => s,n,Set(CDR(userfield)=foobar)<br><br>I'm planning to use this feature to let users mark in CDR an ongoing call as malicious or important or whatever.<br>
<br>Any hint ?<u></u><u></u></p></div></div><p class="MsoNormal">Regards<tt><span style="font-size:10.0pt">--</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br><tt>_____________________________________________________________________</tt><br>
<tt>-- Bandwidth and Colocation Provided by </tt></span><a href="http://www.api-digital.com/" target="_blank"><tt><span style="font-size:10.0pt">http://www.api-digital.com</span></tt></a><tt><span style="font-size:10.0pt"> --</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
<tt>New to Asterisk? Join us for a live introductory webinar every Thurs:</tt><br><tt> </tt></span><a href="http://www.asterisk.org/hello" target="_blank"><tt><span style="font-size:10.0pt">http://www.asterisk.org/hello</span></tt></a><span style="font-size:10.0pt;font-family:"Courier New""><br>
<br><tt>asterisk-users mailing list</tt><br><tt>To UNSUBSCRIBE or update options visit:</tt><br><tt> </tt></span><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"><tt><span style="font-size:10.0pt">http://lists.digium.com/mailman/listinfo/asterisk-users</span></tt></a> <br>
<br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><u></u><u></u></p>
</blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>