[Freeswitch-users] Channel Variables with spaces
Michael Collins
msc at freeswitch.org
Tue Jan 12 15:40:43 PST 2010
On Tue, Jan 12, 2010 at 3:08 PM, Brian Engert <lart2150 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100112/11c06a37/attachment-0002.html
More information about the FreeSWITCH-users
mailing list