Yealink Forums
T22P 2 account VPN and not - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: Phone specific topic (/forumdisplay.php?fid=12)
+---- Forum: T2xP Series (/forumdisplay.php?fid=21)
+---- Thread: T22P 2 account VPN and not (/showthread.php?tid=3384)



T22P 2 account VPN and not - s.pisani - 03-04-2015 06:12 PM

Hello, I'm trying to use a T22P with 2 account.
Firmware Version 7.73.0.40
Hardware Version 5.0.0.60

I have a VPN active with and external PBX and the account1 is OK.
I tried to create a second account with a second PBX in the local net.
The registration is OK, the call too but there is no audio.
The problem is that the phone uses the IP from VPN (tuno) as own audio IP in INVITE.
There is a way to force phone to use outgoing nterface IP instead?

Code:
esw0      Link encap:Ethernet  HWaddr 00:15:65:2E:86:B2  
          inet addr:192.168.4.28  Bcast:192.168.4.255  Mask:255.255.255.0
          inet6 addr: fe80::215:65ff:fe2e:86b2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:192.168.203.22  P-t-P:192.168.203.21  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1



RE: T22P 2 account VPN and not - James_Yealink - 03-04-2015 06:39 PM

Hi,

Currnetly once you set up VPN in Yealink phones then all calls will be routed to VPN tunnel.
So It can't work in this situcation well.

Regards,
James


RE: T22P 2 account VPN and not - s.pisani - 03-04-2015 07:00 PM

It's a shame. It's seems not too hard to use the outgoing interface IP instead of VPN one in the SIP message.

192.168.203.22 is the IP from VPN

Code:
INVITE sip:902@192.168.4.24:6565 SIP/2.0
Via: SIP/2.0/UDP 192.168.203.22:5063;branch=z9hG4bK3156869259
From: "100" <sip:100@192.168.4.24:6565>;tag=2372591398
To: <sip:902@192.168.4.24:6565>
Call-ID: 849277460@192.168.203.22
CSeq: 2 INVITE
Contact: <sip:100@192.168.203.22:5063>
Authorization: Digest username="100", realm="asterisk", nonce="4b0fcec0", uri="sip:902@192.168.4.24:6565", response="dd0515a91d885dbf67b600452764fd6e", algorithm=MD5
Content-Type: application/sdp
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards: 70
User-Agent: Yealink SIP-T22P 7.73.0.40
Supported: replaces
Allow-Events: talk,hold,conference,refer,check-sync
Content-Length: 239

v=0
o=- 20006 20006 IN IP4 192.168.203.22
s=SDP data
c=IN IP4 192.168.203.22
t=0 0
m=audio 11788 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=fmtp:101 0-15
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=sendrecv