PJSIP Calls fail while calling a client over a different network - ios

I have build a PJSIP app for VoIP.
Which works well when trying to connect a client which is using the same network.
I am maintaining the connection over TLS.
I have successfully configured RTPEnginge
And using Kamailio 4.3
I have tried all the methods on the PJSIP help site for getting through NAT.
I am able to connect the call with a client but unable to hear any audio.
Please help or suggest a way to solve this issue.
Any help or guidance is much appreciated.

The exact reason could certainly be confirmed only by getting much more informations.
However, from your description, you may be simply missing a RTP relay: kamailio usually requires rtpproxy to be installed.
You will also need to configure kamailio (kamailio.cfg) to use rtpproxy.
Here is the documentation for kamailio's rtpproxy module.

Related

how to sip registration in server for an ios app

i am creating an app for internet calling using VoIP . But have no idea how to send SIP registration to sever to stabilise connection between to devices .
and any suggestions for the library
You can use Linphone library for that purpose. Although be prepared that documentation is not ideal and you will need to figure some of the things by yourself. You however can inspire by this tutorial project

iOS Thrift SSL Connection

I have been using Thrift for data connections to server in my iOS app. I would now like to secure it using SSL but it appears the libraries only have a Java solution for TSSLTransportFactory.
Does anybody have a solution for this for iOS?
Ted
There are two JIRA tickets here and here, both with a patch attached which is not so old and should do it. We would appreciate your feedback wether or not you were able to use it successfully, both here at SO and in JIRA.

Using CaptiveNetwork to authenticate wifi network

I am trying to use the CaptiveNetwork api to have my app authenticate with known wifi networks. I am able to register my app with CNSetSupportedSSIDs, which prevents the os from displaying a web sheet. However, there is little documentation, indeed little information anywhere, it seems, on how my app is notified once a connection is established to a registered network. Perhaps I am missing something?
If anyone has any advice on where to look, or knows of apps that perform wifi authentication, so I can examine their use-case, or spots something that I've obviously missed, do let me know.
Thanks.

Asterisk registration programmatically

I am trying to implement Asterisk server for VOIP in an iPhone application.
I am able to register the user through manually, but I wanted to do the same thing programmatically. I am not sure but there might be some idea like sending through an HTTP request.
If you have any idea or pointer please share with me.
Thanks
I think the thing that you are looking for is called SIP client. You install the client on the iPhone and it will register to your SIP server (let it be Asterix or anything else). Then you can make VoIP calls between the clients registered contemporary, send instant messages, exchange files or even implement some custom protocol over SIP to exchange other type of data.
There are a lot of SIP client applications for iPhone, and even a couple of SIP stacks that is a framework that allows you to build your own SIP client application through its API calls, so you will have full control on everything. One of the most mature of these with iPhone support is pjsip. Check out their web site to see whether this is what you are looking for.
it is hard because is necessary modify the dial plan in order to add a sip account. but you can program a web service that read a text file with the extensions from your mobile.
it is nto fully clear from your desription what exactly you want, but probably this one will help
http://www.voip-info.org/wiki/view/Asterisk+auto-dial+out

Blackberry application to establish an http connection

i have been working on developing an blackberry application. as per now i want the application to connect to a local server on my network and fetch a file from that machine. i have been using the library given by a named blackberry developer Mr.peter strange....here is the link for the same Http connection through BIS-B
my requirement would be setting up connection to the local server using any transport mode but it should be able to render the text downloaded.
i tried using the demos provided by blackberry samples as it comes with the plugin for eclipse the http demo from those samples shows only trying to setup an http connection string and the networkapidemo sample shows diffrent http codes when the url is entered as desired.i am running all the applications on the simulator. i havent tried running any of my apps on the hardware
may i know why this problem arises of http codes....ill also want to know guidelines about how to set a simple http connection just to download a file(text file) from a local server.
I have tried many forums too. if anybody would have a look at it i would post it here.
Only a simple connection is becoming a headache!
anyways...waiting for replies..
thanx in advance guys :)
It does not matter whether you want to communicate with local or remote server.
1) See the API docs on HttpConnection. There are sample code in there.
2) Unfortunatelly, on BB you should be aware of Network Transports. Check this thread to get all info you need on Network Transports.
UPDATE:
The second point explains an approach that will work on any OS. If you need an OS 5+ only approach, then check the ConnectionFactory API. ConnectionFactory usage sapmles.

Resources