Does anybody have experience at using Sofia-Sip?
I'm trying to answer incoming calls. I managed it to create a session, but no media stream is established...
Does anybody have a simple example about this? I've already looked at the CLI client of sofia-sip and at telepathy-rakia, which were both quite complicated.
I'm not too familiar with media yet. I'd like to answer an incoming call, and get the G.711 payload to further process it.
Any help is appreciated
Found it out on my own, it's written there deep in the specifications of nua library.
You have to send the information about what media you support at latest in the 200 OK response to the calling party.
I can provide source code here if someone is interested. Otherwise I'm not making the effort to clean it for this purpose.
Related
I have a SOAP endpoint and will be having more than 1000 request messages which have different values for the request parameters but same operation of SOAP Message. I want to execute them in a sequence if the previous request that got triggered was 200 OK?
Is there any way to do this without JAVA program? Is there any client that will help me?
I assume you already have some sort of loop in your test case that reads your variable properties from a file or perhaps Excel and feeds them into your SOAP request. Ready API/soapUI Pro gives you this functionality, but for open source soapUI you'll have to write your own Groovy test steps.
Then, you can use a soapUI Compliance, Status and Standards assertion to check you've received a valid or invalid HTTP status code and react accordingly.
Is there any way to do this without JAVA program? Is there any client
that will help me?
After re-reading the question, it seems to me you're not yet using SoapUI, though it has been tagged as a SoapUI question. It happens quite a lot on here where people are askign general SOAP questions, but tag SoapUI. BTW, Craig's answer should be accepted if you are using SoapUI.
In terms of options, you have lots....
Code. You can use Python, C#, Java, Javascript, etc. etc. to create a program that will call your endpoint. Any programming language will have the libraries to call web services. So, if you do know a language, you could use that.
SoapUI. There is a free version, which will allow you to call web services. In your question, you want to call the same service over and over with different parameters. In testing speak, this is a data-driven test. These can be achieved in the free SoapUI, but it is a fiddle. However, the full-licensed version offers data-driven tests out of the box. I use these all the time. Very easy to set-up. If you use SoapUI, then Craig's answer about using Assertions would stop the test if you got a status code other than a 200.
Postman. this is another free tool, which I have used a little. I haven't tried data-driven tests, but I'm sure the docs will tell you if they're supported. If you try Postman, then you ought to look at Danny Dainton's excellent tutorial on GitHub
JMeter. Another free tool. This is primarily used for performance and load testing, but would still meet your needs.
I have google'd and searched around for a solution but I can't find much.
I need to send a HTTP POST request from objective-c to my couchdb.
What I need to know is how to add an image to the request in objective-c, and preferably a link to a library/framework which simplifies the while process of sending requests from iOS.
I Have found a couple of frameworks, but one was no longer in development and the other had not been updated in a year.
Anyone have any experience on this?
I've been working on something similar, I use the AFNetworking library to post to a php script
which then puts it into a Mysql database.
It should be much simpler in your case because you can post directly to couchDB
The AFNetworking library has examples that should do just what you need.
https://github.com/AFNetworking/AFNetworking/wiki/Getting-Started-with-AFNetworking
I'm trying to implement a little server service in order to upload files via web browser to my iOS app. An example of this feature is implemented in the following app:
http://itunes.apple.com/uy/app/files-document-reader/id294150896?mt=8
seems to be very simple, but don't know where to start.
I've been also looking for clues or some sample codes about this kind of implementation with no success, but maybe just don't know how to google the problem correctly.
Any clues, guides, links, etc...?
Thanks in advance
Here is a wrapper to embed the moongoose http server in your iphone application. Another simple http server is here. The latter one is the one I used in my application, recently.
EDIT:
There's at least a third one, too.
I'm creating an iPhone app and I want the app to be able to send some information in the form of JSON string over a web server/app (I really don't know) and display it in a web page or save it to a file. I know how to send the request from the iPhone, the problem is I don't have a clue on how to implement the server side and integrate it with a web page that can respond to the HTTP post I'm trying to send to it. I don't need any specific details so if you could only point me to the right direction e.g. reading material, websites, key technologies for this.
Thank you for your help
The general term for using JSON and HTTP is RESTful (actually that's not quite true, as REST doesn't technically mean JSON [though often it does!] and REST also includes other things, but it's still a good search term).
Here's a general set of links about the right kind of areas.
For python:
http://www.freenet.org.nz/dojo/pyjson/
For C#:
http://www.techbubbles.com/wcf/rest-based-wcf-service-in-aspnet-35/
For Java:
http://www.oracle.com/technetwork/articles/javase/index-137171.html
That should be enough to get you started; googling based on the various terms will throw up more articles. If you find any really good ones do add to your own answer!
I'm working with a third-party vendor who unfortunately requires that we set up a SOAP server to handle requests from them. I'm having some trouble finding the best way to go about this. One limitation I'm imposing is that it runs as a mod_perl2 handler. After some searching I've found that the best way may be to use XML::Compile and its SOAP classes but I'm having a tough time wrapping my head around it. Part of the problem is my limited understanding of SOAP and the documentation for most modules seems a bit cryptic to me.
So, can anyone give me some pointers, sample code, anything?
EDIT: we were also given a WSDL file to use, and this was not compatible with SOAP::WSDL ("unsupported global type found in ...
Looks like a rpc/literal WSDL, which is not supported by SOAP::WSDL)
EDIT: XML::Compile::SOAP complains "RPC encoded not supported by this version" when using the WSDL with XML::Compile::WSDL11. Can/should I not worry about the WSDL file?
If you have a limited understanding of SOAP, starting reading about SOAP before you worry about implementing it. There are lots of SOAP tutorials out there. Most of the documentation probably seems cryptic to you because you don't already know SOAP.
It's not that tricky of a process. It's not that different than any other web programming when it comes to the big steps:
You get a SOAP request, which is some XML.
You pull apart the XML to figure out what to do.
You put together some XML to send as a response.
You return the response.
XML::Compile will take care of most of the details for you.
Before you start writing your own server, you might consider writing a client for an existing SOAP server just to give yourself some practice.
I found two modules that can help you make soap server, but I never use its
https://metacpan.org/pod/XML::Compile::SOAP::Daemon
https://metacpan.org/pod/SOAP::WSDL::Server