Maybe I am not understanding this, but if I look at the extension for call return, it has the following: <action application="transfer" data="${hash(select/${domain_name}-call_return/${caller_id_number})}"/> whereas the insert statement when the extension is called has /${dialed_extension} after the call-return. So what can I put in the select to retrieve the correct number? Thanks for any suggestion. -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
John, I'm not sure what you'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's an insert operation. For example, when x1002 calls x1001 this is what happens: EXECUTE sofia/internal/1002@10.15.0.94hash(insert/10.15.0.94-call_return/1001/1002) At extension 1001, I pick up and dial *69 or 869 and this dialplan action is set to execute: Dialplan: sofia/internal/1001@10.15.0.94 Action transfer(${hash(select/${domain_name}-call_return/${caller_id_number})}) The actual execution looks like this: EXECUTE sofia/internal/1001@10.15.0.94 transfer(1002) So *69/869 simple goes to the hash and effectively says, "Give me the caller id of the last person to call me." In my example, the "me" is 1001. The last person to call "me" was 1002. The data is stored in the hash as "domain-call_return/called_party/calling_party". 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. I hope this helps. -MC On Thu, Oct 21, 2010 at 8:32 AM, <covici@ccs.covici.com> wrote:
Maybe I am not understanding this, but if I look at the extension for call return, it has the following: <action application="transfer" data="${hash(select/${domain_name}-call_return/${caller_id_number})}"/> whereas the insert statement when the extension is called has /${dialed_extension} after the call-return. So what can I put in the select to retrieve the correct number?
Thanks for any suggestion.
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks, that clarified things -- I will have to see why it has not worked for me, I just get an out of order signal, but I will check logs and see why this happened. Michael Collins <msc@freeswitch.org> wrote:
John,
I'm not sure what you'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's an insert operation. For example, when x1002 calls x1001 this is what happens: EXECUTE sofia/internal/1002@10.15.0.94hash(insert/10.15.0.94-call_return/1001/1002)
At extension 1001, I pick up and dial *69 or 869 and this dialplan action is set to execute: Dialplan: sofia/internal/1001@10.15.0.94 Action transfer(${hash(select/${domain_name}-call_return/${caller_id_number})})
The actual execution looks like this: EXECUTE sofia/internal/1001@10.15.0.94 transfer(1002)
So *69/869 simple goes to the hash and effectively says, "Give me the caller id of the last person to call me." In my example, the "me" is 1001. The last person to call "me" was 1002. The data is stored in the hash as "domain-call_return/called_party/calling_party". 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.
I hope this helps.
-MC
On Thu, Oct 21, 2010 at 8:32 AM, <covici@ccs.covici.com> wrote:
Maybe I am not understanding this, but if I look at the extension for call return, it has the following: <action application="transfer" data="${hash(select/${domain_name}-call_return/${caller_id_number})}"/> whereas the insert statement when the extension is called has /${dialed_extension} after the call-return. So what can I put in the select to retrieve the correct number?
Thanks for any suggestion.
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
---------------------------------------------------- Alternatives:
---------------------------------------------------- _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
participants (2)
-
covici@ccs.covici.com
-
Michael Collins