Ralfe Poisson | 13 Aug 14:59

Asterisk 1.6 - Reading DTMF from AGI

Hi,

I'm busy developing and AGI application which was working well under 1.4 . I've just upgraded to Asterisk 1.6 and am having two issues which I can't seem to sort out.

1. Reading DTMF tones

I used to use the following code to play an ivr file and read in dtmf:

#php
fwrite(STDOUT, "EXEC Read wc-ivr|$file|$max_digits\n");
fflush(STDOUT);
fwrite(STDOUT, "GET VARIABLE wc-ivr\n");
fflush(STDOUT);
//handle reply here....

That worked fine, but now, this command seems to just hang. I'm not too sure what to do. I've tried using the GET DATA command, but that tells me that it is playing the ivr file, but it does not actually play anything, it simply moves on to the next statement without letting the user enter in any digits.


2. Executing the Dial command

I can get the AGI to dial a number by using the command 'DIAL SIP/<phone_number>" . But as soon as I try and pass any additional options, it tells me there is no route to the host. I used to be able to run this command : "DIAL SIP/27312048090 <at> cyb-voicetrading-a|30|L(6000000:61000:30000)", but that gives me the following output :

AGI Script Executing Application: (DIAL) Options: (SIP/27312048090 <at> cyb-voicetrading-a|30|L(6000000:61000:30000))
  == Using SIP RTP CoS mark 5
[Aug 13 14:31:13] WARNING[18947]: chan_sip.c:4089 create_addr: No such host: cyb-voicetrading-a|30|L(6000000
[Aug 13 14:31:13] WARNING[18947]: app_dial.c:1444 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination)
  == Everyone is busy/congested at this time (1:0/0/1)


Any suggestions or comments would be greatly appreciated.

Ralfe

--
"He attacked everything in life with a mix of extraordinary genius and naive incompetence, and it was often difficult to tell which was which."
- Douglas Adams
==================================

R a l f e P o i s s o n
ralfepoisson <at> gmail.com

==================================

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev
Kevin P. Fleming | 13 Aug 15:27

Re: Asterisk 1.6 - Reading DTMF from AGI

Ralfe Poisson wrote:

> I'm busy developing and AGI application which was working well under 1.4
> . I've just upgraded to Asterisk 1.6 and am having two issues which I
> can't seem to sort out.

Your problems are caused by using vertical bar (pipe) characters as
argument separators; Asterisk 1.6 supports *only* commas as argument
separators to applications, unlike 1.2 and 1.4 which supported both.

This is documented in the UPGRADE.txt file, and that file even tells you
about a configuration option to provide backward compatibility if you
need it. Please read the upgrade documentation when upgrading to new
major releases of Asterisk :-)

--

-- 
Kevin P. Fleming
Director of Software Technologies
Digium, Inc. - "The Genuine Asterisk Experience" (TM)

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Tilghman Lesher | 13 Aug 16:07

Re: Asterisk 1.6 - Reading DTMF from AGI

On Wednesday 13 August 2008 08:27:00 Kevin P. Fleming wrote:
> Ralfe Poisson wrote:
> > I'm busy developing and AGI application which was working well under 1.4
> > . I've just upgraded to Asterisk 1.6 and am having two issues which I
> > can't seem to sort out.
>
> Your problems are caused by using vertical bar (pipe) characters as
> argument separators; Asterisk 1.6 supports *only* commas as argument
> separators to applications, unlike 1.2 and 1.4 which supported both.
>
> This is documented in the UPGRADE.txt file, and that file even tells you
> about a configuration option to provide backward compatibility if you
> need it. Please read the upgrade documentation when upgrading to new
> major releases of Asterisk :-)

With one caveat, to the OP:  did you upgrade a box, or is this a completely
new install?  If this is a new install, I'd understand, as the compatibility
options are designed to keep with 1.4 behavior only if you've upgraded (i.e.
the asterisk.conf is left over from 1.4).  For new installs, the default
asterisk.conf behavior is designed to get new users used to the
comma-separation of application delimiters, without any indication (other than
in UPGRADE.txt) that any other behavior existed.

--

-- 
Tilghman

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Ralfe Poisson | 13 Aug 16:09

Re: Asterisk 1.6 - Reading DTMF from AGI

Thanks Kevin, it's working perfectly now. I obviously didn't search through the google results well enough.

--
"He attacked everything in life with a mix of extraordinary genius and naive incompetence, and it was often difficult to tell which was which."
- Douglas Adams
==================================

R a l f e P o i s s o n
ralfepoisson <at> gmail.com

==================================


On Wed, Aug 13, 2008 at 3:27 PM, Kevin P. Fleming <kpfleming <at> digium.com> wrote:
Ralfe Poisson wrote:

> I'm busy developing and AGI application which was working well under 1.4
> . I've just upgraded to Asterisk 1.6 and am having two issues which I
> can't seem to sort out.

Your problems are caused by using vertical bar (pipe) characters as
argument separators; Asterisk 1.6 supports *only* commas as argument
separators to applications, unlike 1.2 and 1.4 which supported both.

This is documented in the UPGRADE.txt file, and that file even tells you
about a configuration option to provide backward compatibility if you
need it. Please read the upgrade documentation when upgrading to new
major releases of Asterisk :-)

--
Kevin P. Fleming
Director of Software Technologies
Digium, Inc. - "The Genuine Asterisk Experience" (TM)

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-dev

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Gmane