Custom Feature Code which runs Asterisk CLI?

Discussion in 'General' started by Suthern, Dec 17, 2009.

  1. Suthern

    Joined:
    Nov 20, 2009
    Messages:
    17
    Likes Received:
    0
    I'm done a little bit of search, but admittedly not much on this topic.

    Is there a way to set up a custom 'feature code' that when dialed, would run
    Code:
    asterisk -rx "DATABASE PUT CF 200 300"
    I would use the day/night mode, but it only allows 9 options and I need 12. :)

    Thanks!
    -Suthern
     
  2. Suthern

    Joined:
    Nov 20, 2009
    Messages:
    17
    Likes Received:
    0
    What I've done to solve this particular issue is put into extensions_custom.conf
    Code:
    exten => 9971,1,Set(DB(CF/329)=305) ;a1 to Julie
    exten => 9971,2,Playback(custom/Thnx_calls_fwrded)
    exten => 9971,3,Hangup()
    Then I set up a MISC Destination that dials 9971.

    Then I setup an IVR which dials that MISC Destination. :) Most likely not the BEST setup, but it does work good and is simple to use!
     

Share This Page