呼叫转移到Asterisk中的不同主机/ IP

时间:2016-01-26 13:15:09

标签: asterisk transfer

是否可以通过星号将呼叫转移到其他主机? 就像我有三个星号实例,即A,B和C.这种情况是呼叫将来自A到B,B将把呼叫转移到C,成功转移后,B将不会成为促进者,A将直接成为与C沟通

1 个答案:

答案 0 :(得分:1)

正确的设置是使用星号的kamailio或opensips代理。

对于asterisk ff,您拥有中继设置中的所有实例

  canreinvite=yes
  directmedia=yes

如果您有SIP协议,则可以进行转接呼叫。如果你这样做之前,呼叫设置将完全转移,如果在设置后 - 只有最后一个选项将起作用,所以信号仍将通过该主机,而媒体直接进入。 如果提供商不支持,则这两个选项都可能无效。

pro-sip*CLI> core show application Transfer 

  -= Info about application 'Transfer' =- 

[Synopsis]
Transfer caller to remote extension. 

[Description]
Requests the remote caller be transferred to a given destination. If TECH
(SIP, IAX2, LOCAL etc) is used, only an incoming call with the same channel
technology will be transferred. Note that for SIP, if you transfer before
call is setup, a 302 redirect SIP message will be returned to the caller.
The result of the application will be reported in the ${TRANSFERSTATUS}
channel variable:
${TRANSFERSTATUS}: 
    SUCCESS: Transfer succeeded.
    FAILURE: Transfer failed.
    UNSUPPORTED: Transfer unsupported by channel driver.

[Syntax]
Transfer([Tech/]destination)

[Arguments]