Menu

#1015 Connect to sip server over vpn, registers with wrong address

Duplicate
nobody
None
Medium
Defect
2011-06-03
2011-06-02
Anonymous
No

Originally created by: andrew.h...@gmail.com

What steps will reproduce the problem?
1. Asterisk Server in VPN, Phone connected to that vpn
2. Setup account to connect to the asterisk server at a VPN ip
3. CSipsimple registers with phone's "public" (but it's not always - this is the problem) IP, instead of its vpn IP

What version of the product are you using? On what operating system?
[r898], tried various previous versions as well, all same behaviour, Cyanogenmod 7.0.3

Please provide any additional information below.
It seems this has been mentioned before, but is it fixed? Sometimes it seems to register with the OpenVPN IP, but not usually, and not when I really need it to. This is quite a serious bug, as it makes it impossible to place calls at most hotspot locations as they tend to give out private IP addresses. Of course when you register with that private IP address, the server can never get any packets back to you, so it all fails.

Related

Commit: [r898]
Tickets: #390

Discussion

  • Anonymous

    Anonymous - 2011-06-02

    Originally posted by: andrew.h...@gmail.com

    I have also tried using "force contact" - this makes it register to asterisk with the correct IP, but I cannot call into csipsimple - I'm guessing it's listening on the wrong interface still.

    It looks like there is a way to tell pjsip what interface you want to bind to... http://comments.gmane.org/gmane.comp.voip.pjsip/5842

     
  • Anonymous

    Anonymous - 2011-06-03

    Originally posted by: r3gis...@gmail.com

    Mmmm, normally pjsip listen on all interfaces by default (0.0.0.0).
    However, since csipsimple never notify (yet -- issue 390), about the fact VPN interface is up, I fear that pjsip doesn't know about the fact the VPN interface is there. (and that's probably the problem you have).

    What you could test to confirm my guess is correct, is, once connected to VPN, to go in Option and press back (it restarts the entiere pjsip stack and pjsip will reconnect sip server).

    Normally pjsip, once connection (and route) are correct should find the correct way to connect your server. In fact, the way it's done in pjsip is enough agnostic about interfaces to get rid of any configuration. (it just open a socket to the server and deduce from that socket local binding what is the local ip address as used to contact the remote server).

    Mergedinto: 390
    Status: Duplicate

     

    Related

    Tickets: #390


Log in to post a comment.