-1
我有两个IP地址,我在同一个物理接口上的服务器上:星号,两个IP地址,同一个网段,相同的物理性接口
eth0 10.10.10.11
eth0:0 10.10.10.12
Client IP address: 20.30.40.99
的问题是,当一个分机(在另一个子网)试图寄存器,服务器通过IP 10.10.10.11接收请求,但它试图通过IP 10.10.10.12(根据我对日志的解释)做出响应,所以扩展名不能注册。
它的日志:
[Apr 3 08:10:19] DEBUG[1758] chan_sip.c: = Looking for Call ID: ODU1N2VlNDlkYjQ2NzJkNTU1NTI0ZDc4MWFjOGFhY2I. (Checking From) --From tag d979d256 --To-tag
[Apr 3 08:10:19] DEBUG[1758] acl.c: For destination '20.30.40.99', our source address is '10.10.10.12'.
[Apr 3 08:10:19] DEBUG[1758] chan_sip.c: Setting SIP_TRANSPORT_UDP with address 10.10.10.12:5060
[Apr 3 08:10:19] DEBUG[1758] netsock2.c: Splitting '20.30.40.99:52607' into...
[Apr 3 08:10:19] DEBUG[1758] netsock2.c: ...host '20.30.40.99' and port '52607'.
[Apr 3 08:10:19] DEBUG[1758] chan_sip.c: Allocating new SIP dialog for ODU1N2VlNDlkYjQ2NzJkNTU1NTI0ZDc4MWFjOGFhY2I. - PUBLISH (No RTP)
[Apr 3 08:10:19] DEBUG[1758] chan_sip.c: **** Received PUBLISH (15) - Command in SIP PUBLISH
[Apr 3 08:10:19] DEBUG[1758] chan_sip.c: Trying to put 'SIP/2.0 489' onto UDP socket destined for 20.30.40.99:52607
[Apr 3 08:10:19] DEBUG[1758] chan_sip.c: SIP message could not be handled, bad request: ODU1N2VlNDlkYjQ2NzJkNTU1NTI0ZDc4MWFjOGFhY2I.
[Apr 3 08:10:19] DEBUG[1758] chan_sip.c: Destroying SIP dialog ODU1N2VlNDlkYjQ2NzJkNTU1NTI0ZDc4MWFjOGFhY2I.
[Apr 3 08:10:19] DEBUG[1758] chan_sip.c: = Looking for Call ID: Y2M3MmEyMjU2YTkyYzQxODlhNjI5N2Y1Y2NiMjkyMjA. (Checking From) --From tag 1262b86c --To-tag
[Apr 3 08:10:19] DEBUG[1758] chan_sip.c: **** Received REGISTER (2) - Command in SIP REGISTER
[Apr 3 08:10:19] DEBUG[1758] chan_sip.c: Ignoring SIP message because of retransmit (REGISTER Seqno 2491, ours 2491)
[Apr 3 08:10:19] DEBUG[1758] netsock2.c: Splitting '20.30.40.99:52607' into...
[Apr 3 08:10:19] DEBUG[1758] netsock2.c: ...host '20.30.40.99' and port '52607'.
我怎么能作出这样的Asterisk由10.10.10.11(为eth0)IP回应,而不是通过10.10.10.12(为eth0:0)?