Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] How to use variables in console/event socket


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
solko at gcdf.pl
Guest





PostPosted: Tue Apr 21, 2009 3:49 am    Post subject: [Freeswitch-users] How to use variables in console/event soc Reply with quote

Hello,

I don't know how to use variables in console. I try to call local user with following commands.

Command: originate sofia/internal/1001%${domain} 9999
I get: Cannot locate registered user 1001@%{domain}

Command: originate sofia/internal/1001@${domain} 9999
I get: Cannot locate registered user 1001@@{domain}

Command: originate sofia/internal/1001%\${domain} 9999
I get: Cannot locate registered user 1001@\%{domain}

Substitution of $ sign is not understood for me. Is it possible to use variables in that channels?
Variable is defined:

freeswitch@vertux> global_getvar domain
API CALL [global_getvar(domain)] output:
192.168.77.248


Szymon O.

_______________________________________________
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
Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Apr 21, 2009 8:30 am    Post subject: [Freeswitch-users] How to use variables in console/event soc Reply with quote

Variables aren't expanded on the command line. You'll have to put exactly what you want in.

/b

On Apr 21, 2009, at 3:48 AM, Szymon Olko wrote:
Quote:
Substitution of $ sign is not understood for me. Is it possible to use variables in that channels?
Variable is defined:

freeswitch@vertux> global_getvar domain
API CALL [global_getvar(domain)] output:
192.168.77.248


Brian West
brian@freeswitch.org (brian@freeswitch.org)



-- Meet us at ClueCon! http://www.cluecon.com
Back to top
anthony.minessale at g...
Guest





PostPosted: Tue Apr 21, 2009 10:19 am    Post subject: [Freeswitch-users] How to use variables in console/event soc Reply with quote

if you update to r13101 or better you can use the new expand function to do it

expand originate sofia/internal/1001%${domain} 9999


On Tue, Apr 21, 2009 at 8:27 AM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
Variables aren't expanded on the command line.  You'll have to put exactly what you want in.

/b

On Apr 21, 2009, at 3:48 AM, Szymon Olko wrote:

Quote:
Substitution of $ sign is not understood for me. Is it possible to use variables in that channels?
Variable is defined:

freeswitch@vertux> global_getvar domain
API CALL [global_getvar(domain)] output:
192.168.77.248



Brian West
brian@freeswitch.org (brian@freeswitch.org)



-- Meet us at ClueCon!  http://www.cluecon.com











_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
dule.maillist at gmail...
Guest





PostPosted: Tue Apr 21, 2009 11:07 am    Post subject: [Freeswitch-users] How to use variables in console/event soc Reply with quote

Or if you specifically want to avoid inputting the domain in an originate to an internal profile, you can bind a sip profile to a domain

e.g., <profile name="internal" domain="$${domain}"> (in sip_profiles/internal.xml)


then you can do: originate sofia/internal/1001 9999


Dan

On Tue, Apr 21, 2009 at 10:59 AM, Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
if you update to r13101 or better you can use the new expand function to do it

expand originate sofia/internal/1001%${domain} 9999



On Tue, Apr 21, 2009 at 8:27 AM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:


Quote:

Variables aren't expanded on the command line.  You'll have to put exactly what you want in.

/b

On Apr 21, 2009, at 3:48 AM, Szymon Olko wrote:

Quote:
Substitution of $ sign is not understood for me. Is it possible to use variables in that channels?
Variable is defined:

freeswitch@vertux> global_getvar domain
API CALL [global_getvar(domain)] output:
192.168.77.248



Brian West
brian@freeswitch.org (brian@freeswitch.org)



-- Meet us at ClueCon!  http://www.cluecon.com













_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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





--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services