星号是指新IP地址

问题描述 投票:0回答:1

我在Asterisk中遇到问题/正在尝试使某项工作正常。我有一个通往Ascom Nurse呼叫系统的中继线,并且有一个基本功能可以从手持设备拨号进入病房。我能够建立从Asterisk到护士呼叫服务器的呼叫。护士呼叫服务器发送推荐消息到同一子网上的其他地址,但Asterisk找不到该设备。如果我手动键入一个拨号计划以将呼叫路由到该设备,则它确实可以连接,但是系统可能有很多地址,并且无法在“引用”消息中分辨出该地址和拨号号码星号10.2.87.201Ascom 10.2.87.1

参考消息refer-to: sip:[email protected]

我需要能够将Asterisk动态转移到该分机和域。

这是一个有效的示例,带有拨号计划,告诉系统手动将其发送到10.2.87.11地址

exten => _VX.,n,Dial(SIP/${EXTEN}@10.2.87.11)

    -- Executing [201*65609848@default:2] Dial("SIP/1341-000001cd", "SIP/T6/201*65609848") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/T6/201*65609848
       > 0x7fba38016560 -- Strict RTP learning after remote address set to: 10.2.87.1:8766
    -- SIP/T6-000001ce answered SIP/1341-000001cd
    -- Channel SIP/T6-000001ce joined 'simple_bridge' basic-bridge <07b9ccbf-138d-423b-87cf-ad6c41336591>
    -- Channel SIP/1341-000001cd joined 'simple_bridge' basic-bridge <07b9ccbf-138d-423b-87cf-ad6c41336591>
       > Bridge 07b9ccbf-138d-423b-87cf-ad6c41336591: switching from simple_bridge technology to native_rtp
       > Locally RTP bridged 'SIP/1341-000001cd' and 'SIP/T6-000001ce' in stack
       > 0x7fb9c017aa00 -- Strict RTP learning after remote address set to: 192.168.21.82:16734
       > Locally RTP bridged 'SIP/1341-000001cd' and 'SIP/T6-000001ce' in stack
       > 0x7fb9c017aa00 -- Strict RTP switching to RTP target address 192.168.21.82:16734 as source
       > Locally RTP bridged 'SIP/1341-000001cd' and 'SIP/T6-000001ce' in stack
    -- Channel SIP/T6-000001ce left 'native_rtp' basic-bridge <07b9ccbf-138d-423b-87cf-ad6c41336591>
       > Bridge 07b9ccbf-138d-423b-87cf-ad6c41336591: switching from native_rtp technology to simple_bridge
    -- Channel SIP/1341-000001cd left 'simple_bridge' basic-bridge <07b9ccbf-138d-423b-87cf-ad6c41336591>
    -- Executing [V1003B0G65609848L0@default:1] NoOp("SIP/1341-000001cd", "V1003B0G65609848L0") in new stack
    -- Executing [V1003B0G65609848L0@default:2] Dial("SIP/1341-000001cd", "SIP/[email protected]") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/[email protected]
       > 0x7fb9c017aa00 -- Strict RTP learning complete - Locking on source address 192.168.21.82:16734
       > 0x7fba3802cb80 -- Strict RTP learning after remote address set to: 10.2.87.11:5012
    -- SIP/10.2.87.11-000001cf answered SIP/1341-000001cd
    -- Channel SIP/10.2.87.11-000001cf joined 'simple_bridge' basic-bridge <149e09d8-7d19-46fb-9135-43ffa33862e1>
    -- Channel SIP/1341-000001cd joined 'simple_bridge' basic-bridge <149e09d8-7d19-46fb-9135-43ffa33862e1>
       > Bridge 149e09d8-7d19-46fb-9135-43ffa33862e1: switching from simple_bridge technology to native_rtp
       > Locally RTP bridged 'SIP/1341-000001cd' and 'SIP/10.2.87.11-000001cf' in stack
       > 0x7fba3802cb80 -- Strict RTP switching to RTP target address 10.2.87.11:5012 as source
       > 0x7fba3802cb80 -- Strict RTP learning complete - Locking on source address 10.2.87.11:5012
    -- Channel SIP/1341-000001cd left 'native_rtp' basic-bridge <149e09d8-7d19-46fb-9135-43ffa33862e1>
    -- Channel SIP/10.2.87.11-000001cf left 'native_rtp' basic-bridge <149e09d8-7d19-46fb-9135-43ffa33862e1>
  == Spawn extension (default, V1003B0G65609848L0, 2) exited non-zero on 'SIP/1341-000001cd'

