<s> """<STR_LIT>""" <EOL> import ari <EOL> client = ari . connect ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> def on_dtmf ( channel , event ) : <EOL> """<STR_LIT>""" <EOL> digit = event [ '<STR_LIT>' ] <EOL> if digit == '<STR_LIT:#>' : <EOL> channel . play ( media = '<STR_LIT>' ) <EOL> channel . continueInDialplan ( ) <EOL> elif digit == '<STR_LIT:*>' : <EOL> channel . play ( media = '<STR_LIT>' ) <EOL> else : <EOL> channel . play ( media = '<STR_LIT>' % digit ) <EOL> def on_start ( channel , event ) : <EOL> """<STR_LIT>""" <EOL> channel . on_event ( '<STR_LIT>' , on_dtmf ) <EOL> channel . answer ( ) <EOL> channel . play ( media = '<STR_LIT>' ) <EOL> client . on_channel_event ( '<STR_LIT>' , on_start ) <EOL> client . run ( apps = "<STR_LIT:hello>" ) </s>
