Thank you Steve, that's a good idea. If I use a global variable like --> IF GLB > 2 GLB = 0 dial(iax2/isp${GLB}/${EXTEN}) --> GLB = GLB +1 I believe this could cause a race condition if two calls are sent to the carrier at the same time?