使用转移拨号计划时不起作用

       > 0x7fb9c017aa00 -- Strict RTP learning after remote address set to: 192.168.21.82:16766
    -- Executing [201*65609851@default:1] NoOp("SIP/1341-000001de", "201*65609851") in new stack
    -- Executing [201*65609851@default:2] Dial("SIP/1341-000001de", "SIP/T6/201*65609851") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/T6/201*65609851
       > 0x7fba4001ebf0 -- Strict RTP learning after remote address set to: 10.2.87.1:8766
    -- SIP/T6-000001df answered SIP/1341-000001de
    -- Channel SIP/T6-000001df joined 'simple_bridge' basic-bridge <9b4ac0b8-3bcf-4ef3-862a-46b36a7cddab>
    -- Channel SIP/1341-000001de joined 'simple_bridge' basic-bridge <9b4ac0b8-3bcf-4ef3-862a-46b36a7cddab>
       > Bridge 9b4ac0b8-3bcf-4ef3-862a-46b36a7cddab: switching from simple_bridge technology to native_rtp
       > Locally RTP bridged 'SIP/1341-000001de' and 'SIP/T6-000001df' in stack
       > 0x7fb9c017aa00 -- Strict RTP learning after remote address set to: 192.168.21.82:16766
       > Locally RTP bridged 'SIP/1341-000001de' and 'SIP/T6-000001df' in stack
       > 0x7fb9c017aa00 -- Strict RTP switching to RTP target address 192.168.21.82:16766 as source
       > Locally RTP bridged 'SIP/1341-000001de' and 'SIP/T6-000001df' in stack
    -- Channel SIP/T6-000001df left 'native_rtp' basic-bridge <9b4ac0b8-3bcf-4ef3-862a-46b36a7cddab>
       > Bridge 9b4ac0b8-3bcf-4ef3-862a-46b36a7cddab: switching from native_rtp technology to simple_bridge
    -- Channel SIP/1341-000001de left 'simple_bridge' basic-bridge <9b4ac0b8-3bcf-4ef3-862a-46b36a7cddab>
    -- Executing [V1003B0G65609851L0@default:1] NoOp("SIP/1341-000001de", "V1003B0G65609851L0") in new stack
    -- Executing [V1003B0G65609851L0@default:2] Transfer("SIP/1341-000001de", "SIP/V1003B0G65609851L0") in new stack
  == Using SIP RTP CoS mark 5
       > 0x7fb9c0174940 -- Strict RTP learning after remote address set to: 192.168.21.82:16770
    -- Executing [V1003B0G65609851L0@default:1] NoOp("SIP/1341-000001e0", "V1003B0G65609851L0") in new stack
    -- Executing [V1003B0G65609851L0@default:2] Transfer("SIP/1341-000001e0", "SIP/V1003B0G65609851L0") in new stack
    -- Auto fallthrough, channel 'SIP/1341-000001e0' status is 'UNKNOWN'
  == Using SIP RTP CoS mark 5
       > 0x7fb9c0174940 -- Strict RTP learning after remote address set to: 192.168.21.82:16770
    -- Executing [V1003B0G65609851L0@default:1] NoOp("SIP/1341-000001e1", "V1003B0G65609851L0") in new stack
    -- Executing [V1003B0G65609851L0@default:2] Transfer("SIP/1341-000001e1", "SIP/V1003B0G65609851L0") in new stack
    -- Auto fallthrough, channel 'SIP/1341-000001e1' status is 'UNKNOWN'
  == Using SIP RTP CoS mark 5
       > 0x7fb9c0174940 -- Strict RTP learning after remote address set to: 192.168.21.82:16770
    -- Executing [V1003B0G65609851L0@default:1] NoOp("SIP/1341-000001e2", "V1003B0G65609851L0") in new stack
    -- Executing [V1003B0G65609851L0@default:2] Transfer("SIP/1341-000001e2", "SIP/V1003B0G65609851L0") in new stack
    -- Auto fallthrough, channel 'SIP/1341-000001e2' status is 'UNKNOWN'
       > 0x7fb9c0174940 -- Strict RTP learning after remote address set to: 192.168.21.82:16770
    -- Auto fallthrough, channel 'SIP/1341-000001de' status is 'ANSWER'

总之,我需要在引用消息中动态发送到域的最后一个示例。

谢谢您的帮助

asterisk sip refer
1个回答
0
投票

我不确定这是否正确,但是我通过为与之通信的所有设备创建用户并调整我的extensions.conf来使其正常工作。>

exten => _VX.,n,Dial(SIP/${EXTEN}@${SIPDOMAIN})

fullname = 10.2.87.10
secret =
hasvoicemail = no
host = 10.2.87.10
userqphone = yes
qualify = no
hassip = yes
hasiax = no
callwaiting = yes
context = default
© www.soinside.com 2019 - 2024. All rights reserved.