Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play API failure #36

Closed
cwells opened this issue Aug 19, 2011 · 3 comments
Closed

Play API failure #36

cwells opened this issue Aug 19, 2011 · 3 comments
Assignees

Comments

@cwells
Copy link

cwells commented Aug 19, 2011

2011-08-19 11:09:37,896 plivo-outbound[5312]: INFO: (21) Sent to POST http://127.0.0.1:5002/answered with {'To': '503xxxxxxx', 'Direction': 'outbound', 'From': '503xxxxxxx', 'ALegUUID': '2e1f9052-ca32-11e0-9708-e5799a9acb0f', 'ALegRequestUUID': '2da9bd5a-ca32-11e0-a511-df5689b29830', 'CallUUID': '2e1f9052-ca32-11e0-9708-e5799a9acb0f', 'CallStatus': 'in-progress'} -- Result: 
            <?xml version="1.0" encoding="UTF-8" ?>
            <Response>
                <Play>/usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-hello.wav</Play>
            </Response>

2011-08-19 11:09:37,897 plivo-outbound[5312]: INFO: (21) Requested RESTXML to http://127.0.0.1:5002/answered with {'To': '503xxxxxxx', 'Direction': 'outbound', 'From': '503xxxxxxx', 'ALegUUID': '2e1f9052-ca32-11e0-9708-e5799a9acb0f', 'ALegRequestUUID': '2da9bd5a-ca32-11e0-a511-df5689b29830', 'CallUUID': '2e1f9052-ca32-11e0-9708-e5799a9acb0f', 'CallStatus': 'in-progress'}
2011-08-19 11:09:37,922 plivo-outbound[5312]: ERROR: (21) Processing Call Failure !
2011-08-19 11:09:37,922 plivo-outbound[5312]: ERROR: (21) local variable 'audio_path' referenced before assignment
2011-08-19 11:09:37,987 plivo-outbound[5312]: ERROR: (21) Traceback (most recent call last):
2011-08-19 11:09:37,987 plivo-outbound[5312]: ERROR: (21)   File "/usr/local/plivo/src/plivo/src/plivo/rest/freeswitch/outboundsocket.py", line 388, in _run
2011-08-19 11:09:37,987 plivo-outbound[5312]: ERROR: (21)     self.process_call()
2011-08-19 11:09:37,988 plivo-outbound[5312]: ERROR: (21)   File "/usr/local/plivo/src/plivo/src/plivo/rest/freeswitch/outboundsocket.py", line 425, in process_call
2011-08-19 11:09:37,988 plivo-outbound[5312]: ERROR: (21)     self.execute_xml()
2011-08-19 11:09:37,988 plivo-outbound[5312]: ERROR: (21)   File "/usr/local/plivo/src/plivo/src/plivo/rest/freeswitch/outboundsocket.py", line 554, in execute_xml
2011-08-19 11:09:37,988 plivo-outbound[5312]: ERROR: (21)     element_instance.prepare(self)
2011-08-19 11:09:37,988 plivo-outbound[5312]: ERROR: (21)   File "/usr/local/plivo/src/plivo/src/plivo/rest/freeswitch/elements.py", line 1202, in prepare
2011-08-19 11:09:37,989 plivo-outbound[5312]: ERROR: (21)     self.sound_file_path = get_resource(outbound_socket, url)
2011-08-19 11:09:37,989 plivo-outbound[5312]: ERROR: (21)   File "/usr/local/plivo/src/plivo/src/plivo/rest/freeswitch/helpers.py", line 445, in get_resource
2011-08-19 11:09:37,989 plivo-outbound[5312]: ERROR: (21)     full_file_name = "shout://%s" % audio_path
2011-08-19 11:09:37,989 plivo-outbound[5312]: ERROR: (21) UnboundLocalError: local variable 'audio_path' referenced before assignment
@mike-plivo
Copy link
Member

ok I have commited a fix, can you retry ?
thanks

@cwells
Copy link
Author

cwells commented Aug 19, 2011

Is there a quicker way of updating Plivo besides running the install script? It seems a bit silly to recompile Python 2.7 every time I need a patch ;-)

Can I just get into the virtualenv and do a git pull there?

@cwells
Copy link
Author

cwells commented Aug 19, 2011

Okay, I simply manually applied your changes and I can report that the issue is resolved.

As a side note, it would be really helpful to have instructions somewhere for upgrading an existing install w/o using the install script.

@cwells cwells closed this as completed Aug 19, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants