Hi Gabriel, Thanks for your answer so to summarize, I should (I did tome tries) 1) kind of park if failure - kind of replace the voicemail <action application="bridge" data="user/${user_data(${destination_number}@${domain_name} attr id)}@${domain_name}" /> <action application="answer" /> <action application="park"/> <!--<action application="sleep" data="1000" /> <action application="voicemail" data="default ${domain_name} ${dialed_extension}" />--> 2) subscribe to "event xml CHANNEL_PARK" Then I can get <Core-UUID>7e4fd02a-b260-11e1-9687-c13084909128</Core-UUID> <variable_dialed_user>1234</variable_dialed_user> (there the extension my dialplan initially transfered the call to) <Unique-ID>43cca2b4-b311-11e1-a4d1-c13084909128</Unique-ID> <Channel-Call-UUID>43cca2b4-b311-11e1-a4d1-c13084909128</Channel-Call-UUID> ==> which UDID is the one I should watch to be able to unpark the call ? ==> which command from mod_command should I then use to "resume" the call ? or transfer/bridge again to extension 1234 Regards, John On Sat, Jun 9, 2012 at 3:16 AM, Gabriel Gunderson <gabe@gundy.org> wrote:
On Fri, Jun 8, 2012 at 2:31 AM, John Gathm <john.gathm@gmail.com> wrote:
I am wondering if this implementation would be acceptable regarding freeswitch design, or if diaplan/freeswitch offer cleaner ways to implement it.
What if you used your dialplan to try to call the phone and if you do NOT find it, park the call. Then you might use the event socket to watch for the parking of the call so you can send your notification. Next, use the event socket to watch for sofia registrations to know when the app has received the notification, launched and is ready to take calls. Once you get that event, unpark the call and send it on its way.
Best, Gabe
P.S. go python!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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