[Freeswitch-dev] Help on switch_channel_expand_variables(switch_channel_t *channel, const char *in)

Anthony Minessale anthony.minessale at gmail.com
Wed Jan 20 10:48:35 PST 2010


say you had 2 vars test1=foo and test2=bar

it would turn the string "${test1} ${test2}" into "foo bar"
if the returned string does not return the exact pointer that was input, it
must be freed.


On Wed, Jan 20, 2010 at 12:04 AM, Alex To <tonhudung at gmail.com> wrote:

>  Hi,
>
>
>
> Could somebody shed some lights on how the mentioned method works ? What
> does it do exactly ? My best guess is it takes in a channel, a string and
> does something to the string (escape the string ? split the string ? or
> something like that? But why need a channel parameter?)
>
>
>
> If there is already an explanation somewhere about this, please point it
> out for me or possibly just tell me what configuration should I make to
> trigger this method to be called. I can use debugger and figure it out by
> myself.
>
>
>
> Any help would be greatly appreciated.
>
>
>
> Thanks very much
>
>
>
> Regards
>
>
>
> Alex To
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20100120/a728026f/attachment-0001.html 


More information about the FreeSWITCH-dev mailing list