[Freeswitch-users] Dialplan tone_detect problem
Alex Crow
acrow at integrafin.co.uk
Sun Mar 13 19:28:51 MSK 2011
All,
I am trying to implement fax detection on FreeSwitch within a dialplan
that routes inbound calls from a BRI (Sangoma), to an Asterisk (Trixbox)
machine handling the extensions. I am only doing this until I can get
British English sounds for FS ;-).
The inbound route without any fax detection works fine, ie the caller
hears ringing until the Trixbox extension is either answered or hits
voicemail:
<extension name="60xto35x" >
<condition field="source" expression="freetdm"/>
<condition field="context" expression="public"/>
<condition field="destination_number" expression="60([0-5])">
<action application="bridge" data="sofia/external/35$1 at 192.168.24.15"/>
</condition>
</extension>
The closest I have got to adding the fax detection is the following:
<extension name="60xto35x_copy" >
<condition field="source" expression="freetdm"/>
<condition field="context" expression="public"/>
<condition field="destination_number" expression="60([0-5])">
<action application="tone_detect" data="fax 1100 r +5000 transfer '620
XML default'"/>
<action application="answer"/>
<action application="playback" data="tone_stream://$${uk-ring};loops=3"/>
<action application="bridge" data="sofia/external/35$1 at 192.168.24.15"/>
</condition>
</extension>
I had to add the playback so the caller would hear ringing during the
tone_detect timeout.
However, as soon as the tone_stream finishes, and the call is bridged to
the Trixbox, the caller hears silence instead of ringing. Is there any
way to pass the ringing from the extension back to the caller coming in
on the BRI circuit, or otherwise fake it until the remote extension is
answered?
Thanks
Alex
--
This message is intended only for the addressee and may contain
confidential information. Unless you are that person, you may not
disclose its contents or use it in any way and are requested to delete
the message along with any attachments and notify us immediately.
"Transact" is operated by Integrated Financial Arrangements plc
Domain House, 5-7 Singer Street, London EC2A 4BQ
Tel: (020) 7608 4900 Fax: (020) 7608 5300
(Registered office: as above; Registered in England and Wales under number: 3727592)
Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
More information about the FreeSWITCH-users
mailing list