I'm trying to make a call between 2 wireless networks from my iphone using pjsua lib. i'm calling from my iphone to an android running csipsimple. everything worked great while both devices were on the same network. but i can't make the call when the devices are on different networks. i guess i'm having problems with the nat traversal. so i tried to find the nat type using the built in methods in pjsua - "pjsua_detect_nat_type" and the callback method "on_nat_detect" but i keep getting - "Error detecting NAT: Invalid STUN server or server not configured". than i tried setting the stun server with "stun_srv" but it still won't work. can anybody help me with this please? i'm stuck on these issue for the last couple of days and am fairly new to this library so any assistance will be appreciated... thanks in advance
making a call between two different wireless networks with pjsip on ios
665 Views Asked by user2717267 At
2
There are 2 best solutions below
1
jcm
On
About your initial problem, you're right, you should have some translation mechanism that should be interfering in your scenario.
About psip NAT detection mechanims, please note, that, as documentation states, you should have access to a STUN server. Do you've a STUN server in your network? If so, do you have SRV resolution in order to allow pjsip to get it's address?
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in IPHONE
- How to control the volume of an iPhone programmatically in objective-c
- my website crash on safari The site sometimes crashes and I can't recover the crash
- Postal Framework crash in iPhone but runs successfully in simulator
- Xcode 15 building failure when using iphone 15 as simulator, using ios 17
- Images uploaded via Active Storage not displaying in Active Admin or on certain devices
- Any problem with creating provisioning profile with old Iphone?
- Does anyone know how to make iPad layout the same as iPhone's? Size wise the text and overall layout get's smaller when I run the app on the iPad
- Keyboard not appearing when connecting smart card reader to iPhones with type-c port. i.e. iPhone 15/ 15 pro
- Access the list of SIM mobile numbers installed in the iPhone
- Can we produce haptics and record from microphone the haptic sound at the same time on iOS?
- SwiftUI's localized string do not load from main bundle despite using the main bundle identifier (an xcode bug?)
- Cordova iOS only app upload through transport requires WKWatchKitApp
- Amazon s3 video is not played on Iphone
- build getting failed for ios xcode build -flutter app
- "Error when Importing 'mysdk' into iOS Demo App: dyld Library not loaded: @rpath/MQTTClient.framework/MQTTClient"
Related Questions in NAT
- Issue with K6 Operator and Cloud NAT connection count during stress testing
- AWS: Putting together ELB, NAT Gateway and Public Subnet - Not working
- When iptables is used for reverse proxy, how does the proxy server know the client IP address after the real-server replies messages?
- How to make local packets go through nat / prerouting (they go directly to filter / input)
- Usage of Multiple Egress IPs in Google Cloud NAT Setup
- ICMP request not been forwarded by NAT instance
- NAT KeepAlive Package in Android
- Getting internet Access to Ec2 instance in a public subnet without having a public IPv4
- AWS Lambda init phase timeout in VPC
- Node Application not writing to the correct griddb cluster
- P2P Connection Issue with NAT Traversal on Mobile Devices
- Why is Azure NAT not affecting my effective routes from my Azure routing table?
- Why is my device marked as unknown device when using "Mono.Nat.NatUtility.StartDiscovery()"?
- How to perform NAT hole punching on an additional client mid-session?
- Tethering - Sharing mobile network to LAN
Related Questions in PJSIP
- bad rtp pt 101 (expecting 8)
- How to run pjsua with null-video and record the incoming video into a file without opening any camera and display device?
- Configuring One-Way Video Stream in PJSIP for Doorbell Video Call
- Swift PJ-SIP Integration: Issue Displaying Video Stream in UIView
- Android PJSIP account info
- How to send an audio file in a call
- How to create URL with phone number for SIP call on pjsua util?
- Replace Nutone Door System with SIP
- Inconsistent Crash with PJSIP 2.13 in iOS App on Launch: "pjsua_0 (14): signal SIGABRT at pj_mutex_lock"
- PJSUA2 onFrameReceived frame handling question
- Sip call library options for react native app developer?
- Expected behavior on IP change for SIP when call is ringing
- Pjsip C# library AudioMediaPlayer.startTransmit problem
- Simple PJSUA2 project fails with 'alsa_dev.c ...Unable to set a channel count of 1 for playback device' while attempting to open sound device
- How to fatch local preview video using PJSIP
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Please go through this demo would definitely help you out.
https://code.google.com/p/idoubs/