Hi Daniel,

 

Indeed. I have configured the FXS port in “hotline” mode.

 

As soon as the FXS port goes off-hook it drops into extension 1000. That extension bridges to the FXO port so that the FXS ports gets the dialtone from the CO:

 

  <context name="csd-outbound">

    <extension name="csd-outbound">

      <condition field="destination_number" expression="^1000$">

        <action application="export" data="freetdm_disable_dtmf=yes"/>

        <action application="disable_dtmf"/>

        <action application="answer"/>

        <action application="bridge" data="freetdm/span_fxo_csd/${freetdm_chan_number}/w"/>

        <action application="hangup"/>

      </condition>

    </extension>

  </context>

 

The problem is that Freeswitch in its current incarnation insists that I send at least one DTMF digit out on the FXO port. I work around this issue by sending a ‘w’ “digit” as follows:

 

  <action application="bridge" data="freetdm/span_fxo_csd/1/w"/>

 

This does not actually cause any DTMF tones to be sent out on the FXO port (so my dialtone is not disturbed) but it does cause a 5-second wait before the dialtone is heard on the FXS port.

 

What I really need is this:

 

  <action application="bridge" data="freetdm/span_fxo_csd/1/"/>

 

Using this however results in the "No Digits to send" error.

 

Is there a specific reason why FS insists on always sending at least one digit? What would break if we allow zero-digit DNIS in the bridge call?

Cheers,
-Slim
--
Jeroen C. "Slim" van Gelderen


From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Daniel Pizarro
Sent: Tuesday, November 30, 2010 10:04
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] "No Digits to send" on purpose?

 

FXS analog devices need a DTMF string to communicate with the PBX and the PBX could process the call (bridge) ...at least you need a "batman phone" with auto-dialing (inmmediate).

2010/11/29 Jeroen C. van Gelderen <slim@thegreek.com>

Hi Guys,

I need to bridge an FXS port (when taken off-hook) to an FXO port without
dialing any digits like so:

<action application="bridge" data="freetdm/span_fxo_csd/1"/>

This results in the following error:

ftmod/ftmod_analog/ftmod_analog.c:

if (ftdm_strlen_zero(ftdmchan->caller_data.dnis.digits)) {
 ftdm_log_chan_msg(ftdmchan, FTDM_LOG_ERROR, "No Digits to send!\n");

For now I have worked around this by using

<action application="bridge" data="freetdm/span_fxo_csd/1/w"/>
or
<action application="bridge" data="freetdm/span_fxo_csd/1/F"/>

I would like to avoid the unnecessary delay this incurs.

Any suggestions? Under what circumstances is it bad to send zero digits? Can
I simply take out the check for zero-length dnis.digits?

Cheers,
-Slim
--
Jeroen C. "Slim" van Gelderen



_______________________________________________
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