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

Alex To tonhudung at gmail.com
Wed Jan 20 18:10:15 PST 2010


Thanks Anthony and Rupa, it's clear now. J

 

Alex To

 

From: freeswitch-dev-bounces at lists.freeswitch.org
[mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Anthony
Minessale
Sent: Thursday, January 21, 2010 2:49 AM
To: freeswitch-dev at lists.freeswitch.org
Subject: Re: [Freeswitch-dev] Help on
switch_channel_expand_variables(switch_channel_t *channel, const char *in)

 

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
<mailto:MSN%3Aanthony_minessale at hotmail.com> 
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
<mailto:PAYPAL%3Aanthony.minessale at gmail.com> 
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
<mailto:sip%3A888 at conference.freeswitch.org> 
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org
<mailto: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/20100121/6d1c3540/attachment-0001.html 


More information about the FreeSWITCH-dev mailing list