Joseph wrote:
So if the: "Set(goaway=${CALLERID(number):0:2})" limits the caller ID string to 2-characters, isn't it?

Actually, it hasn't doing anything to the caller ID, it's assigning the first 2 characters of the CID to the variable.

If I set it to 10-characters: ...${CALLERID(number):0:10} can I test it for the first two characters only "V4" or it has to be string 10-characters long?

No, that's what we're doing above.

Looking only at the first two characters of the CID and assigning it to ${goaway} and then doing the testing on ${goaway}, leaving the CID intact.


Doug


--
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, 
deserve neither Liberty nor Safety."


--
_____________________________________________________________________
-- 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

Reply via email to