Can't call into local network

Hello!

I try to call MicroSIP on a Windows machine inside an OpenVPN connected router from Zoiper on an Android mobile phone connected to the VPN.

I can see both MicroSIP and Zoiper:

/SIP/Registry/101                                 : 45.143.223.199:5066:1800:101:sip:101@45.143.223.199:5066
/SIP/Registry/6002                                : 109.228.177.224:5061:3600:6002:sip:6002@109.228.177.224:5061;transport=udp
/pbx/UUID                                         : 7dc4b861-6374-47e3-a0c1-54e7e7ffe362
/registrar/contact/snus;@22b1f901df94483cbcf687f789325232: {"via_addr":"10.8.0.3","qualify_timeout":"3.000000","call_id":"GER5GW8uJDrdjBox0l6izA..","reg_server":"","prune_on_boot":"no","path":"","endpoint":"snus","via_port":"38190","authenticate_qualify":"no","uri":"sip:snus@10.8.0.3:52529;transport=TLS;rinstance=7b6868d81f18dd39","qualify_frequency":"0","user_agent":"Zoiper v2.10.20.11","expiration_time":"1773116835","outbound_proxy":""}
/registrar/contact/tomte;@ecd2457e126e21907dc26d252b1c52a1: {"via_addr":"192.168.90.176","qualify_timeout":"3.000000","call_id":"02a382e459034f75bbf25d567501c535","reg_server":"","prune_on_boot":"no","path":"","endpoint":"tomte","via_port":"50931","authenticate_qualify":"no","uri":"sip:tomte@192.168.90.176:50931;transport=TLS;ob","qualify_frequency":"0","user_agent":"MicroSIP/3.22.3","expiration_time":"1773116398","outbound_proxy":""}
5 results found.
mustafejen*CLI>


I can call the Zoiper instance from MicroSIP, but things won't work when I try to call the other way.

I get some info:
https://pastebin.com/9DwCgF1D
from Asterisk , but I can't understand it.

I can ping the MicroSIP machine from my Zoiper mobile, and my Zoiper mobile from the MicroSIP machine.

Regards,

Per Gunnarsson

SOLVED :slight_smile:

I guess it was a NAT issue. Both Asterisk documentation and MicroSIP troubleshooting webpage suggested that I added “rtp_symmetric”, “rewrite_contact” and “force_rport” to my pjsip configuration. When I figured out, I noticed they were already commented out from last time I got things working, I just had to uncomment them and set them to “=true” to get things working.

I think it should be added that it’s in the endpoint section I added them.

Now from my pjsip_wizard.conf:

``[redacted]\

type = wizard
accepts_auth = yes
accepts_registrations = yes
has_phoneprov = no
;transport = transport-tls
transport = transport-tls-nat
;has hint = yes
;hint_exten = 1000
;hint_context = from-internal
inbound_auth/username = redacted
inbound_auth/password = redacted password
endpoint/allow = opus,ulaw,gsm
;endpoint/allow = opus,gsm,ulaw
endpoint/context = from-internal
endpoint/media_encryption = sdes
;endpoint/remove_existing = yes
;phoneprov/MAC = 001122aa4455
;phoneprov/PROFILE = profile1
aor/max_contacts = 2
;endpoint/media_address=...
;endpoint/media_address=...
;endpoint/media_address=...
endpoint/rtp_symmetric=true
endpoint/force_rport=true
;endpoint/direct_media=true
endpoint/rewrite_contact=true
;rtp_symmetric=true
;force_rport=true
;direct_media=true
;rewrite_contact=true``

Avoiding typos also matter.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.