Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] avoiding moh for meta_app


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
woodydickson at gmail.com
Guest





PostPosted: Thu Nov 06, 2008 8:36 am    Post subject: [Freeswitch-users] avoiding moh for meta_app Reply with quote

Hi,

I tried to avoid Freeswitch from playing moh when the meta_app is executed by setting hold_music=silence:

<condition field="destination_number" expression="^(.*)$">
<action application="set" data="hold_music=silence" />
<action application="set" data="call_timeout=120" />
<action application="set" data="hangup_after_bridge=true" />
<action application="set" data="language=zh" />
<action application="set" data="ringback=$${us-ring}" />
<action application="bind_meta_app" data="1 a s execute_extension::record XML features"/>
<action application="bind_meta_app" data="2 a a execute_extension::stoprecord XML features"/>
<action application="bind_meta_app" data="3 a s execute_extension::att_xfer XML features"/>
<action application="bridge" data="sofia/gateway/openser/1000" />
<action application="phrase" data="user_not_reg" />

However, when #1 is pressed, Freeswitch still attempts to play moh:

1001@192.168.1.101 (1001@192.168.1.101) [BREAK]
2008-11-07 05:18:30 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/1001@192.168.1.101 (1001@192.168.1.101) [BREAK]
2008-11-07 05:18:30 [DEBUG] switch_core_session.c:616 switch_core_session_queue_private_event() Kill sofia/external/1000 [BREAK]
2008-11-07 05:18:30 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/external/1000 [BREAK]2008-11-07 05:18:30 [DEBUG] switch_ivr.c:382 switch_ivr_parse_event() sofia/external/1000 Command Execute playback(local_stream://moh)
2008-11-07 05:18:30 [DEBUG] mod_local_stream.c:320 local_stream_file_open() Opening Stream [moh/8000] 8000hz

How can I fix this problem?

Thanks alot in advance for your help.

Woody
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Nov 06, 2008 8:51 am    Post subject: [Freeswitch-users] avoiding moh for meta_app Reply with quote

Try export instead of set here.

/b

On Nov 6, 2008, at 7:30 AM, Woody Dickson wrote:

Quote:
<action application="set" data="hold_music=silence" />


_______________________________________________
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
Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Nov 06, 2008 9:17 am    Post subject: [Freeswitch-users] avoiding moh for meta_app Reply with quote

Never forget we have equal rights for call legs here. =D Things you do on the inbound leg do not always carry to the outbound leg.
each leg is it's own channel and the variables do not carry across call legs unless you use "export" like Brian said or
put the variable def inside {} of the dial string.

{hold_music=silence}sofia/internal/100@example.com (100@example.com)


On Thu, Nov 6, 2008 at 7:49 AM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
Try export instead of set here.

/b

On Nov 6, 2008, at 7:30 AM, Woody Dickson wrote:

Quote:
<action application="set" data="hold_music=silence" />



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
woodydickson at gmail.com
Guest





PostPosted: Thu Nov 06, 2008 9:36 am    Post subject: [Freeswitch-users] avoiding moh for meta_app Reply with quote

Hi Brian, Anthony

Thank you for the help.
Freeswitch is GREAT!

Thanks,
Woody
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services