tmakkonen / sipcmd

sipcmd
327 stars 108 forks source link

sipcmd IVR invoke a cmd or script with DTMF received from caller? #48

Open afgcons opened 7 years ago

afgcons commented 7 years ago

For a home automation project I'd like sipcmd:

  1. wait for a incoming call
  2. play greet+prompt
  3. receive DTMF digits + # or *, e.g; "12#"
  4. invoke script, e.g. activate.pl "12#"
  5. (re)open and play the audio file named or rewritten by the script
  6. hangup

Where can I find an IVR example and in particular, a description of the x-command?

Woersty commented 7 years ago

I'm very interested in the same. I use an ugly workaround in my Text2SIP Plugin by using a modified sipcmd but cannot use 5. which would be quite cool if possible.

See Line 252 and 258.

BR C

waschbaer77 commented 4 years ago

I'm looking for exactly the same.