As long as it works for you, it doesn't really matter whether you use dial or goto. I use neither, use a Macro, which will check astdb for user settings and does call management, like follow me, simultaneous calls, drop to voicemail, etc.
-----Original Message----- From: Marc Carrafiello [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 24, 2007 6:51 PM To: [email protected] Subject: [on-asterisk] Incoming Call Routing.. I've got a question about incoming call routing inside the dial plan. As of right now, my dial plan is stable, but I'm wondering if how I've got it working is the preferred (or best) practice. Should I be using Goto or Dial to handle calls? How I do my DIDs is a perfect example. This is what I have now.. [from-pstn] exten = _90549120[0-4]X,1,Answer exten = _90549120[0-4]X,n,Dial(Local/${EXTEN:-4}) exten = _90549120[0-4]X,n,Hangup But should I be doing?? [from-pstn] exten = _90549120[0-4]X,1,Answer exten = _90549120[0-4]X,n,Goto(default|{EXTEN:-4}|1) exten = _90549120[0-4]X,n,Hangup I use Dial(Local/xxxxxxxx) in a few more places, mostly inputs from the auto-attendant script that bounces a caller to the help desk queue or the receptionist queue. I originally used Dial() because "it just worked". Plus a 4-digit extension (derived from the DID or pilot numbers) could be a MeetMe Room, Voicemail backdoor, Queue, or a regular staff extension, and the extensions are in a different context than the incoming call ("from-pstn" versus "default") Like I said, it's stable. Does Goto() versus Dial() matter? Marc Carrafiello Datex --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
