RTP IP address wrong over VPN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am trying to use PJSIP with the python wrapper to connect two 
endpoints over a VPN connection.

The problem I have is, that the RTP address is always wrong.
The devices are IP multi-homed and I want them to use the VPN IP address 
to communicate.

The setup looks like this:

Internet <-- 10.100.100.125 |DEV-A| 192.168.9.100
|        || VPN
Internet <-- 12.120.100.115 |DEV-B| 192.168.9.1

I have configured the transport on both sides to use 192.168.9.100 (or 
192.168.9.1) and the SIP connection is established successfully.
But the RTP is always trying to transfer via the public IP address 
10.100.100.125.

Is there any way to change that? Any help would be great.

Thanks,

Jens

Here is the log:

20:11:07.502   pjsua_core.c  SIP UDP socket reachable at 192.168.9.100:5060
20:11:07.503   udp0x1c7e2f8  SIP UDP transport started, published 
address is 192.168.9.100:5060
20:11:13.027   pjsua_call.c  Making call with acc #0 to sip:192.168.9.1
20:11:13.029  pjsua_media.c  .Call 0: initializing media..
20:11:13.031  pjsua_media.c  ..RTP socket reachable at 10.100.100.125:4000
20:11:13.032  pjsua_media.c  ..RTCP socket reachable at 10.100.100.125:4001
20:11:13.032  pjsua_media.c  ..Media index 0 selected for audio call 0
20:11:13.034   pjsua_core.c  ....TX 1078 bytes Request msg 
INVITE/cseq=3573 (tdt a0x1c89f30) to UDP 192.168.9.1:5060:
INVITE sip:192.168.9.1 SIP/2.0
Via: SIP/2.0/UDP 
192.168.9.100:5060;rport;branch=z9hG4bKPjf1097871-0cc3-46e1-ab6d-a8281ac73e9c
Max-Forwards: 70
From: sip:user@xxxxxxxxx;tag=7c44c94f-40b1-4ea7-88d8-56dd071aabae
To: sip:192.168.9.1
Contact: <sip:user at 192.168.9.100:5060;ob>
Call-ID: 055e908a-b200-4a2e-b425-0d3845b14b49
CSeq: 3573 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, 
REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
User-Agent: pjsip python
Content-Type: application/sdp
Content-Length:   476






[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux