[Freeswitch-users] problem in default dialplan extension 869
Michael Collins
msc at freeswitch.org
Thu Oct 21 11:07:20 PDT 2010
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 at 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 at 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 at 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 at 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 at ccs.covici.com
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101021/f073e17f/attachment-0001.html
More information about the FreeSWITCH-users
mailing list