在 Asterisk 中呼叫转移到不同的 Host/IP
Call Transfer to Different Host/IP in Asterisk
是否可以将呼叫转移到星号中的不同主机?
就像我有三个星号实例,即 A、B 和 C。场景是呼叫将来自 A 到 B,B 将呼叫转移到 C,成功转移后,B 将不再是服务商,A 将直接成为服务商与C通信
正确的设置是在星号前面有 kamailio 或 opensips 代理。
对于星号 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]
是否可以将呼叫转移到星号中的不同主机? 就像我有三个星号实例,即 A、B 和 C。场景是呼叫将来自 A 到 B,B 将呼叫转移到 C,成功转移后,B 将不再是服务商,A 将直接成为服务商与C通信
正确的设置是在星号前面有 kamailio 或 opensips 代理。
对于星号 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]