Hi, I am using xml_curl for dialplan. For programing language I am using PHP. How can I access variables like Caller-Destination-Number, Channel-Name, variables with -, because in php I can not use - for variables. I can only access variables which are defined like variable_sip_full_from etc. Thanks for help! Miha
In PHP they are referenced as $_POST['Caller-Caller-ID-Number'] or $_POST['variable_outside_call']... it's not a direct variable, so you can put any kind of name inside the quotes. -Avi On Fri, Sep 28, 2012 at 10:32 AM, Miha <miha@softnet.si> wrote:
Hi,
I am using xml_curl for dialplan. For programing language I am using PHP.
How can I access variables like Caller-Destination-Number, Channel-Name, variables with -, because in php I can not use - for variables. I can only access variables which are defined like variable_sip_full_from etc.
Thanks for help!
Miha
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Thanks Avi. Regards, Miha On 9/28/2012 10:45 AM, Avi Marcus wrote:
In PHP they are referenced as $_POST['Caller-Caller-ID-Number'] or $_POST['variable_outside_call']... it's not a direct variable, so you can put any kind of name inside the quotes.
-Avi
On Fri, Sep 28, 2012 at 10:32 AM, Miha <miha@softnet.si <mailto:miha@softnet.si>> wrote:
Hi,
I am using xml_curl for dialplan. For programing language I am using PHP.
How can I access variables like Caller-Destination-Number, Channel-Name, variables with -, because in php I can not use - for variables. I can only access variables which are defined like variable_sip_full_from etc.
Thanks for help!
Miha
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
On Fri, Sep 28, 2012 at 2:32 AM, Miha <miha@softnet.si> wrote:
I am using xml_curl for dialplan. For programing language I am using PHP.
How can I access variables like Caller-Destination-Number, Channel-Name, variables with -, because in php I can not use - for variables. I can only access variables which are defined like variable_sip_full_from etc.
http://wiki.freeswitch.org/wiki/Mod_xml_curl#Request Here are the details of the POST. Gabe
participants (3)
-
Avi Marcus
-
Gabriel Gunderson
-
Miha