Posted: Thu May 25, 2006 7:46 pm Post subject: [asterisk-doc] SetCallerID, SetCIDName, SetCIDNum -- Depreca
I'm aware that SetCIDName/Num() were deprecated as of v1.2.x in favor of
Set(CALLERID(name)=John Smith|a).
Three questions:
1. SetCallerID("John Smith" <212-555-1212>)
- What are valid values between the angle brackets? I've seen:
(212) 555-1212
212-555-1212
2125551212
Is 212.555.1212 valid? etc...
- What is the valid character set for "CallerID Name"?
2. Is there a Set() replacement for SetCallerID()? OR is SetCallerID()
deprecated and what is its replacement?
3. For Set(CALLERID(name)=John Smith|a) do I need quotes around John
Smith? and would it be ="John Smith"|a or ="John Smith|a" ?
Beckman
---------------------------------------------------------------------------
Peter Beckman Internet Guy
beckman@purplecow.comhttp://www.purplecow.com/
---------------------------------------------------------------------------
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Posted: Thu May 25, 2006 8:08 pm Post subject: [asterisk-doc] SetCallerID, SetCIDName, SetCIDNum -- Depreca
Peter Beckman wrote:
Quote:
1. SetCallerID("John Smith" <212-555-1212>)
- What are valid values between the angle brackets? I've seen:
(212) 555-1212
212-555-1212
2125551212
Is 212.555.1212 valid? etc...
Yes. Phone numbers are stripped of all punctuation and whitespace before
being stored as CLID.
Quote:
- What is the valid character set for "CallerID Name"?
Right now that is the printable character set portion of ASCII. There
are discussions about expanding it, but since it is currently based on
what the US PSTN will accept, that's the status for now.
Quote:
2. Is there a Set() replacement for SetCallerID()? OR is SetCallerID()
deprecated and what is its replacement?
No.
Quote:
3. For Set(CALLERID(name)=John Smith|a) do I need quotes around John
Smith? and would it be ="John Smith"|a or ="John Smith|a" ?
The |a is an option to the function, not part of the CNAM. No quotes are
needed, since the Asterisk dialplan expression parser does not really
understand quoted strings anyway.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum