The var doesn't survive over sip.  The first example initiates a sip call that is then handled by FS.  No var.  The second one is handled internally.

On Thu, Aug 12, 2010 at 3:48 PM, Helmut Kuper <helmut.kuper@ewetel.de> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I try to set a custom channel variable within originate command as
described here:

http://wiki.freeswitch.org/wiki/Mod_commands

[...]
Note: you can set any channel variable, even custom ones. Use single
quotes to enclose values with spaces, commas, etc.

  originate {my_own_var=my_value}sofia/mydomain.com/that.ext@1.2.3.4
15555551212
  originate {my_own_var='my value'}sofia/mydomain.com/that.ext@1.2.3.4
15555551212

[...]



My command is like this:

originate {my_var=my_data}sofia/internal/2850@85.16.246.6 &park

When I call info in dialplan, the variable is missing


When I do
originate {my_var=my_data}user/2850@85.16.246.6 &park

the variable is there!


Any reasons for this?

regards
helmut
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFMZF4v4tZeNddg3dwRAiwOAJoCGHZEZCrGfDDUPDB10p4p9GCzAQCfbtKS
o+9fmLXxswvtTFebbnoWbuM=
=A/i/
-----END PGP SIGNATURE-----

_______________________________________________
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



--
-Rupa