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

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--a:link
        {mso-style-priority:99;}
span.MSOHYPERLINK
        {mso-style-priority:99;}
a:visited
        {mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
        {mso-style-priority:99;}
p.MSOACETATE
        {mso-style-priority:99;}
li.MSOACETATE
        {mso-style-priority:99;}
div.MSOACETATE
        {mso-style-priority:99;}
span.TEXTEDEBULLESCAR
        {mso-style-priority:99;}
span.TEXTEDEBULLESCAR0
        {mso-style-priority:99;}

 /* Font Definitions */
 @font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Calibri;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:Tahoma;}
span.TextedebullesCar
        {font-family:Tahoma;}
p.textedebulles, li.textedebulles, div.textedebulles
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Calibri;}
p.Textedebulles0, li.Textedebulles0, div.Textedebulles0
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Calibri;}
span.textedebullescar0
        {font-family:Tahoma;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:Calibri;
        color:windowtext;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle25
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>You didn&#8217;t say whether a2billing.php
works from the shell.  Is it 755 permissioned?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>BERGANZ François<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, March 09, 2009 8:53
AM<br>
<b><span style='font-weight:bold'>To:</span></b> '<st1:PersonName w:st="on">Asterisk
 Users Mailing List - Non-Commercial Discussion</st1:PersonName>'<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [asterisk-users]
problem with an agi in PHP</span></font><font size=3 face="Times New Roman"><span
style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;color:#1F497D'>I have the same thing with AGI in the
dialplan<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=FR
style='font-size:11.0pt;color:#1F497D'>And php is install<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=FR
style='font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=FR
style='font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=FR
style='font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color="#1f497d" face=Verdana><span lang=FR
style='font-size:10.0pt;font-family:Verdana;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Consolas><span lang=FR
style='font-size:10.5pt;font-family:Consolas;color:#1F497D'>Cordialement,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Consolas><span lang=FR
style='font-size:10.5pt;font-family:Consolas;color:#1F497D'>BERGANZ François<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Consolas><span lang=FR
style='font-size:10.5pt;font-family:Consolas;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=5 color="#377c17" face=Webdings><span lang=FR
style='font-size:16.0pt;font-family:Webdings;color:#377C17'>P</span></font><font
size=5 color="#377c17"><span lang=FR style='font-size:16.0pt;color:#377C17'>&nbsp;</span></font><font
size=1 color="#377c17" face=Verdana><span lang=FR style='font-size:8.5pt;
font-family:Verdana;color:#377C17'>Pensez à l'Environnement,&nbsp;n'imprimez ce
mail que si nécessaire.</span></font><font size=1 color=black face=Helvetica><span
lang=FR style='font-size:9.0pt;font-family:Helvetica;color:black'><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=FR
style='font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<div>

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

<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=FR style='font-size:
10.0pt;font-family:Tahoma;font-weight:bold'>De&nbsp;:</span></font></b><font
size=2 face=Tahoma><span lang=FR style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>De la part de</span></b> Danny Nicholas<br>
<b><span style='font-weight:bold'>Envoyé&nbsp;:</span></b> lundi 9 mars 2009
14:36<br>
<b><span style='font-weight:bold'>À&nbsp;:</span></b> '<st1:PersonName w:st="on">Asterisk
 Users Mailing List - Non-Commercial Discussion</st1:PersonName>'<br>
<b><span style='font-weight:bold'>Objet&nbsp;:</span></b> Re: [asterisk-users]
problem with an agi in PHP<o:p></o:p></span></font></p>

</div>

</div>

<p class=MsoNormal><font size=2 face=Calibri><span lang=FR style='font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The message &#8220;indicates&#8221; that
DEADAGI will not work and that you should use AGI instead.&nbsp; Are you sure
PHP is installed on your machine and functioning properly (from $, php
a2billing.php works)?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]
<b><span style='font-weight:bold'>On Behalf Of </span></b>BERGANZ François<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, March 09, 2009 8:30
AM<br>
<b><span style='font-weight:bold'>To:</span></b>
asterisk-users@lists.digium.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> [asterisk-users] problem
with an agi in PHP</span></font><font size=3 face="Times New Roman"><span
style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=FR style='font-size:
11.0pt'>Hello,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=FR style='font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>I
need to execute an agi in php.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>I
have that:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><i><font size=2 face=Calibri><span style='font-size:11.0pt;
font-style:italic'>&nbsp; == Using SIP RTP CoS mark 5<o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 face=Calibri><span style='font-size:11.0pt;
font-style:italic'>&nbsp;&nbsp;&nbsp; -- Executing [0170725000@mnupprx1:1]
Answer(&quot;SIP/33179977999-b6c18478&quot;, &quot;&quot;) in new stack<o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 face=Calibri><span style='font-size:11.0pt;
font-style:italic'>&nbsp;&nbsp;&nbsp; -- Executing [0170725000@mnupprx1:2]
GotoIf(&quot;SIP/33179977999-b6c18478&quot;, &quot;0?6:3)&quot;) in new stack<o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 face=Calibri><span style='font-size:11.0pt;
font-style:italic'>&nbsp;&nbsp;&nbsp; -- Goto (mnupprx1,0170725000,3)<o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 face=Calibri><span style='font-size:11.0pt;
font-style:italic'>&nbsp;&nbsp;&nbsp; -- Executing [0170725000@mnupprx1:3]
DeadAGI(&quot;SIP/33179977999-b6c18478&quot;, &quot;a2billing.php&quot;) in new
stack<o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 face=Calibri><span style='font-size:11.0pt;
font-style:italic'>[Mar&nbsp; 9 14:25:08] WARNING[7518]: res_agi.c:3064
deadagi_exec: DeadAGI has been deprecated, please use AGI in all cases!<o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 face=Calibri><span style='font-size:11.0pt;
font-style:italic'>&nbsp;&nbsp;&nbsp; -- Launched AGI Script
/var/lib/asterisk/agi-bin/a2billing.php<o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 face=Calibri><span style='font-size:11.0pt;
font-style:italic'>&nbsp;&nbsp;&nbsp; -- &lt;SIP/33179977999-b6c18478&gt;AGI
Script a2billing.php completed, returning 0<o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 face=Calibri><span style='font-size:11.0pt;
font-style:italic'>&nbsp;&nbsp;&nbsp; -- Executing [0170725000@mnupprx1:4]
Wait(&quot;SIP/33179977999-b6c18478&quot;, &quot;2&quot;) in new stack<o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 face=Calibri><span style='font-size:11.0pt;
font-style:italic'>&nbsp;&nbsp;&nbsp; -- Executing [0170725000@mnupprx1:5]
Hangup(&quot;SIP/33179977999-b6c18478&quot;, &quot;&quot;) in new stack<o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 face=Calibri><span style='font-size:11.0pt;
font-style:italic'>&nbsp; </span></font></i><i><span lang=FR style='font-style:
italic'>== Spawn extension (mnupprx1, 0170725000, 5) exited non-zero on
'SIP/33179977999-b6c18478'<o:p></o:p></span></i></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=FR style='font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Verdana><span lang=FR style='font-size:
10.0pt;font-family:Verdana'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'>I dont know why it dont exec it&nbsp;!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Consolas><span lang=FR style='font-size:
10.5pt;font-family:Consolas'>Cordialement,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Consolas><span lang=FR style='font-size:
10.5pt;font-family:Consolas'>BERGANZ François<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=5 color="#377c17" face=Webdings><span lang=FR
style='font-size:16.0pt;font-family:Webdings;color:#377C17'>P</span></font><font
size=5 color="#377c17"><span lang=FR style='font-size:16.0pt;color:#377C17'>&nbsp;</span></font><font
size=1 color="#377c17" face=Verdana><span lang=FR style='font-size:8.5pt;
font-family:Verdana;color:#377C17'>Pensez à l'Environnement,&nbsp;n'imprimez ce
mail que si nécessaire.</span></font><font size=1 color=black face=Helvetica><span
lang=FR style='font-size:9.0pt;font-family:Helvetica;color:black'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=FR style='font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>