Не помогло.
fs1:
Код:
<extension name="inbound_test">
<condition field="destination_number" expression="^1234567890$">
<action application="answer"/>
<action application="set" data="max_forwards=500"/>
<action application="bridge" data="sofia/internal/test_extension0@fs2.mydomain.net:5360"/>
</condition>
</extension>
Код:
freeswitch@internal> sofia status profile sibling
=================================================================================================
Name sibling
Domain Name N/A
Auto-NAT false
DBName sofia_reg_sibling
Pres Hosts
Dialplan XML
Context default
Challenge Realm auto_from
RTP-IP 172.32.1.192
Ext-RTP-IP 172.32.1.192
SIP-IP 172.32.1.192
Ext-SIP-IP 172.32.1.192
URL sip:mod_sofia@172.32.1.192:5360
BIND-URL sip:mod_sofia@172.32.1.192:5360;maddr=172.32.1.192;transport=udp,tcp
HOLD-MUSIC local_stream://moh
OUTBOUND-PROXY N/A
CODECS IN VP8,G722,PCMU,PCMA,GSM
CODECS OUT VP8,G722,PCMU,PCMA,GSM
TEL-EVENT 101
DTMF-MODE rfc2833
CNG 13
SESSION-TO 0
MAX-DIALOG 0
NOMEDIA false
LATE-NEG true
PROXY-MEDIA false
ZRTP-PASSTHRU false
AGGRESSIVENAT false
CALLS-IN 0
FAILED-CALLS-IN 0
CALLS-OUT 0
FAILED-CALLS-OUT 0
REGISTRATIONS 0
fs2:
Код:
freeswitch@internal> sofia status profile sibling
=================================================================================================
Name sibling
Domain Name N/A
Auto-NAT false
DBName sofia_reg_sibling
Pres Hosts
Dialplan XML
Context default
Challenge Realm auto_from
RTP-IP 172.32.2.251
Ext-RTP-IP 172.32.2.251
SIP-IP 172.32.2.251
Ext-SIP-IP 172.32.2.251
URL sip:mod_sofia@172.32.2.251:5360
BIND-URL sip:mod_sofia@172.32.2.251:5360;maddr=172.32.2.251;transport=udp,tcp
HOLD-MUSIC local_stream://moh
OUTBOUND-PROXY N/A
CODECS IN VP8,G722,PCMU,PCMA,GSM
CODECS OUT VP8,G722,PCMU,PCMA,GSM
TEL-EVENT 101
DTMF-MODE rfc2833
CNG 13
SESSION-TO 0
MAX-DIALOG 0
NOMEDIA false
LATE-NEG true
PROXY-MEDIA false
ZRTP-PASSTHRU false
AGGRESSIVENAT false
CALLS-IN 1
FAILED-CALLS-IN 1
CALLS-OUT 0
FAILED-CALLS-OUT 0
REGISTRATIONS 0
Трафик на fs2:
Код:
10:08:23.059262 IP 172.32.1.192.5060 > 172.32.2.251.5360: UDP, length 1363
E..o0...@..t. ... .......[..INVITE sip:test_extension0@fs2.mydomain.net:5360 SIP/2.0
Via: SIP/2.0/UDP 54.172.x.x:5060;rport;branch=z9hG4bK8Nj6yXvXFjp4H
Max-Forwards: 499
From: "+17607058888" <sip:+17607058888@54.172.x.x>;tag=aepvQjc60vQ8H
To: <sip:test_extension0@fs2.mydomain.net:5360>
Call-ID: b7adee89-48c2-1233-08a9-12a2d159e06a
CSeq: 73043787 INVITE
Contact: <sip:mod_sofia@54.172.x.x:5060>
User-Agent: FreeSWITCH-mod_sofia/1.5.15b+git~20150130T165344Z~4ed7b4811a~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Privacy: none
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 349
X-FS-Support: update_display,send_info
P-Asserted-Identity: "+17607058888" <sip:+17607058888@54.172.x.x>
v=0
o=FreeSWITCH 1426742283 1426742284 IN IP4 54.172.x.x
s=FreeSWITCH
c=IN IP4 54.172.x.x
...
10:08:23.151256 IP 172.32.2.251.5360 > 172.32.1.192.5060: UDP, length 1452
E.......@.... ... ........b.SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 54.172.x.x:5060;rport=5060;branch=z9hG4bK8Nj6yXvXFjp4H;received=172.32.1.192
From: "+17607058888" <sip:+17607058888@54.172.x.x>;tag=aepvQjc60vQ8H
To: <sip:test_extension0@fs2.mydomain.net:5360>;tag=2j8QeByH259aD
Call-ID: b7adee89-48c2-1233-08a9-12a2d159e06a
CSeq: 73043787 INVITE
Contact: <sip:test_extension0@172.32.2.251:5360;transport=udp>
User-Agent: FreeSWITCH-mod_sofia/1.5.15b+git~20150130T165344Z~4ed7b4811a~64bit
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 295
X-FS-Display-Name: test_extension0
X-FS-Display-Number: sip:test_extension0@fs2.mydomain.net
X-FS-Support: update_display,send_info
P-Asserted-Identity: "test_extension0" <sip:test_extension0@fs2.mydomain.net>
v=0
o=FreeSWITCH 1426729825 1426729826 IN IP4 172.32.2.251
s=FreeSWITCH
c=IN IP4 172.32.2.251
10:08:23.151565 IP 172.32.2.251.5360 > 54.172.x.x.5060: UDP, length 883
E.......@.L-. ..6........{..INFO sip:mod_sofia@54.172.x.x:5060 SIP/2.0
Via: SIP/2.0/UDP 172.32.2.251:5360;rport;branch=z9hG4bK23j26j839gapm
Max-Forwards: 70
From: <sip:test_extension0@fs2.mydomain.net:5360>;tag=2j8QeByH259aD
To: "+17607058888" <sip:+17607058888@54.172.x.x>;tag=aepvQjc60vQ8H
Call-ID: b7adee89-48c2-1233-08a9-12a2d159e06a
CSeq: 73043787 INFO
Contact: <sip:test_extension0@172.32.2.251:5360;transport=udp>
User-Agent: FreeSWITCH-mod_sofia/1.5.15b+git~20150130T165344Z~4ed7b4811a~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: path, replaces
Content-Type: application/media_control+xml
Content-Length: 175
...
fs2.mydomain.net резолвится во внутренний ip.