No subject


Thu Jan 15 22:29:28 CST 2009


AGI is executable.

=20

Then run 'agi debug' from the asterisk cli, place a call and see what
was send and receive from your agi

=20

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of James A.
Shigley
Sent: April-23-09 12:26 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] AGI PHP script

=20

I have the below script that doesn't seem to be working. I don't know if
I have something in the script wrong that I am just missing. Or if I
don't have the php.ini set correctly for emailing

=20

=20

This is the CLI output

-- Executing [4099XXXXXX at port3_real:1] Goto("DAHDI/50-1", "newhire,s,1")
in

new stack

    -- Goto (newhire,s,1)

    -- Executing [s at newhire:1] Ringing("DAHDI/50-1", "") in new stack

    -- Executing [s at newhire:2] Answer("DAHDI/50-1", "") in new stack

    -- Executing [s at newhire:3] Monitor("DAHDI/50-1",
"wav,/var/lib/asterisk/soun

ds/NewHire/Newhire-1240503071.15148-4099819213-s,o") in new stack

    -- Executing [s at newhire:4] AGI("DAHDI/50-1", "newhire.php") in new
stack

    -- Launched AGI Script /var/lib/asterisk/agi-bin/newhire.php

    -- <DAHDI/50-1>AGI Script newhire.php completed, returning 0

    -- Auto fallthrough, channel 'DAHDI/50-1' status is 'UNKNOWN'

    -- Hungup 'DAHDI/50-1'

=20

Here is the script

=20

=20

#!/usr/bin/php5=20

<?php

=20

// Get AGI vars from *

=20

 $agivars =3D array();

 while (!feof(STDIN)) {

     $agivar =3D trim(fgets(STDIN));

     if ($agivar =3D=3D=3D '') {

         break;

     }

     $agivar =3D explode(':', $agivar);

     $agivars[$agivar[0]] =3D trim($agivar[1]);

 }

 extract($agivars);

=20

// Variable Declarations

=20

$agi_uniqueid;

$agi_callerid;

$agi_calleridname;

$agi_extension;

$agi_uniqueid;

$UNIQUEID =3D $agi_uniqueid;

$CALLERID =3D $agi_callerid;

$EXTEN =3D $agi_extension;

$attachment =3D
"/var/lib/asterisk/sounds/NewHire/Newhire-$UNIQUEID-$CALLERID-$EXTEN.wav
";

$from =3D "... at xxx.com";=20

$to =3D"jas at answeringserv.com ";

$subject=3D"New Applicant";

$headers =3D "From: $from";

$message =3D"$UNIQUEID , $CALLERID , $EXTEN , $attachment";

mail($to,$subject,$message,$headers);

?>

=20

=20

So is it anything obviously wrong with the script I'm missing?

=20

Besides something not being configured in php.ini correctly any other
ideas?

=20

James Shigley

Monroe Telephone Answering Service

409-981-9213

Infinity 5.5,UC 4.02.3803, Blink 3.0.104

Ecreator:2.21, eResponse 1.1.7

Webportal,WebApps,

=20

CONFIDENTIALITY NOTICE: This email, including any attachments, contains
information which may be confidential or privileged. The information is
intended to be for the use of the individual or entity named above. If
you are not the intended recipient, be aware that any disclosure,
copying, distribution or use of the contents of this information is
prohibited. If you have received this email in error, please notify the
sender immediately by "reply to sender only" message and destroy all
electronic and hard copies of the communication, including attachments.=20

=20

"Common sense is the collection of prejudices acquired by age eighteen."
-- Albert Einstein=20

"Once you can accept the universe as matter expanding into nothing that
is something,wearing stripes with plaid comes easy." -- Albert Einstein

"I know a little of everything, but a lot of nothing"

=20


------_=_NextPart_001_01C9C443.6857F9BE
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
	{font-family:"Brush Script MT";
	panose-1:3 6 8 2 4 4 6 7 3 4;}
@font-face
	{font-family:"Bradley Hand ITC";
	panose-1:3 7 4 2 5 3 2 3 2 3;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.EmailStyle18
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>Actually I feel like =
an idiot. I
had forgotten to put asterisk as an allowed sender in the server that =
those
emails are going out of. (different from what * normally uses to email =
us)<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<p class=3DMsoNormal><span style=3D'font-size:18.0pt;font-family:"Brush =
Script MT";
color:#1F497D'>James Shigley<o:p></o:p></span></p>

<p class=3DMsoNormal><b><span =
style=3D'font-size:18.0pt;font-family:"Bradley Hand ITC";
color:#1F497D'>Monroe Telephone Answering =
Service<o:p></o:p></span></b></p>

<p class=3DMsoNormal><span =
style=3D'color:#1F497D'>409-981-9213</span><b><span
style=3D'font-size:18.0pt;font-family:"Bradley Hand =
ITC";color:#1F497D'><o:p></o:p></span></b></p>

<p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Infinity 5.5,UC 4.02.3803, Blink =
3.0.104<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Ecreator:2.21, eResponse 1.1.7<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Webportal,WebApps,<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>&nbsp;</span><span
style=3D'font-size:12.0pt;font-family:"Times New =
Roman","serif";color:#1F497D'><o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>CONFIDENTIALITY =
NOTICE: </span><span
style=3D'font-size:7.5pt;color:#1F497D'>This email, including any =
attachments,
contains information which may be confidential or privileged. The =
information
is intended to be for the use of the individual or entity named above. =
If you
are not the intended recipient, be aware that any disclosure, copying,
distribution or use of the contents of this information is prohibited. =
If you
have received this email in error, please notify the sender immediately =
by
&quot;reply to sender only&quot; message and destroy all electronic and =
hard
copies of the communication, including attachments.</span><span
style=3D'color:#1F497D'> <o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas;
color:#1F497D'>&quot;Common sense is the collection of prejudices =
acquired by
age eighteen.&quot; -- Albert Einstein <o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas;
color:#1F497D'>&quot;Once you can accept the universe as matter =
expanding into
nothing that is something,wearing stripes with plaid comes easy.&quot; =
--
Albert Einstein<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas;
color:#1F497D'>&quot;I know a little of everything, but a lot of =
nothing&quot;<o:p></o:p></span></p>

</div>

<p class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt =
0in 0in 0in'>

<p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] <b>On Behalf Of =
</b>Ruddy
Gbaguidi<br>
<b>Sent:</b> Thursday, April 23, 2009 11:57 AM<br>
<b>To:</b> 'Asterisk Users Mailing List - Non-Commercial Discussion'<br>
<b>Subject:</b> Re: [asterisk-users] AGI PHP =
script<o:p></o:p></span></p>

</div>

</div>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><span lang=3DEN-CA style=3D'color:#1F497D'>First =
run <o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-size:9.0pt;font-family:"Courier =
New"'>/var/lib/asterisk/agi-bin/newhire.php<o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-CA =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-CA style=3D'color:#1F497D'>From =
linux command
line to see if you don&#8217;t have any error and that your AGI is =
executable.<o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-CA =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-CA style=3D'color:#1F497D'>Then run =
&#8216;agi debug&#8217;
from the asterisk cli, place a call and see what was send and receive =
from your
agi<o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-CA =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt =
0in 0in 0in'>

<p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
asterisk-users-bounces at lists.digium.com =
[mailto:asterisk-users-bounces at lists.digium.com]
<b>On Behalf Of </b>James A. Shigley<br>
<b>Sent:</b> April-23-09 12:26 PM<br>
<b>To:</b> asterisk-users at lists.digium.com<br>
<b>Subject:</b> [asterisk-users] AGI PHP script<o:p></o:p></span></p>

</div>

</div>

<p class=3DMsoNormal><span lang=3DEN-CA><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>I have the below script that doesn&#8217;t =
seem to be
working. I don&#8217;t know if I have something in the script wrong that =
I am just
missing. Or if I don&#8217;t have the php.ini set correctly for =
emailing<o:p></o:p></span></p>

<div style=3D'border:none;border-bottom:solid windowtext =
1.0pt;padding:0in 0in 1.0pt 0in'>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

</div>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>This is the CLI output<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>-- Executing [4099XXXXXX at port3_real:1]
Goto(&quot;DAHDI/50-1&quot;, &quot;newhire,s,1&quot;) =
in<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>new stack<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; -- Goto =
(newhire,s,1)<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; -- Executing [s at newhire:1] =
Ringing(&quot;DAHDI/50-1&quot;,
&quot;&quot;) in new stack<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; -- Executing [s at newhire:2]
Answer(&quot;DAHDI/50-1&quot;, &quot;&quot;) in new =
stack<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; -- Executing [s at newhire:3]
Monitor(&quot;DAHDI/50-1&quot;, =
&quot;wav,/var/lib/asterisk/soun<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier =
New"'>ds/NewHire/Newhire-1240503071.15148-4099819213-s,o&quot;)
in new stack<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; -- Executing [s at newhire:4]
AGI(&quot;DAHDI/50-1&quot;, &quot;newhire.php&quot;) in new =
stack<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; -- Launched AGI Script
/var/lib/asterisk/agi-bin/newhire.php<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; -- &lt;DAHDI/50-1&gt;AGI =
Script
newhire.php completed, returning 0<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; -- Auto fallthrough, =
channel
'DAHDI/50-1' status is 'UNKNOWN'<o:p></o:p></span></p>

<div style=3D'border:none;border-bottom:solid windowtext =
1.0pt;padding:0in 0in 1.0pt 0in'>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; -- Hungup =
'DAHDI/50-1'<o:p></o:p></span></p>

</div>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>Here is the script<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>#!/usr/bin/php5 <o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&lt;?php<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>// Get AGI vars from *<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;$agivars =3D =
array();<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;while (!feof(STDIN)) =
{<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp; $agivar =3D
trim(fgets(STDIN));<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp; if ($agivar =
=3D=3D=3D '') {<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier =
New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp; =
}<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp; $agivar =3D =
explode(':',
$agivar);<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp; $agivars[$agivar[0]] =
=3D
trim($agivar[1]);<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&nbsp;}<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier =
New"'>&nbsp;extract($agivars);<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>// Variable =
Declarations<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$agi_uniqueid;<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$agi_callerid;<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$agi_calleridname;<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$agi_extension;<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$agi_uniqueid;<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$UNIQUEID =3D =
$agi_uniqueid;<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$CALLERID =3D =
$agi_callerid;<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$EXTEN =3D =
$agi_extension;<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$attachment =3D
&quot;/var/lib/asterisk/sounds/NewHire/Newhire-$UNIQUEID-$CALLERID-$EXTEN=
.wav&quot;;<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$from =3D &quot;&#8230;@xxx.com&quot;; =
<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$to =3D&quot;jas at answeringserv.com =
&quot;;<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$subject=3D&quot;New =
Applicant&quot;;<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$headers =3D &quot;From: =
$from&quot;;<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$message =3D&quot;$UNIQUEID , $CALLERID , =
$EXTEN ,
$attachment&quot;;<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:9.0pt;
font-family:"Courier =
New"'>mail($to,$subject,$message,$headers);<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-size:9.0pt;font-family:"Courier =
New"'>?&gt;<o:p></o:p></span></p>

<div style=3D'border:none;border-bottom:solid windowtext =
1.0pt;padding:0in 0in 1.0pt 0in'>

<p class=3DMsoNormal><span style=3D'font-size:9.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></p>

</div>

<p class=3DMsoNormal><span style=3D'font-size:9.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-size:9.0pt;font-family:"Courier =
New"'>So
is it anything obviously wrong with the script I&#8217;m =
missing?<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-size:9.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-size:9.0pt;font-family:"Courier =
New"'>Besides
something not being configured in php.ini correctly any other =
ideas?<o:p></o:p></span></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><span style=3D'font-size:18.0pt;font-family:"Brush =
Script MT";
color:#1F497D'>James Shigley<o:p></o:p></span></p>

<p class=3DMsoNormal><b><span =
style=3D'font-size:18.0pt;font-family:"Bradley Hand ITC";
color:#1F497D'>Monroe Telephone Answering =
Service<o:p></o:p></span></b></p>

<p class=3DMsoNormal>409-981-9213<b><span =
style=3D'font-size:18.0pt;font-family:
"Bradley Hand ITC";color:#1F497D'><o:p></o:p></span></b></p>

<p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Arial","sans-serif"'>Infinity
5.5,UC 4.02.3803, Blink 3.0.104<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Arial","sans-serif"'>Ecreator:2.21,=

eResponse 1.1.7<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Arial","sans-serif"'>Webportal,WebA=
pps,<o:p></o:p></span></p>

<p class=3DMsoNormal>&nbsp;<span =
style=3D'font-size:12.0pt;font-family:"Times New =
Roman","serif"'><o:p></o:p></span></p>

<p class=3DMsoNormal>CONFIDENTIALITY NOTICE: <span =
style=3D'font-size:7.5pt'>This
email, including any attachments, contains information which may be
confidential or privileged. The information is intended to be for the =
use of
the individual or entity named above. If you are not the intended =
recipient, be
aware that any disclosure, copying, distribution or use of the contents =
of this
information is prohibited. If you have received this email in error, =
please
notify the sender immediately by &quot;reply to sender only&quot; =
message and
destroy all electronic and hard copies of the communication, including
attachments.</span> <o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>&quot;Common
sense is the collection of prejudices acquired by age eighteen.&quot; -- =
Albert
Einstein <o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>&quot;Once
you can accept the universe as matter expanding into nothing that is
something,wearing stripes with plaid comes easy.&quot; -- Albert =
Einstein<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>&quot;I know
a little of everything, but a lot of nothing&quot;<o:p></o:p></span></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>

------_=_NextPart_001_01C9C443.6857F9BE--



More information about the asterisk-users mailing list