Menu

#8 Stop request causes break on dialplan with new FreeSWITCH

1.0
done
mod_csta_socket
2022-06-15
2022-02-20
No

With FreeSWITCH 1.10.x, issuing Stop request to the switch during playing a file with Play Message causes not only the message specified in Play Message is stopped, but it causes break also on dialplan initiated wait functions and make the call continue on the dialplan (or terminate if end of dialplan reached).

With FreesWITCH 1.0.6/CSTA-Inside 0.3 stack it was common to use
<action application="playback" data="silence_stream://1800000">
to let the call wait on queue and implement CSTA controlled IVR. This method no longer works with CSTA Inside 1.0/FreeSWITCH 1.10.x stack., Replacing playback app with sleep also not working.</action>

As an ugly workaround, using lot of playback/silence calls (or sleep with sleep_eat_digits=true) on dialplan can prevent the termination of the call.

Discussion

  • Krisztian Szentesi

    • status: open --> accepted
     
  • Krisztian Szentesi

    To restore functionality from older FreeSWITCH and let the call wait on the queue without being interrupted on Stop request, add the csta_wait application to the dialplan entry instead of playback and sleep applications.

    Example for queue calls to implement CSTA based IVR:

    <include>
       <extension name="csta_ivr">
         <condition field="destination_number" expression="^95([0-9][0-9])$">
            <action application="csta_trigger_queue" data="95$1"/>          
            <action application="answer"/> 
            <action application="set" data="playback_terminators=none"/>
            <action application="set" data="RECORD_MIN_SEC=0"/>
            <!-- only for in band dtmf:             -->
            <!-- <action application="start_dtmf"/> -->     
            <action application="csta_wait" data="1800000"/>        
          </condition>      
       </extension>   
    </include>
    

    Included in mod_csta_socket v1.0.0.200+.

     
  • Krisztian Szentesi

    • status: accepted --> test
     
  • Krisztian Szentesi

    • status: test --> done
     

Log in to post a comment.

MongoDB Logo MongoDB