2

I am using asterisk (Freepbx). I am using following command which is working fine. I can originate call from asterisk cli without any issue.

channel originate SIP/tunk-name/1416XXXXXXX extension 701@from-internal

call ring my phone number (1416XXXXXXX) and when I answer it connects with 701 Queue using my created trunk in freepbx.

I want to set call duration in this command so call disconnect after set time.
Thanks in advance

PS: I do not want to set time in queue.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Fida Hussan
  • 23
  • 1
  • 5

1 Answers1

3

If you want limit duration use

channel originate SIP/tunk-name/1416XXXXXXX Application Dial Local/701@from-internal/n,,S(duration_here)

See Dial command params.

arheops
  • 15,544
  • 1
  • 21
  • 27
  • Thanks for you reply! Can you please advice how can I add DTMF and caller ID in this command. I have tried ** channel originate SIP/tunk-name/1416XXXXXXX/,,D(wwww1) Application Dial Local/701@from-internal/n,,S(duration_here) **. Looking forward to hear from you. PS. how to add caller ID. thanks – Fida Hussan Apr 01 '16 at 11:47
  • You can't. But you can use channel type Local/ and write all you need in dialplan – arheops Apr 01 '16 at 17:46