[Freeswitch-users] Running Post-Bridge scripts

Alec Glassford alec at efuse.co.uk
Thu Aug 11 19:06:06 MSD 2011


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<http://www.efuse.co.uk/>

This is an email from efuse, IT Solutions providers: www.efuse.co.uk<http://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<mailto: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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110811/9df6703e/attachment-0001.html 


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