-1

i have a script that start a call from some channels in my asterisk this scripts runs the folowing commands:

channel originate SIP/11 extension 800@from-internal
channel originate SIP/12 extension 800@from-internal
channel originate SIP/13 extension 800@from-internal
channel originate SIP/14 extension 800@from-internal

after that i ned to mute each channel using python amy integration like it:

        action = SimpleAction(
            'MuteAudio',
            Channel='SIP/11-00001',
            Exten='11', 
            Direction='in',
            State='on'           
        )

but it gives me to mutch errors, if a channel dont start a call this command never runs.

id like to know if tehre is any commando that can originate a call muted. and after that i can choos what channel will be unmuted based on my system status.

Jasar Orion
  • 626
  • 7
  • 26

1 Answers1

0

You can mute audio in from-internal context as first priority.

You can originate via Local/ channel to do any Dial command params or any apps before call.

arheops
  • 15,544
  • 1
  • 21
  • 27