pre answer and playback
Hello! When the user entered wrong number I want to redirect it to special extension and playback file in pre_answer mode. Is this possible? With this extension: <extension name="WrongNumber"> <condition field="${destination_number}" expression="^9999$"> <action application="set" data="bypass_media=false"/> <action application="pre_answer"/> <action application="endless_playback" data="$${sounds_dir}/misc/inv alid_number.wav"/> </condition> </extension> i get an error: 2010-11-03 14:22:42.235076 [ERR] sofia_glue.c:2649 No audio codec available -- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
check this: module_exists mod_spandsp if no try load mod_spandsp otherwise go to your fs source tree a nd do: make mod_spandsp-install thanks Le 03/11/2010 10:26, Boris Kovalenko a écrit :
Hello!
When the user entered wrong number I want to redirect it to special extension and playback file in pre_answer mode. Is this possible? With this extension:
<extension name="WrongNumber"> <condition field="${destination_number}" expression="^9999$"> <action application="set" data="bypass_media=false"/> <action application="pre_answer"/> <action application="endless_playback" data="$${sounds_dir}/misc/inv alid_number.wav"/> </condition> </extension>
i get an error: 2010-11-03 14:22:42.235076 [ERR] sofia_glue.c:2649 No audio codec available
-- Meftah Tayeb inum: +883510001288000 Phone: +13602276297 Fax: +12538020313
That error suggests you don't have any codecs loaded, which would be required to playback any media. What modules are you loading? Which codecs do you have configured? -Steve On 3 November 2010 09:26, Boris Kovalenko <boris@tagnet.ru> wrote:
Hello!
When the user entered wrong number I want to redirect it to special extension and playback file in pre_answer mode. Is this possible? With this extension:
<extension name="WrongNumber"> <condition field="${destination_number}" expression="^9999$"> <action application="set" data="bypass_media=false"/> <action application="pre_answer"/> <action application="endless_playback" data="$${sounds_dir}/misc/inv alid_number.wav"/> </condition> </extension>
i get an error: 2010-11-03 14:22:42.235076 [ERR] sofia_glue.c:2649 No audio codec available
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
Hello! When I use answer application (instead of pre_answer) the playback is ok. I use <X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMU,PCMA,G729,G723,GSM,H261,H263,H264"/>
That error suggests you don't have any codecs loaded, which would be required to playback any media.
What modules are you loading? Which codecs do you have configured?
-Steve
On 3 November 2010 09:26, Boris Kovalenko<boris@tagnet.ru> wrote:
Hello!
When the user entered wrong number I want to redirect it to special extension and playback file in pre_answer mode. Is this possible? With this extension:
<extension name="WrongNumber"> <condition field="${destination_number}" expression="^9999$"> <action application="set" data="bypass_media=false"/> <action application="pre_answer"/> <action application="endless_playback" data="$${sounds_dir}/misc/inv alid_number.wav"/> </condition> </extension>
i get an error: 2010-11-03 14:22:42.235076 [ERR] sofia_glue.c:2649 No audio codec available
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
participants (3)
-
Boris Kovalenko
-
Meftah Tayeb
-
Steven Ayre