Re: Re: asterisk with php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2015-07-22 at 22:47 +0300, hadi wrote:
> 
> > -----Original Message-----
> > From: Jim Giner [mailto:jim.giner@xxxxxxxxxxxxxxxxxx]
> > Sent: Wednesday, July 22, 2015 10:20 PM
> > To: php-general@xxxxxxxxxxxxx
> > Subject:  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");"
> 
> 

Hadi, you're still missing the line number and the code surrounding that
that would give any of us a clue as to what the problem is.

Please, please, please, try to give some of this sort of information
when you're posting here asking for help :)

Thanks,
Ash

http://www.ashleysheridan.co.uk




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux