[Freeswitch-users] avmd only works if sound is being sent.

Andrew aademattia at comcast.net
Wed Nov 20 02:30:57 MSK 2013




Andrew
    I am trying to build an IVR using c# and mod_managed.   
    I have a need to do this in c# to replace a current stack.
    I start the program using
              String err = ""; 
                freeswitch.switch_core_set_globals(); 
                uint flags =
(uint)(switch_core_flag_enum_t.SCF_USE_AUTO_NAT); 
                switch_status_t res = freeswitch.switch_core_init(flags,
    switch_bool_t.SWITCH_TRUE, ref err); 
                search_bind =
FreeSWITCH.SwitchXmlSearchBinding.Bind(xml_search,
    switch_xml_section_enum_t.SWITCH_XML_SECTION_CONFIG); 
                event_bind = FreeSWITCH.EventBinding.Bind("SampleClient",
    switch_event_types_t.SWITCH_EVENT_ALL, null, event_handler,true); 
                freeswitch.switch_core_init_and_modload(flags,
    switch_bool_t.SWITCH_TRUE, ref err); 
    I am making a call using     
    string Route = "{ignore_early_media=true,origination_caller_id_number="
+
    CallerIDNumber + ",origination_caller_id_name=" + CallerIDName +
    ",originate_timeout=20}sofia/softphone/" + NumberToDial; 
    ManagedSession leg_b = new ManagedSession(Route); 
    Then I am setting  leg_b.Execute("avmd", "start");  after the call
connects.

    I have found if I have mod_portaudio and have the audio play on my
computer
    the beep will work but 
    I am not making a softphone but a IVR.  I think the key is
freeswitch.xml
    but no clue how to fix it. 
    
One thing found out is if I am playing audio while the beep happen the even
works but if I call and do nothing the beep never happens.    
    Andrew







Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list