Scott Pinhorne wrote:
> Hi All
> 
> When a user wishes to 'break out' they prefix there call with a 9.
> I know how to remove the 9 and then dial the remaining number and this
> is all working fine.
> 
> I now need to remove the 9 but then prefix another number onto the phone
> number before dialing now but am unsure how to do this is the dialplan.
> 
something like.

If 123 is the prefix.

Dial(ZAP/g2/123${EXTEN:1})

Failing that.

SetVar(PREFIX=123)
Dial(ZAP/g2/${PREFIX}${EXTEN:1})

> Would someone be able to point me in the right direction or provide an
> example diaplan that does this?
> 
Jussike at.

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to