[Asterisk-Dev] SubString Deprecated

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Sat May 8 07:38:32 MST 2004


This is not a development question; please post to the -Users list
in the future.

On Friday 07 May 2004 00:52, Rick.Bates at kaz-group.com wrote:
> This (above) is a simplified contrived example, I am trying to
> split apart the ${CHANNEL} variable, for instance Zap/32-1 to just
> get the zap channel part, ie 32, to which I then assign a caller ID
> for each channel in that span.

Use the Cut application:

Cut(chan=CHANNEL,-,1)
Cut(channo=chan,/,2)

> I am doing this as the caller ID's 
> assigned in the zapata.conf come through to the call plan as blank,
> even though they are assigned explicitly for each channel!

Cut 'n' paste from your zapata.conf.  How are you attempting to
set CallerID?

-- 
Tilghman



More information about the asterisk-dev mailing list