Hi, ? ? I found that I am dealing with a Symmetric network while on 3G. Then I found this:?http://www.pjsip.org/pjnath/docs/html/group__nat__intro.htm Here it says,? "Symmetric behavior NAT devices don't behave uniformly and people have been trying to classify their behavior into different classes. Traditionally NAT devices are classified into Full Cone, Restricted Cone, Port Restricted Cone, and Symmetric types, according to RFC 3489 section 5. A more recent method of classification, as explained by RFC 4787, divides the NAT behavioral types into two attributes: the mapping behavior attribute and the filtering behavior attribute. Each attribute can be one of three types: Endpoint-Independent, Address-Dependent, or Address and Port-Dependent. With this new classification method, a Symmetric NAT actually is an Address and Port-Dependent mapping NAT. Among these types, the Symmetric type is the hardest one to work with. The problem is because the NAT allocates different mapping (of the same internal host) for the communication to the STUN server and the communication to the other (external) hosts, so the IP address/port that is informed by one host to the other is meaningless for the recipient since this is not the actual IP address/port mapping that the NAT device creates. The result is when the recipient host tries to send a packet to this address, the NAT device would drop the packet since it does not recognize the sender of the packet as the "authorized" hosts to send to this address. There are two solutions for this. The first, we could make the client smarter by switching transmission of the media to the source address of the media packets. This would work since normally clients uses a well known trick called symmetric RTP, where they use one socket for both transmitting and receiving RTP/media packets. We also use this mechanism in PJMEDIA media transport. But this solution only works if a client behind a symmetric NAT is not communicating with other client behind either symmetric NAT or port-restricted NAT. The second solution is to use media relay, but as have been mentioned above, relaying is costly, both in terms of bandwidth cost for service provider and additional latency introduced by relaying." Can someone help me in implementing any of these solutions? On Thursday, 27 March 2014 3:02 AM, Yosi Taguri <yosi at taguri.com> wrote: the fact that you enabled stun doesn't mean its actually working. set the logging level to 4 or more and look for stun messages. post the log here. On Wed, Mar 26, 2014 at 11:18 PM, <pjsip-request at lists.pjsip.org> wrote: Send pjsip mailing list submissions to >? ? ? ? pjsip at lists.pjsip.org > >To subscribe or unsubscribe via the World Wide Web, visit >? ? ? ? http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >or, via email, send a message with subject or body 'help' to >? ? ? ? pjsip-request at lists.pjsip.org > >You can reach the person managing the list at >? ? ? ? pjsip-owner at lists.pjsip.org > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of pjsip digest..." > > >Today's Topics: > >? ?1. iOS issues with STUN and incoming audio (jyotirmoy banerjee) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Thu, 27 Mar 2014 05:18:08 +0800 (SGT) >From: jyotirmoy banerjee <iamjyotirmoy@xxxxxxxxxxx> >To: "pjsip at lists.pjsip.org" <pjsip at lists.pjsip.org> >Subject: iOS issues with STUN and incoming audio >Message-ID: >? ? ? ? <1395868688.80554.YahooMailNeo at web193202.mail.sg3.yahoo.com> >Content-Type: text/plain; charset="utf-8" > >Hi, >I am facing audio issues while trying to use PjSip in an iOS app. >Issue 1. If I enable STUN I observe that audio works perfectly over WiFi, but on a 3G network there is absolutely no audio. >Issue 2. If I disable STUN, it works over WiFi. But on 3G I only receive audio during outgoing calls but on an incoming call there is absolutely no audio. >I have tried disabling VAD as suggested inhttp://trac.pjsip.org/repos/wiki/Audio_Problems/Getting_Around_Nat, but no improvements I am using the latest build of pjsip created out of the trunk. And my code is more or less based on the siphon app. >Any help in this regard will be much appreciated. > >Regards >Jyotirmoy >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140327/e72670f1/attachment.html> > >------------------------------ > >Subject: Digest Footer > >_______________________________________________ >pjsip mailing list >pjsip at lists.pjsip.org >http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > >------------------------------ > >End of pjsip Digest, Vol 79, Issue 103 >************************************** > -- Yosi Taguri | Founder & CTO | Yalo |?http://yaloapp.com |? _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip at lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140328/09575896/attachment-0001.html>