I'll try that tomorrow and update the wiki! is it only single quotes or should double quotes work as well? On Tue, Jan 12, 2010 at 5:40 PM, Michael Collins <msc@freeswitch.org> wrote:
On Tue, Jan 12, 2010 at 3:08 PM, Brian Engert <lart2150@gmail.com> wrote:
I'm trying to set a channel variable with a space in it when I run the originate command. The command only seems to work when I escape the space with a \ however that backspace get's passed on. Some examples are
originate {fax_ident=1231231234,fax_header=testing\ spaces}sofia/gateway/outbound.fax/1004 &txfax(/tmp/fax.tiff) originate {fax_ident=1231231234,fax_header=testing spaces}sofia/gateway/outbound.fax/1004 &txfax(/tmp/fax.tiff)
The first one will go through just fine but the fax at the other end gets "testing\ spaces" the second one gives me "2010-01-12 16:35:18.41325 [ERR] switch_ivr_originate.c:990 Parse Error!"
I think this could also be done as a profile but I would rather do it from the call. I've looked around the wiki and have not seen any examples that use a space when doing the originate call.
I'll give you the answer if you promise to put it into the wiki. ;)
Okay, use single quotes like this:
originate {fax_ident=1231231234,fax_header='testing spaces'}sofia/gateway/outbound.fax/1004 &txfax(/tmp/fax.tiff)
-MC
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org