"No Digits to send" on purpose?
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
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
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
This is NOT specifically a FreeSWITCH issue its mod_freetdm that has the parsing setup to require digits... small bug on jira would get this resolved. http://jira.freeswitch.org /b On Dec 1, 2010, at 4:12 PM, Jeroen C. van Gelderen wrote:
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.
Hi Brian, Thanks for your feedback. I've attempted to create a decent bug: http://jira.freeswitch.org/browse/OPENZAP-120 Cheers, -Slim -- Jeroen C. "Slim" van Gelderen _____ From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Wednesday, December 01, 2010 17:23 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] "No Digits to send" on purpose? This is NOT specifically a FreeSWITCH issue its mod_freetdm that has the parsing setup to require digits... small bug on jira would get this resolved. http://jira.freeswitch.org /b On Dec 1, 2010, at 4:12 PM, Jeroen C. van Gelderen wrote: 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.
On Wed, Dec 1, 2010 at 8:22 PM, Jeroen C. van Gelderen <slim@thegreek.com>wrote:
Hi Brian,
Thanks for your feedback.
I’ve attempted to create a decent bug:
Thanks for the report. This commit should fix it, although I did not test. Please re-open if the issue persists. commit e0048ed24e7eee9cbfd07b7a9afc1d97941cd270 Author: Moises Silva <moy@sangoma.com> Date: Thu Dec 2 16:43:27 2010 -0500 freetdm: OPENZAP-120 - Allow FXO to bridge calls without digits Moises Silva Senior Software Engineer Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
Is this a change from the previous behavior - have you just updated? What are you trying to do? -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/No-Digits-to-send-on-purpose-t... Sent from the freeswitch-users mailing list archive at Nabble.com.
participants (5)
-
Brian West
-
Daniel Pizarro
-
Jeff Lenk
-
Jeroen C. van Gelderen
-
Moises Silva