简体   繁体   中英

Asterisk Originate a muted call

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM