RE: [PHP] Re: asterisk with php

From: Date: Wed, 22 Jul 2015 19:47:08 +0000
Subject: RE: [PHP] Re: asterisk with php
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-325011@lists.php.net to get a copy of this message
> -----Original Message----- > From: Jim Giner [mailto:jim.giner@albanyhandball.com] > Sent: Wednesday, July 22, 2015 10:20 PM > To: php-general@lists.php.net > Subject: [PHP] Re: asterisk with php > > You could have pointed out the line that is giving you the problem. > > Also - your use of global is poor. It only happens if a certain condition > happens, otherwise it won't be defined in that function that may be where > the problem is. More importantly, you don't need a 'global' in the main-line > code. You need it in the function (at the > beginning) to let the function know that you want to reference the $pin var > in use in the main-line code. Hi Jim, The error happen in "$agi->exec_dial("SIP/$pin");"

« previous php.general (#325011) next »