OK, Here is a down and dirty which will work in limited situations (like when there are not to many extensions to re-define - which is one of the things I want to avoid)... The channel is the first parameter passed to
[globals] Zap/5-=s6147 Zap/16=s6158 exten => 6199,1,GoToIf(${${CHANNEL:0:6}}?6199|2:6199|4) exten => 6199,2,VoicemailMain2(${${CHANNEL:0:6}}) exten => 6199,3,Hangup exten => 6199,4,VoicemailMain2 exten => 6199,5,Hangup John This e-mail was scanned and found clean by Monroe-Woodbury CSD Antivirus. _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users