Use scripting. Originate это функция command api. Лучше используйте скрипт на lua. Создайте звонок к B: Session(sofia/B) Проиграйте что надо, а потом сделайте bridge между двумя uuid.
> 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<mailto:m...@freeswitch.org> > To: > freeswitch-users@lists.freeswitch.org<mailto:freeswitch-us...@lists.freeswi >tch.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 > <vko...@abisoft.spb.ru<mailto:vko...@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 -- С уважением, Кривушин Михаил Ведущий специалист отдела телекоммуникаций, ООО "РН-Информ" филиал в г.Томске, г. Томск сот. +7 913 865 78 66 icq: 218 744 127 xmpp: krivushi...@jabber.ru mail: krivushi...@rn-inform.tomsk.ru Внутренняя сеть: 86 099 192726 _______________________________________________ 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