VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
anthony.minessale at g... Guest
|
Posted: Wed Sep 10, 2008 8:12 am Post subject: [Freeswitch-users] Passing variable argument in a dial plan |
|
|
${variable_name}
On Wed, Sep 10, 2008 at 4:55 AM, Adeel Ansari <adeel.gnome@gmail.com (adeel.gnome@gmail.com)> wrote:
--
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 |
|
|
xtpl.gayatri at gmail.com Guest
|
Posted: Wed Sep 10, 2008 10:47 pm Post subject: [Freeswitch-users] Passing variable argument in a dial plan |
|
|
Can you add <params /> to <action /> ??
something like:
<action application="java" data="/home/adeel/programs/freeswitch/scripts/freeswitch.jar net.digitalapps.freeswitch.CallTest abcdefgh">
<param name="attr1" value="1 /">
<param name="attr2" value="3 /">
</action>
Regards,
Gayatri Kulkarni
-----
Whenever you find yourself on the side of the majority, it is time to pause and reflect.
From: Adeel Ansari (adeel.gnome@gmail.com)
Sent: Wednesday, September 10, 2008 2:55 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: [Freeswitch-users] Passing variable argument in a dial plan
Hi all,
I am hitting a dial plan using a command. And the application defined in the dial plan is running successfully with the argument passed. Below is the illustration.
Command
originate sofia/gateway/gizmo1/848458448557 121
Dial Plan <extension name="java_test" continue="true">
<condition field="destination_number" expression="121">
<action application="java" data="/home/adeel/programs/freeswitch/scripts/freeswitch.jar net.digitalapps.freeswitch.CallTest abcdefgh"/>
</condition>
</extension>
My Java program successfully showing me the argument "abcdefgh". Now I want to pass a variable, not a fixed like "abcdefgh", as an argument. How can I do it.
Thanks.
--
Best,
Adeel Ansari
http://www.linkedin.com/in/adeelansari
_______________________________________________
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
|
Posted: Wed Sep 10, 2008 10:51 pm Post subject: [Freeswitch-users] Passing variable argument in a dial plan |
|
|
Nope. This should be handled inside mod_java to parse and pass the args into the java env.
/b
On Sep 10, 2008, at 10:41 PM, Gayatri Kulkarni wrote:
Quote: | Can you add <params /> to <action /> ??
something like:
<action application="java" data="/home/adeel/programs/freeswitch/scripts/freeswitch.jar net.digitalapps.freeswitch.CallTest abcdefgh">
<param name="attr1" value="1 /">
<param name="attr2" value="3 /">
</action>
Regards,
Gayatri Kulkarni
|
|
|
Back to top |
|
|
adeel.gnome at gmail.com Guest
|
Posted: Thu Sep 11, 2008 3:58 am Post subject: [Freeswitch-users] Passing variable argument in a dial plan |
|
|
Not getting you. I need to pass a variable/value in originate command, then get that in dial_plan, and then pass it to Java program. Now, where to put this thing, ${variable_name}, and how about the variable_value?
On Wed, Sep 10, 2008 at 9:10 PM, Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)> wrote:
--
Best,
Adeel Ansari
http://www.linkedin.com/in/adeelansari |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Thu Sep 11, 2008 4:42 am Post subject: [Freeswitch-users] Passing variable argument in a dial plan |
|
|
Is this what you want?
On Sep 11, 2008, at 3:56 AM, Adeel Ansari wrote:
Quote: | Command
originate {foo=bar}sofia/gateway/gizmo1/848458448557 121
Dial Plan <extension name="java_test" continue="true">
<condition field="destination_number" expression="121">
<action application="java" data="/home/adeel/programs/freeswitch/scripts/freeswitch.jar net.digitalapps.freeswitch.CallTest abcdefgh ${foo}"/>
</condition>
</extension> |
Brian West
[url=sip:brian@freeswitch.org]sip:brian@freeswitch.org[/url] |
|
Back to top |
|
|
adeel.gnome at gmail.com Guest
|
|
Back to top |
|
|
|
|
|
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
|