Originate a call with Asterisk - without the originating extension ringing

后端 未结 2 1325
余生分开走
余生分开走 2021-01-06 03:38

I have a completely standard installation of Trixbox with 2 SIP extensions set up on it.

Both extensions are Snom 370 SIP phones.

I can originate a call from

相关标签:
2条回答
  • 2021-01-06 03:48

    You can use AMI (Asterisk Manager Interface) for originating call. Action "Originate" can be used with header "Async: yes", that allow made a call in both direction in same time.

    Yo can also made it using CLI, using Local channel for calling SIP/101 and answering call before executing Dial command to SIP/101 device.

    0 讨论(0)
  • 2021-01-06 04:02

    I ended up creating a couple of new contexts in extensions.conf

    [clickoutcontext]
    exten => _X.,1,NoOp("Click In Context")
    exten => _X.,n,SIPAddHeader(Call-Info: <sip:pbx.your-company.de>\;answer-after=0)
    exten => _X.,n,Dial(Sip/${EXTEN})
    
    [clickincontext]
    exten => _X.,1,NoOp("Click Out Context")
    exten => _X.,n,SIPRemoveHeader(Call-Info)
    exten => _X.,n,Dial(Sip/${EXTEN})
    

    And then using an AMI action to make the call:

    ACTION: Originate
    Channel: Local/101@clickoutcontext
    Exten: 102
    Priority: 1
    Timeout: 60000
    Context: clickincontext
    

    This sends a header to the Snom phone making the call to tell it to auto answer and then removes it before the call is placed to the second phone.

    0 讨论(0)
提交回复
热议问题