nalio / siphon

Automatically exported from code.google.com/p/siphon
0 stars 0 forks source link

Conneting from VPN to corporate pbx #225

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open VPN to corporate network from 3g
2. Open Siphon

What is the expected output? What do you see instead?
Service unavailable

What version of the product are you using? On what operating system?
2.0.8

Please provide any additional information below.
I have sniff packet and I see tath Siphon try to connect to the corporate
pbx using the ip address of the 3g Network and the registration process
going to time out becouse the corporate pbx send the request to the wrong
route.

There is a way to specified a bind ip address, like the vpn network
address, to use in the registration process?

Original issue reported on code.google.com by fabio.vi...@gmail.com on 15 Apr 2009 at 1:04

GoogleCodeExporter commented 9 years ago
Do you have the possibility to get trace from iphone (log) and on server ?
If could you post here or send me by mail.

Like that we can see if the problem is caused by server not receiving the 
REGISTER
request or because the REGISTER response is not received by iPhone.

Original comment by samuelv0...@gmail.com on 27 Apr 2009 at 8:23

GoogleCodeExporter commented 9 years ago
I have sniffed the traffic wile the registration process and I see that the 
corporate
pbx receive a registrar packet but the source ip adress of the packet is wrong( 
so
the iphone don't receive the registrar ack).
This appen becouse siphon use the ip of the local lan(or public lan when use 3g
network )intead the VPN's IP adress.
There is a way to choice wath ip adress to use for sip and rtp request?

Original comment by fabio.vi...@gmail.com on 13 May 2009 at 2:59

GoogleCodeExporter commented 9 years ago
Thanks, I'm working on this issue.
For the moment it's not possible to choice the ip address.
The ip selection algorithm is not defined to choice easily the ip.
This is a pjsip issue: http://trac.pjsip.org/repos/ticket/11

Original comment by samuelv0...@gmail.com on 13 May 2009 at 3:23

GoogleCodeExporter commented 9 years ago
Looking at comments dates on the pjsip ticket I would conclude that there will 
be no
solution for the issue. Not in the near future at least. Perhaps a option could 
be
introduced as a temporary measure? For instance, in my case IP address of VPN
connection is per-user bound and could defined manually on each and every 
device.

Original comment by vrur...@gmail.com on 24 Jun 2009 at 11:08

GoogleCodeExporter commented 9 years ago
I have the same problem, however with different results.  I am connecting to a 
PBX
through VPN over a Wifi connection.  Siphon will register with the PBX fine, 
however
this is affecting my audio.  As all packets leaving the app have my wifi int 
address
on them, audio coming back from the PBX is sent to an incorrect address.

REGISTER sip:172.22.4.1 SIP/2.0
Via: 
SIP/2.0/UDP10.0.1.19:5060;rport;branch=z9hG4bKPjk4cdAp6ztxvkoBLk.wQ0P98Kzi44gIJa
Route: <sip:172.22.4.1;lr>
Max-Forwards: 70
From: <sip:651@172.22.4.1>;tag=Ei47LA3H9a-SKnxXaCHDZ6dp6-8VBwd.
To: <sip:651@172.22.4.1>
Call-ID: kqlFE9rtYjEE.6lVnd-DWlLMs6FFCgEY
CSeq: 8754 REGISTER
User-Agent: Siphon PjSip v1.0.2-trunk/arm-apple-darwin9
Contact: <sip:651@10.0.1.19:5060>
Expires: 1800
Content-Length:  0

172.22.4.1 - PBX
172.22.2.1 - VPN IP
10.0.1.19 - Wifi IP

Being able to define an IP address manually would fix this up (this has been 
tested
in my setup with a different app).

Original comment by zirop...@gmail.com on 8 Jul 2009 at 1:55

GoogleCodeExporter commented 9 years ago
Forgot to include versions;

Siphon 2.0.8
iPhone OS 3.0

Original comment by zirop...@gmail.com on 8 Jul 2009 at 1:57

GoogleCodeExporter commented 9 years ago
So, there will be no solution for VOIP over VPN? Or some time?...

Original comment by shur...@gmail.com on 22 Jul 2009 at 6:41

GoogleCodeExporter commented 9 years ago
I just release a 2.2 rc1 version. I add two settings :
    * public ip addr : Application can specify any address or hostname for this
field, for example it can point to one of the interface address in the system, 
or it
can point to the public address of a NAT router where port mappings have been
configured for the application.
    * bound ip addr : This option SHOULD only be used to selectively bind the socket
to particular interface (instead of 0.0.0.0), and SHOULD NOT be used to set the
published address of a transport (the public ip addr field should be used for 
that
purpose).

Logically, you just should define bound ip addr with iphone IP on your vpn.
Perhaps you will need to define proxy in advanced settings.
Don't forget to enable 3G/edge options because iPhone OS thinks vpn is always 
WWAN.

I'd like to give us which settings do you use (public and/or bound address, 
proxy...)
and of course if it works or not ;-)

If the tests are positive, I will replace this two settings by switch to enable 
or
not vpn and define automatically these two parameters.

Thx

Original comment by samuelv0...@gmail.com on 5 Nov 2009 at 7:49

GoogleCodeExporter commented 9 years ago
2.2 rc2 is available on http://code.google.com/p/siphon/downloads/list

Original comment by samuelv0...@gmail.com on 7 Nov 2009 at 11:50

GoogleCodeExporter commented 9 years ago
I tested new Siphon-2.2.0-rc4.deb. I used my VPN IP as Bound IP and it did not 
work,
up until I specified my DNS server IP, after that I could register to my VOIP 
server
through VPN and make calls over 3G and Wi-Fi. Through 3G though there is echo 
and
noticeable delay, using Wi-Fi people complained about echo on the other side, 
but
sound quality was a lot better.

I’m using iPhone 3g OS 3.0 and Siphon-2.2.0-rc4.deb.

samuelv0304 thank you, for your time, and your great work.

Original comment by shur...@gmail.com on 4 Dec 2009 at 6:40