plivo/plivo — Issue #75: GetDigits action not working
Author: mbenziane
Created: 2012-02-20 23:37:17+00:00
State: open

I can't GetDigits action to work, tried different DTMF types but still no hope:

2012-02-20 18:29:57,176 plivo-outbound[781]: INFO: (41) Requested RESTXML to http://127.0.0.1:3000/phonemenu.php
2012-02-20 18:29:57,176 plivo-outbound[781]: DEBUG: (41) Answering because Element GetDigits need it
2012-02-20 18:29:57,176 plivo-outbound[781]: DEBUG: (41) Execute: answer args=, uuid='', lock=True, loops=1
2012-02-20 18:29:57,177 plivo-outbound[781]: DEBUG: (41) Response:
2012-02-20 18:29:57,177 plivo-outbound[781]: INFO: (41) [GetDigits] {'finishOnKey': '#', 'retries': 1, 'timeout': 5, 'validDigits': '0123456789*#', 'invalidDigitsSound': '', 'playBeep': 'false', 'action': 'http://127.0.0.1/phonemenu.php?node=default', 'method': 'POST', 'numDigits': '1'}
2012-02-20 18:29:57,177 plivo-outbound[781]: INFO: (41) GetDigits Started ["say:flite:slt:'Hello and welcome to the Initech Phone Menu'", "say:flite:slt:'For business hours, press 1'", "say:flite:slt:'For directions, press 2'", "say:flite:slt:'To hear a duck quack, press 3'", "say:flite:slt:'To speak to a receptionist, press 0'"]
2012-02-20 18:29:57,199 plivo-outbound[781]: DEBUG: (41) Execute: set args=playback_delimiter=!, uuid='', lock=True, loops=1
2012-02-20 18:29:57,212 plivo-outbound[781]: DEBUG: (41) Response:
2012-02-20 18:29:57,212 plivo-outbound[781]: DEBUG: (41) Execute: play_and_get_digits args=1 1 1 5000 '#' file_string://silence_stream://1!say:flite:slt:'Hello and welcome to the Initech Phone Menu'!say:flite:slt:'For business hours, press 1'!say:flite:slt:'For directions, press 2'!say:flite:slt:'To hear a duck quack, press 3'!say:flite:slt:'To speak to a receptionist, press 0' silence_stream://150 pagd_input ^(0|1|2|3|4|5|6|7|8|9|\*|#)+ 5000, uuid='', lock=True, loops=1
2012-02-20 18:29:57,221 plivo-outbound[781]: DEBUG: (41) Response:
2012-02-20 18:30:13,451 plivo-outbound[781]: DEBUG: (41) Execute: api args='uuid_getvar ccb8986a-5c1a-11e1-b0cc-7152211e9a5b pagd_input'
2012-02-20 18:30:13,452 plivo-outbound[781]: DEBUG: (41) Response:
2012-02-20 18:30:13,452 plivo-outbound[781]: INFO: (41) GetDigits, Digits '2' Received
2012-02-20 18:30:13,452 plivo-outbound[781]: INFO: (41) [GetDigits] Done (redirect)
2012-02-20 18:30:13,452 plivo-outbound[781]: DEBUG: (41) Execute: api args='uuid_exists ccb8986a-5c1a-11e1-b0cc-7152211e9a5b'
2012-02-20 18:30:13,453 plivo-outbound[781]: DEBUG: (41) Response:
2012-02-20 18:30:13,453 plivo-outbound[781]: WARNING: (41) Call doesn't exist !
2012-02-20 18:30:13,453 plivo-outbound[781]: WARNING: (41) Channel has hung up, breaking Processing Call
2012-02-20 18:30:13,453 plivo-outbound[781]: INFO: (41) Processing Call Ended
2012-02-20 18:30:13,453 plivo-outbound[781]: DEBUG: (41) Releasing Connection ...
2012-02-20 18:30:13,453 plivo-outbound[781]: DEBUG: (41) Releasing Connection Done
2012-02-20 18:30:13,453 plivo-outbound[781]: INFO: (41) End request from ('127.0.0.1', 33733)

looks like the action never happens although I see:

2012-02-20 18:30:13,452 plivo-outbound[781]: INFO: (41) GetDigits, Digits '2' Received
2012-02-20 18:30:13,452 plivo-outbound[781]: INFO: (41) [GetDigits] Done (redirect)

I am using the PHP example provided in the library (phonemenu.php).

Any ideas?!