<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Dear Michael.<br><br>My native language is spanish.<br><br>Thank you very much for help me. I solved my problem with the script:<br><br><span class="yiv435879282Apple-style-span" style="font-size: medium;">&lt;action application="export" data="nolocal:accountcode=foo1"/&gt;<br><br>Thank you.<br></span><br><br>--- On <b>Mon, 4/11/11, Michael Collins <i>&lt;msc@freeswitch.org&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Michael Collins &lt;msc@freeswitch.org&gt;<br>Subject: Re: [Freeswitch-users] Account ACL<br>To: "FreeSWITCH Users Help" &lt;freeswitch-users@lists.freeswitch.org&gt;<br>Date: Monday, April 11, 2011, 9:20 PM<br><br><div id="yiv435879282">Fernando,<div><br></div><div>What is your native language? We have users who are fluent in Spanish, Brazilian Portugese, and
 many others. Ask your question in your native language and someone will be able to help those of us who speak only English to understand.</div>
<div><br></div><div>That being say, I don't see what you can't set the account code on the B leg. You can do this:</div><div><span class="yiv435879282Apple-style-span" style="font-size: medium;">&lt;action application="export" data="nolocal:accountcode=foo1"/&gt;</span></div>
<div><br></div><div>However, you still have not told use how you know what value to use. If you literally need to append "1" to the accountcode you can do something like this:</div><div><span class="yiv435879282Apple-style-span" style="font-size: medium;">&lt;action application="export" data="nolocal:accountcode=${accountcode}1"/&gt;</span></div>
<div><br></div><div>Be sure to use "nolocal:" so that your A leg accountcode value is not affected. Try the above and let us know if that does what you need.</div><div><br></div><div>-MC<br><br><div class="yiv435879282gmail_quote">
On Mon, Apr 11, 2011 at 3:32 PM, FERNANDO VILLARROEL <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:fvillarroel@yahoo.com" target="_blank" href="/mc/compose?to=fvillarroel@yahoo.com">fvillarroel@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="yiv435879282gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;" valign="top">Dear Michael.<br><br>Thank you for you help. I will try to explain but excuse my bad english.<br><br>In my FS i received traffic from a gateway A and this traffic i&nbsp; forward to another Gateway B.<br>
<br>Gateway A ----&gt; My FS -----&gt; Gateway B.<br><br>Ok in my CDR i have both calls, inbound and outbound calls. So i need setup inbound call with accountcode = foo and outbound call i need setup   with another accountcode variable like accountcode = foo1.<br>
<br>So like this i will can inform to my customer (Gateway A) how much traffic i receive from him and i will inform to my provider (Gateway B ) how much traffic i send to him.<br><br>It's possible or let me know another idea how i can do.<br>
<br>Regards.<br><br>--- On <b>Mon, 4/11/11, Michael Collins <i>&lt;<a rel="nofollow" ymailto="mailto:msc@freeswitch.org" target="_blank" href="/mc/compose?to=msc@freeswitch.org">msc@freeswitch.org</a>&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
<br>From: Michael Collins &lt;<a rel="nofollow" ymailto="mailto:msc@freeswitch.org" target="_blank" href="/mc/compose?to=msc@freeswitch.org">msc@freeswitch.org</a>&gt;<br>Subject: Re: [Freeswitch-users] Account ACL<br>To: "FreeSWITCH Users Help" &lt;<a rel="nofollow" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="/mc/compose?to=freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
Date: Monday, April 11, 2011, 6:31 PM<br><br><div><br><br><div>On Mon, Apr 11, 2011 at 2:23 PM, FERNANDO VILLARROEL <span dir="ltr">&lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=fvillarroel@yahoo.com">fvillarroel@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
Dear.<br><br>Yes i need setup b leg with a accountcode different to a leg, like this<br><br>a leg = accountcode = foo<br>b leg = accountcode = foo1<br>
<br>I trying with <br><div><br><div><span style="font-size: medium;">&nbsp;&lt;action application="export" data="accountcode=foo"/&gt;</span></div></div><div><br>But in my CDR for inbound and outbound call is equal to foo.<br>

<br>I need setup inbound call with accountcode = foo and outbound call with accountcode = foo1<br><br></div></td></tr></tbody></table></blockquote><div><br></div><div>How do you know that the outbound leg needs to be "foo1"? In other words, where do you look to get the value of "foo1"?</div>

<div>-MC</div><div><br></div></div>
</div><br>-----Inline Attachment Follows-----<br><br><div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a rel="nofollow" target="_blank" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div></blockquote></td></tr></tbody></table><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>FreeSWITCH-users mailing list<br><a ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></div></blockquote></td></tr></table>