[asterisk-bugs] [JIRA] (ASTERISK-26440) AMI atxfer not accepting alpha numerics
Nicolas Chapleau (JIRA)
noreply at issues.asterisk.org
Wed Oct 5 10:16:01 CDT 2016
Nicolas Chapleau created ASTERISK-26440:
-------------------------------------------
Summary: AMI atxfer not accepting alpha numerics
Key: ASTERISK-26440
URL: https://issues.asterisk.org/jira/browse/ASTERISK-26440
Project: Asterisk
Issue Type: Improvement
Security Level: None
Components: Bridges/bridge_simple
Affects Versions: 13.11.2
Environment: CentOS 6.5
libPRI 1.5.0
DAHDI 2.11.1
Asterisk 13.11.2
Wanpipe 7.0.19 with latest firmware
Reporter: Nicolas Chapleau
Severity: Minor
As stated in various JIRA issues, the AMI ATXFER function will not send (or accept) characters as part of the Exten to send to. This is OK for DTMF based transfers, but not practical for AMI based transfers.
Included are 2 patch files which rectifies this. You are free to use it or not as I am not 100% sure if it affects the rest of the code.
{code:title=file.h.patch|borderStyle=solid}
--- file_orig.h 2016-10-05 01:08:24.676047881 +0000
+++ file.h 2016-10-05 01:09:07.764485689 +0000
@@ -47,6 +47,7 @@
#define AST_DIGIT_NONE ""
#define AST_DIGIT_ANY "0123456789#*ABCD"
#define AST_DIGIT_ANYNUM "0123456789"
+#define AST_DIGIT_ALPHANUM "0123456789#*ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
#define SEEK_FORCECUR 10
{code}
{code:title=bridge_basic.c.patch|borderStyle=solid}
--- bridge_basic_orig.c 2016-10-05 01:10:41.151428001 +0000
+++ bridge_basic.c 2016-10-05 01:11:48.603103115 +0000
@@ -3162,7 +3162,7 @@
ast_channel_unlock(chan);
/* Play the simple "transfer" prompt out and wait */
- res = ast_stream_and_wait(chan, "pbx-transfer", AST_DIGIT_ANY);
+ res = ast_stream_and_wait(chan, "pbx-transfer", AST_DIGIT_ALPHANUM);
ast_stopstream(chan);
if (res < 0) {
/* Hangup or error */
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list