John,<br><br>I&#39;m not sure what you&#39;re trying to do. This is a simple hash insertion and retrieval. When the caller dials someone in the Local_Extension (1000 to 1019 by default) then there&#39;s an insert operation. For example, when x1002 calls x1001 this is what happens:<br>
EXECUTE sofia/internal/<a href="mailto:1002@10.15.0.94">1002@10.15.0.94</a> hash(insert/10.15.0.94-call_return/1001/1002)<br><br>At extension 1001, I pick up and dial *69 or 869 and this dialplan action is set to execute:<br>
Dialplan: sofia/internal/<a href="mailto:1001@10.15.0.94">1001@10.15.0.94</a> Action transfer(${hash(select/${domain_name}-call_return/${caller_id_number})})<br><br>The actual execution looks like this:<br>EXECUTE sofia/internal/<a href="mailto:1001@10.15.0.94">1001@10.15.0.94</a> transfer(1002)<br>
<br>So *69/869 simple goes to the hash and effectively says, &quot;Give me the caller id of the last person to call me.&quot; In my example, the &quot;me&quot; is 1001. The last person to call &quot;me&quot; was 1002. The data is stored in the hash as &quot;domain-call_return/called_party/calling_party&quot;. When the called party dials *69/869 the dialplan simple retrieves the value from the hash. Now, the confusing part might be the fact that the called party who is returning the call is actually the calling party when he/she dials *69/869, therefore the dialplan must use ${caller_id_number} as the hash key.<br>
<br>I hope this helps.<br><br>-MC<br><br><div class="gmail_quote">On Thu, Oct 21, 2010 at 8:32 AM,  <span dir="ltr">&lt;<a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Maybe I am not understanding this, but if I look at the extension for<br>
call return, it has the following:<br>
&lt;action application=&quot;transfer&quot;<br>
data=&quot;${hash(select/${domain_name}-call_return/${caller_id_number})}&quot;/&gt;<br>
whereas the insert statement when the extension is called has<br>
/${dialed_extension} after the call-return.  So what can I put in the<br>
select to retrieve the correct number?<br>
<br>
Thanks for any suggestion.<br>
<br>
--<br>
Your life is like a penny.  You&#39;re going to lose it.  The question is:<br>
How do<br>
you spend it?<br>
<br>
         John Covici<br>
         <a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto: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>
</blockquote></div><br>