[Asterisk-Users] can't get the full callerid php/agi
Sathya
sathyaw at sbcglobal.net
Sun Mar 21 13:26:06 MST 2004
Hi David,
Thanks, yes that was the problem.
Really appreciate your tip.
Cheers
Sathya
From: David Croft <davidc at sargasso.net>
Organization: Sargasso Networks
To: asterisk-users at lists.digium.com
Subject: Re: [Asterisk-Users] can't get the full callerid php/agi
Reply-To: asterisk-users at lists.digium.com
Your script is receiving the data correctly, as you will see if you
actually dump that data to a file rather than back to the asterisk console.
The problem is actually in your VERBOSE statement. You are passing back
this string:
VERBOSE ""Sathya Weerasooriya" <1001>"
Naturally asterisk is confused by this quote nesting. Try this line instead:
echo "VERBOSE \"".str_replace("\"", "\\\"", $temp)."\"\n";
David
More information about the asterisk-users
mailing list