[Freeswitch-users] Running Post-Bridge scripts

Avi Marcus avi at avimarcus.net
Thu Aug 11 20:39:19 MSD 2011


uuid_bridge_continue_on_cancel sounds like an API, not a dialplan tool..

exec_after_bridge_app according to the wiki means once the bridge ENDS. So
how about just using a hangup hook?

http://wiki.freeswitch.org/wiki/Variable_api_hangup_hook

-Avi Marcus

718-989-9485 (USA)
054-844-3271 (Israel Kosher)
077-228-5055 (Israel Landline)
020-3519-3606 (UK)



On Thu, Aug 11, 2011 at 6:06 PM, Alec Glassford <alec at efuse.co.uk> wrote:

> Hi,****
>
> ** **
>
> I need to run a LUA script after a Bridge to write call information to a
> MySQL DB.****
>
> ** **
>
> The problem is the script is only running intermittently, maybe 1 in 10
> calls.****
>
> ** **
>
> I have tried the exec_after_bridge_app command, I’ve tried
> uuid_bridge_continue_on_cancel, but it neither works.  I can provide output
> if necessary.****
>
> ** **
>
> I am bridging FreeTDM Sangoma A101 E1 ISDN30 calls to a SIP Provider, I do
> a DB lookup to find the correct Presentation number then bridge the call,
> below is from my Dialplan:****
>
> ** **
>
> <condition field="destination_number" expression="^(\d{11})$"> ****
>
>      <action application="lua" data="lookup02.lua"/> ****
>
>      <action application="set"
> data="effective_caller_id_number=${Presentation}"/>****
>
>      <action application="set"
> data="effective_caller_id_name=${Presentation}"/>****
>
>      <action application="log" data="INFO Dialling $1 presenting
> ${Presentation} from dblookup"/>****
>
>      <action application="set" data="uuid_bridge_continue_on_cancel=true"/>
> ****
>
>      <action application="set" data="exec_after_bridge_app=lua"/>****
>
>      <action application="set" data="exec_after_bridge_arg=endcall01.lua"/>
> ****
>
>      <action application="bridge" data="sofia/gateway/ProviderZZZ/$1" />**
> **
>
>      <action application="lua" data="endcall01.lua"/>****
>
>      <action application="hangup" />****
>
> </condition>****
>
> ** **
>
> Any help much appreciated****
>
> ** **
>
> ** **
>
> *Alec Glassford*****
>
> *efuse*****
>
> Tel:  0844 847 9707****
>
> Mob: 07540 417395****
>
> Fax: 0844 847 9708****
>
> www.efuse.co.uk****
>
> ** **
>
> This is an email from efuse, IT Solutions providers: www.efuse.co.uk****
>
>  ****
>
> P Save a tree...please don't print this e-mail* unless you really need to*
> ****
>
> Its contents are confidential and legally privileged and it is intended
> only for the use of the addressees named above.  If you are not an addressee
> you must not read it and must not use any information contained in it nor
> copy it nor inform any person other than Efuse Solutions or the addressees
> of its existence or contents.****
>
> If you have received this email and are not a named addressee please delete
> it and notify support at efuse.co.uk <helpdesk at efuse.co.uk>****
>
> Please note that Efuse Solutions nor the sender accepts any responsibility
> for viruses and that it is your responsibility to scan any attachments.  No
> contractual obligations may be established on behalf of Efuse Solutions by
> means of email communication.****
>
> ** **
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> 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/20110811/3c3a32be/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list