[Freeswitch-users] Ring before answer

Malay Thakershi mthakershi at gmail.com
Tue Jul 29 03:35:45 MSD 2014


Hello,

I have my inbound extension set as following. However, when people dial in,
they don't hear any ring as one would normally expect. They directly hear
first voice prompt after call is connected.

How can I make it ring for a while say 2-3 rings? Thanks.

In public.xml dial plan:
<extension name="provider-inbound">
      <condition field="destination_number"
expression="^XXXXXXXXXX|XXXXXXXXXX$">
<action application="pre_answer" />
 <action application="sleep" data="1000" />

        <action application="transfer" data="1056 XML default" />
      </condition>
    </extension>


In default.xml dial plan:
    <extension name="CHPhone">
      <condition field="destination_number" expression="^1056$">
<!-- recording -->
<action application="set" data="RECORD_TITLE=Recording
${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_COPYRIGHT=(c) 1980 Factory Records,
Inc."/>
<action application="set" data="RECORD_SOFTWARE=FreeSWITCH"/>
<action application="set" data="RECORD_ARTIST=CH"/>
<action application="set" data="RECORD_COMMENT=CH call record"/>
<action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_STEREO=true"/>
<action application="record_session"
data="$${base_dir}/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
<action application="set" data="ringback=${us-ring}"/>
<action application="set" data="recording_follow_transfer=true"/>
 <action application="sleep" data="2000" />
<action application="managed" data="clsAsmtApp" />
      </condition>
    </extension>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140728/98579ad8/attachment.html 


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