OpenACD/OpenACD — pull request #68 by gozdal (2012-04-13 10:40:36+00:00)
Title: Export vars

Previous commit only retrieved the exported variables values from IVR leg.
This exports those variables to agent leg.
A few notes (should probably be split into different commits):
* added some DEBUG calls, which probably can be deleted
* corrected a typo with "itext" (everywhere else there is "itxt" used)
* had a problem with double-encoding of data passed in headers. We are using SIP headers to encode some JSON data. After pushing this encoded data to Erlang it got double-encoded. I'm not exactly sure where it gets encoded in OpenACD, but FS passes it single-encoded and it comes from OpenACD double-encoded (looked at Erlang event tcpdumps). Added uri.erl and uri:decode_uri_component as a crude fix.