[Freeswitch-users] group_confirm - Question

Aloysius Lloyd lloyd.aloysius at sunteltech.ca
Tue Dec 28 04:20:08 MSK 2010


Dialplan and Log - http://pastebin.freeswitch.org/14887

Here is the dial plan. No Errors ... but group_confirm not working and call
directly connected.

 <http://pastebin.freeswitch.org/14887>
<extension name="Local_Extension_FollowMe">
   <condition field="${user_data(${destination_number}@${domain_name} var
followme_status)}" expression="enable"/>
   <condition field="destination_number" expression="^(20[0-9])$">
        <action application="set" data="dialed_extension=$1"/>
        <action application="export" data="dialed_extension=$1"/>
        <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s]
<app> -->
        <action application="bind_meta_app" data="1 b s
execute_extension::dx XML features"/>
        <action application="bind_meta_app" data="2 b s
record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
        <action application="bind_meta_app" data="3 b s
execute_extension::cf XML features"/>
        <action application="bind_meta_app" data="4 b s
execute_extension::att_xfer XML features"/>
        <action application="set" data="ringback=${us-ring}"/>
        <action application="set" data="transfer_ringback=$${hold_music}"/>
        <action application="set" data="call_timeout=20"/>
        <!-- <action application="set"
data="sip_exclude_contact=${network_addr}"/> -->
        <action application="set" data="hangup_after_bridge=true"/>
        <!--<action application="set"
data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/>
-->
        <action application="set" data="continue_on_fail=true"/>
        <action application="hash"
data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/>
        <action application="hash"
data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/>
        <action application="hash"
data="insert/${domain_name}-last_dial_ext/${called_party_callgroup}/${uuid}"/>
        <action application="hash"
data="insert/${domain_name}-last_dial_ext/global/${uuid}"/>
        <action application="set"
data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name}
var callgroup)}"/>
        <!--<action application="export"
data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name}
var sip_secure_media)}"/>-->
        <action application="hash"
data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/>
       * <action application="bridge"
data="{ignore_early_media=true}[leg_timeout=20]user/${dialed_extension}@
${domain_name},[ignore_early_media=true,group_confirm_file=/usr/local/freeswitch/sounds/en/us/callie/followme/press-1-to-accept.wav,group_confirm_key=1]sofia/gateway/utel/${user_data(${dialed_extension}@${domain_name}
var followme_number)}"/>*
        <action application="answer"/>
        <action application="sleep" data="1000"/>
        <action application="bridge" data="loopback/app=voicemail:default
${domain_name} ${dialed_extension}"/>
    </condition>
</extension>

Thanks
Lloyd

On Mon, Dec 27, 2010 at 1:04 AM, Avi Marcus <Avi at amarcus.com> wrote:

> Can you paste the bridge for us again just to confirm the change, and the
> new log?
> And to clarify, you mean it's not working for the PSTN recipients, correct?
> -Avi
>
>
> On Mon, Dec 27, 2010 at 6:57 AM, Aloysius Lloyd <
> lloyd.aloysius at sunteltech.ca> wrote:
>
>> I try the [] now no errors. But
>>
>> -  group_confirm_file not play
>> - call directly connected
>>
>> basically group_confirm not working.
>>
>> Thanks
>> Lloyd
>>
>> On Sun, Dec 26, 2010 at 4:29 PM, Avi Marcus <Avi at amarcus.com> wrote:
>>
>>> I don't think you are supposed to be using {} variables in the middle of
>>> your bridge string. It's only used at the beginning for setting variables
>>> for EVERY bridge string, else, you should enclose it in []. I think. Give it
>>> a try.
>>> -Avi Marcus
>>>
>>> On Sun, Dec 26, 2010 at 10:37 PM, Aloysius Lloyd <
>>> lloyd.aloysius at gmail.com> wrote:
>>>
>>>> Hi All,
>>>>
>>>> Dial plan below use group_confrim,  work for both internal and external
>>>> (PSTN) Calls without any issues
>>>>
>>>> <action application="bridge" data="{ignore_early_media=true,*
>>>> group_confirm_file=/usr/local/freeswitch/sounds/en/us/callie/followme/press-1-to-accept.wav,group_confirm_key=1
>>>> *}user/${dialed_extension}@
>>>> ${domain_name},sofia/gateway/voipms/${user_data(${dialed_extension}@${domain_name}
>>>> var followme_number)}"/>
>>>>
>>>>
>>>> -----
>>>>
>>>> But I would like to use the group_confirm feature for external PSTN
>>>> (Calls only). The following Dial plan is not working and the console log
>>>> below.
>>>>
>>>> <action application="bridge"
>>>> data="{ignore_early_media=true}user/${dialed_extension}@
>>>> ${domain_name},{*
>>>> group_confirm_file=/usr/local/freeswitch/sounds/en/us/callie/followme/press-1-to-accept.wav,group_confirm_key=1
>>>> *}sofia/gateway/voipms/${user_data(${dialed_extension}@${domain_name}
>>>> var followme_number)}"/>
>>>>
>>>>
>>>> *Console Log*
>>>>
>>>> 2010-12-26 15:23:21.796308 [ERR] switch_core_session.c:380 Could not
>>>> locate channel type {group_confirm_file=
>>>> 2010-12-26 15:23:21.796308 [ERR] switch_ivr_originate.c:2614 Cannot
>>>> create outgoing channel of type [{group_confirm_file=] cause:
>>>> [CHAN_NOT_IMPLEMENTED]
>>>> 2010-12-26 15:23:21.796308 [ERR] switch_core_session.c:380 Could not
>>>> locate channel type group_confirm_key=1}sofia
>>>> 2010-12-26 15:23:21.796308 [ERR] switch_ivr_originate.c:2614 Cannot
>>>> create outgoing channel of type [group_confirm_key=1}sofia] cause:
>>>> [CHAN_NOT_IMPLEMENTED]
>>>>
>>>> --------
>>>>
>>>> Any help is appreciated.
>>>>
>>>> Thanks
>>>> Lloyd
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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/20101227/dd478576/attachment-0001.html 


More information about the FreeSWITCH-users mailing list