Kool, thanks guys I m out right now, will be back on Monday to try your suggestions. Will keep you posted.
-----Original Message----- From: Andrew Kohlsmith [mailto:[EMAIL PROTECTED] Sent: Saturday, June 30, 2007 6:07 PM To: [email protected] Subject: Re: [on-asterisk] dial plan help On Friday 29 June 2007 2:56 pm, Syed Zia wrote: > exten => 200,1,Answer() > exten => 200,n,Ringing() > exten => 200,n,Dial(SIP/[EMAIL PROTECTED]) > exten => 200,n,GotoIf($[("${DIALSTATUS}" = "NOANSWER")]?s-CALLHOME,1) > exten => 200,n,Hangup() exten => > s-CALLHOME,1,Dial(SIP/[EMAIL PROTECTED]) > exten => s-CALLHOME,n,Hangup() You don't need the Answer nor the Ringing, but that's not the problem, as the script looks correct otherwise. I use this for my own number (extension altered to protect the guilty): exten => 1234567,1,Dial(SIP/[EMAIL PROTECTED],12,gtk) exten => 1234567,n,GotoIf("${DIALSTATUS}" = "ANSWER" ]?h,1) exten => 1234567,n,Dial(SIP/[EMAIL PROTECTED]&${ANDREWCELL},25,grtk) exten => 1234567,n,GotoIf("${DIALSTATUS}" = "ANSWER" ]?h,1) exten => 1234567,n,GotoIf("${DIALSTATUS}" = "NOANSWER" ]?vm,1) exten => 1234567,n,NoOp(call-andrew: ${EXTEN} called but odd dialstatus ${DIALSTATUS}) exten => 1234567,n,Goto(h,1) exten => vm,1,VoceMail([EMAIL PROTECTED],su) exten => vm,n,Goto(h,1) exten => a,1,VoiceMailMain([EMAIL PROTECTED]) exten => a,n,Hangup exten => h,1,Macro(handle-hangup) Now my example is backward from yours, as it dials my home, then my home and cell, but the idea's the same for you but in reverse. Whenever I call a cellular number I use the infamous 'r' dial flag -- it causes Asterisk to create the ringback audio. 99.9999% of the time YOU DO NOT WANT TO DO THIS, but calling cellular phones is a perfect place that you WANT to do it, as if the cell is not available you will hear "The cellular customer you are trying to reach is unable to take your call" and most people don't want that. I agree with Simon though; let's see what your console output looks like. -A. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
