[Freeswitch-users] originate in dialplan

Kozak Vladimir vkozak at abisoft.spb.ru
Tue Jul 28 11:11:25 PDT 2009


A call to B.
A place to musikOnHold.
I wont play short musik rington B before make bridge A with B.

////////////////////////////////////////////////////////////////////////////////////////
If use API comands, it's work:

//1. A to musikOnHold.
sendmsg
call-command: execute
execute-app-name: execute_extension
execute-app-arg: hold_extension

//2. originate B and play rington
api originate B_END_POINT &playback(MUSIK_PATH)

//3. bridge
api uuid_bridge A_UUID B_UUID

////////////////////////////////////////////////////////////////////////////////////////
I wont joint point 2 and point 3 in dial plan.
Result API comands:

//1. A to musikOnHold.
sendmsg
call-command: execute
execute-app-name: execute_extension
execute-app-arg: hold_extension

//2. originate B and play rington to B and bridge A with B
sendmsg
call-command: execute
execute-app-name: execute_extension
execute-app-arg: xxx_extension

dialplan.xml
<extension name="xxx_extension">
        <condition field="destination_number" expression="^xxx_extension$">

???????????????????????????????????    //originate B
???????????????????????????????????    //play to B
???????????????????????????????????    //bridge with A

        </condition>
     </extension>

  ----- Original Message ----- 
  From: Michael Collins 
  To: freeswitch-users at lists.freeswitch.org 
  Sent: Tuesday, July 28, 2009 8:07 PM
  Subject: Re: [Freeswitch-users] originate in dialplan


  What exactly are you trying to accomplish with this dialplan entry? That will help us answer your question. 
  -MC


  2009/7/28 Kozak Vladimir <vkozak at abisoft.spb.ru>

    Hello,

    Please tell me, how can I execute originate new call and uuid_bridge in dial plan.
    I tried to make like thise:
            <action application="originate" data="user/$${destination_end_point} &playback(${hold_music})"/>
            <action application="originate" data="user/$${destination_end_point}, &playback($${hold_music})"/>
            <action application="uuid_bridge" data="$${uuid} $${client_uuid}"/>

    result:
            [ERR] switch_core_session.c:1239 switch_core_session_execute_application() Invalid Application originate
            [ERR] switch_core_session.c:1239 switch_core_session_execute_application() Invalid Application uuid_bridge

    Best regards.
    vkozak

    _______________________________________________
    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/20090728/029438e3/attachment-0002.html 


More information about the FreeSWITCH-users mailing list