simple dial plan with various options

Catalog of dial plans
mjp
Posts: 37
Joined: Tue Apr 07, 2009 7:04 am

Post by mjp » Wed Jun 17, 2009 2:01 pm

hi, Can you please suggest me how do I configure ruby dialplan for sending voicemail?

jvwelzen
Posts: 716
Joined: Thu Sep 11, 2008 1:56 pm

Post by jvwelzen » Wed Jun 17, 2009 2:06 pm

Hi

I use this for budgetphone here in the netherlands

Code: Select all

      sys.Dial("#{sys.Username}@local", 38)
   
      sys.Log("#{sys.Username} is not online. or not picking up")

      sys.Respond(486, "#{sys.Username} Not online, send to voicemail") 
matbe you need to try some different error codes

example

Code: Select all

      sys.Dial("#{sys.Username}@local", 38)
   
      sys.Log("#{sys.Username} is not online. or not picking up")

      sys.Respond(480, "#{sys.Username} Not online, send to voicemail") 
Hope this helps

Post Reply