<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18813">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Forget it--this will not work because FS
uses a POST (vs GET). Most likely it would attempt to actually
POST to a file named "index.php?xhostname=myhost".</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>However, if there was some way to add an
arbitrary POST variable to the HTTP transaction, it would work. I
am sure the FS developers have already thought of this and its a case of
RTFM.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>-metik</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=freeswitch-users-list@metik.com
href="mailto:freeswitch-users-list@metik.com">Metik</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeswitch-users-list@metik.com
href="mailto:freeswitch-users-list@metik.com">Metik</A> ; <A
title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, October 23, 2009 5:48
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users]
Hostname</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2 face=Arial>Please note that this would essentially be taking
Chris' suggestion a little further but the effort involved would
be minimal. </FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=freeswitch-users-list@metik.com
href="mailto:freeswitch-users-list@metik.com">Metik</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, October 23, 2009 5:37
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users]
Hostname</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2 face=Arial>Why not simply overwrite the value of
the variable used throughout the script... </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>-- xml_curl.conf --</FONT></DIV>
<DIV><FONT size=2 face=Arial>...</FONT></DIV>
<DIV><FONT size=2 face=Arial> <param
name="gateway-url" value="<A
href="http://localhost/index.php?xhostname=myhost">http://localhost/index.php?xhostname=myhost</A>"
bindings="dialplan"/><BR>...</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>-- index.php --</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial><?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>$_REQUEST['hostname'] =
"$xhostname";</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>...</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=freeswitch.noob@gmail.com
href="mailto:freeswitch.noob@gmail.com">freeswitch noob</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, October 23, 2009 4:42
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users]
Hostname</DIV>
<DIV><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT
size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2
face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2
face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2
face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2
face=Arial></FONT><BR></DIV>Yeah, I was just trying to make it easier on
myself. I have scripts from a friend that parse xml_curl requests
based on the hostname, I was hoping to not have to re-write them to read
something else from the post that FS makes from xml_curl. But from
what it sounds like I will have to.<BR><BR><BR>
<DIV class=gmail_quote>On Fri, Oct 23, 2009 at 2:58 PM, Chris Burns <SPAN
dir=ltr><<A
href="mailto:chris@cloudtel.com">chris@cloudtel.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>one real quick way would be put different GET var in
each server's binding<BR>
<DIV>
<DIV></DIV>
<DIV class=h5><FONT size=2 face=Arial></FONT><FONT size=2
face=Arial></FONT><BR>On October 23, 2009 03:46:11 pm Kristian
Kielhofner wrote:<BR>> Can't you use different contexts or something
else to tell them apart?<BR>><BR>> On Fri, Oct 23, 2009 at 3:34
PM, freeswitch noob<BR>><BR>> <<A
href="mailto:freeswitch.noob@gmail.com">freeswitch.noob@gmail.com</A>>
wrote:<BR>> > I have mod xml_curl installed and I am getting the
following passed to my<BR>> > script.<BR>> ><BR>> >
[hostname] => myhost.local<BR>> > [section] =>
dialplan<BR>> ><BR>> ><BR>> > I also have multiple
versions of FS running on the same box. Is there a<BR>> >
way to have each FS instance on my box have a unique hostname ?<BR>>
><BR>> > Thanks in advance.<BR>> ><BR>> >
_______________________________________________<BR>> >
FreeSWITCH-users mailing list<BR>> > <A
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</A><BR>>
> <A
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>>
> UNSUBSCRIBE:<A
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR>>
> <A href="http://www.freeswitch.org"
target=_blank>http://www.freeswitch.org</A><BR><BR><BR><BR>_______________________________________________<BR>FreeSWITCH-users
mailing list<BR><A
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</A><BR><A
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>UNSUBSCRIBE:<A
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR><A
href="http://www.freeswitch.org"
target=_blank>http://www.freeswitch.org</A><BR></DIV></DIV></BLOCKQUOTE></DIV><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>FreeSWITCH-users
mailing
list<BR>FreeSWITCH-users@lists.freeswitch.org<BR>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<BR>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>http://www.freeswitch.org<BR></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>