Problem with bind_meta_app
Hello! I want *1 to trigger a Lua script, so I configured my dialplan with a call to bind_meta_app like this: <extension name="my_bridge_call"> <condition field="destination_number" expression="^11"> <action application="bind_meta_app" data="1 b b lua::my_trigger.lua"/> <action application="lua" data="my_bridge_call.lua"/> </condition> </extension> With the configuration above, whenever I press *1 on the b leg, the my_trigger.lua script is launched. That part works great! However, it seems like something else is also listening for the *1, since notice a few oddities every time I trigger the script: 1. I see this error in the console: 2010-11-05 11:38:53.875766 [ERR] switch_core_file.c:122 Invalid file format [local_stream] for [moh]! 2. On the a leg, I can hear a noise when dialing *1 on the b leg. I don't quite hear the touch tones, but the noise is definitely associated with them. 3. After triggering the script, no audio is transferred for about 5 seconds. It looks to me like FreeSWITCH is trying to transfer the calls to music-on-hold, then gets an error, times out, and goes back to the original call. There are no other calls to bind_meta_app, so what else is reacting to the *1? Thanks! Mike van Lammeren
because *1 is allready inuse check dialplan/default.xml extension: local_extension try *5 and see if work because 1|2|3|4 is allready used Le 05/11/2010 16:47, Mike van Lammeren a écrit :
Hello!
I want *1 to trigger a Lua script, so I configured my dialplan with a call to bind_meta_app like this:
<extension name="my_bridge_call"> <condition field="destination_number" expression="^11"> <action application="bind_meta_app" data="1 b b lua::my_trigger.lua"/> <action application="lua" data="my_bridge_call.lua"/> </condition> </extension>
With the configuration above, whenever I press *1 on the b leg, the my_trigger.lua script is launched. That part works great!
However, it seems like something else is also listening for the *1, since notice a few oddities every time I trigger the script: 1. I see this error in the console:
2010-11-05 11:38:53.875766 [ERR] switch_core_file.c:122 Invalid file format [local_stream] for [moh]!
2. On the a leg, I can hear a noise when dialing *1 on the b leg. I don't quite hear the touch tones, but the noise is definitely associated with them.
3. After triggering the script, no audio is transferred for about 5 seconds.
It looks to me like FreeSWITCH is trying to transfer the calls to music-on-hold, then gets an error, times out, and goes back to the original call. There are no other calls to bind_meta_app, so what else is reacting to the *1?
Thanks!
Mike van Lammeren
_______________________________________________ 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
-- Meftah Tayeb inum: +883510001288000 Phone: +13602276297 Fax: +12538020313
It's trying to put the one leg on hold while your app runs. you can either install the music files or you can set the hold_music variable to "silence" on all legs On Fri, Nov 5, 2010 at 10:47 AM, Mike van Lammeren <mike@van.lammeren.net> wrote:
Hello! I want *1 to trigger a Lua script, so I configured my dialplan with a call to bind_meta_app like this: <extension name="my_bridge_call"> <condition field="destination_number" expression="^11"> <action application="bind_meta_app" data="1 b b lua::my_trigger.lua"/> <action application="lua" data="my_bridge_call.lua"/> </condition> </extension> With the configuration above, whenever I press *1 on the b leg, the my_trigger.lua script is launched. That part works great! However, it seems like something else is also listening for the *1, since notice a few oddities every time I trigger the script: 1. I see this error in the console: 2010-11-05 11:38:53.875766 [ERR] switch_core_file.c:122 Invalid file format [local_stream] for [moh]! 2. On the a leg, I can hear a noise when dialing *1 on the b leg. I don't quite hear the touch tones, but the noise is definitely associated with them. 3. After triggering the script, no audio is transferred for about 5 seconds. It looks to me like FreeSWITCH is trying to transfer the calls to music-on-hold, then gets an error, times out, and goes back to the original call. There are no other calls to bind_meta_app, so what else is reacting to the *1? Thanks! Mike van Lammeren
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Awesome! That works perfectly now. Thanks! For the benefit of newbies, (like me,) here is my dialplan entry now: <extension name="my_bridge_call"> <condition field="destination_number" expression="^11"> <action application="set" data="hold_music=silence" /> <action application="bind_meta_app" data="1 b b lua::my_other_script.lua"/> <action application="lua" data="my_bridge_call.lua"/> </condition> </extension> On Fri, Nov 5, 2010 at 12:06 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
It's trying to put the one leg on hold while your app runs. you can either install the music files or you can set the hold_music variable to "silence" on all legs
On Fri, Nov 5, 2010 at 10:47 AM, Mike van Lammeren <mike@van.lammeren.net> wrote:
Hello! I want *1 to trigger a Lua script, so I configured my dialplan with a call to bind_meta_app like this: <extension name="my_bridge_call"> <condition field="destination_number" expression="^11"> <action application="bind_meta_app" data="1 b b lua::my_trigger.lua"/> <action application="lua" data="my_bridge_call.lua"/> </condition> </extension> With the configuration above, whenever I press *1 on the b leg, the my_trigger.lua script is launched. That part works great! However, it seems like something else is also listening for the *1, since notice a few oddities every time I trigger the script: 1. I see this error in the console: 2010-11-05 11:38:53.875766 [ERR] switch_core_file.c:122 Invalid file format [local_stream] for [moh]! 2. On the a leg, I can hear a noise when dialing *1 on the b leg. I don't quite hear the touch tones, but the noise is definitely associated with them. 3. After triggering the script, no audio is transferred for about 5 seconds. It looks to me like FreeSWITCH is trying to transfer the calls to music-on-hold, then gets an error, times out, and goes back to the original call. There are no other calls to bind_meta_app, so what else is reacting to the *1? Thanks! Mike van Lammeren
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
_______________________________________________ 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
participants (3)
-
Anthony Minessale
-
Meftah Tayeb
-
Mike van Lammeren