On Wed, 13 Apr 2016, Steve Edwards wrote:
// label
if ('[' == substr($line, 5, 1))
{
$line = str_replace(']', '[', $line);
$tokens = explode('[', $line);
printf("\tsame = n(%s),\t\t\t%s", $tokens[1], $line);
continue;
}
Damn. Missed a line of code.
Should be:
// label
if ('[' == substr($line, 5, 1))
{
$line = str_replace(']', '[', $line);
$tokens = explode('[', $line);
$line = substr($line, strpos($line, ' ', 20) + 1, 255);
printf("\tsame = n(%s),\t\t\t%s", $tokens[1], $line);
continue;
}
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards [email protected] Voice: +1-760-468-3867 PST
https://www.linkedin.com/in/steve-edwards-4244281
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users