futel / dialplan-functions

Serves documents etc to Twilio for Futel
Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

error when ops exerciser call is answered #68

Open kra opened 2 weeks ago

kra commented 2 weeks ago

user hears silence until first keypress, then error

2024-09-02 22:12:49.481000 a27db6 request query_params:MultiDict({'context': ['community_outgoing'], 'iteration': ['1'], 'lang': ['en'], 'parent': ['community_outgoing'], 'stanza': ['intro']}) uri_params:None path:/ivr raw_body:b'msg=Gather%20End&ApiVersion=2010-04-01&Called=sip%3Acesar-chavez%40direct-futel-stage.sip.twilio.com&Digits=1&CallStatus=in-progress&From=%2B15034681337&CallerCountry=US&Direction=outbound-api&AccountSid=ACccee506a7e232c9b6b17175c9e54860c&SipCallId=dd7329665db5ddbdd4426cef2d589411%400.0.0.0&CallerCity=ASTORIA&SipResponseCode=200&CallerState=OR&FromCountry=US&Caller=%2B15034681337&FromCity=ASTORIA&CallSid=CA03928ad01316f4e44fdaef27a825b15c&To=sip%3Acesar-chavez%40direct-futel-stage.sip.twilio.com&FromZip=97103&CallerZip=97103&FinishedOnKey=&FromState=OR' 2024-09-02 22:12:49.481000 a27db6 metric hostname:dialplan-functions-stage endpoint:None event:ivr 2024-09-02 22:12:50.064000 a27db6 c_name:community_outgoing stanza:Stanza(value='intro') digits:1 2024-09-02 22:12:50.064000 a27db6 metric hostname:dialplan-functions-stage endpoint:None event:dial_sip_asterisk 2024-09-02 22:12:50.083000 a27db6 dialplan - ERROR - Caught exception for path /ivr 2024-09-02 22:12:50.083000 a27db6 Traceback (most recent call last): 2024-09-02 22:12:50.083000 a27db6 File "/var/task/chalice/app.py", line 1923, in _get_view_function_response 2024-09-02 22:12:50.083000 a27db6 response = view_function(**function_args) 2024-09-02 22:12:50.083000 a27db6 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-02 22:12:50.083000 a27db6 File "/var/task/app.py", line 37, in wrapper 2024-09-02 22:12:50.083000 a27db6 return func(app.current_request, env) 2024-09-02 22:12:50.083000 a27db6 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-02 22:12:50.083000 a27db6 File "/var/task/app.py", line 68, in _index 2024-09-02 22:12:50.083000 a27db6 return dialers.ivr(request, env) 2024-09-02 22:12:50.083000 a27db6 ^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-02 22:12:50.083000 a27db6 File "/var/task/chalicelib/dialers.py", line 200, in ivr 2024-09-02 22:12:50.083000 a27db6 return str(util.dial_sip_asterisk(dest_c_name, request, env)) 2024-09-02 22:12:50.083000 a27db6 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-02 22:12:50.083000 a27db6 File "/var/task/chalicelib/util.py", line 153, in dial_sip_asterisk 2024-09-02 22:12:50.083000 a27db6 from_extension = env['extensions'][from_user] 2024-09-02 22:12:50.083000 a27db6 ~~~~~^^^^^^^^^^^ 2024-09-02 22:12:50.083000 a27db6 KeyError: None 2024-09-02 22:12:50.083000 a27db6 response status_code:500 body:{'Code': 'InternalServerError', 'Message': 'An internal server error occurred.'}