Asterisk Dial() - passing URL to softphone - asterisk

According to https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_Dial the Dial() application is capable of sending an URL to the extension being called. I suppose there are softphones implementing this, maybe popping up a browser pointing to the given URL - perfect to open up automatically a CRM customer page when receiving a call by identifying his caller id.
Do you know of any softphone implementing this functionality?

Doc have following line:
if the channel driver supports it
For sip protocol will be issued SIP MESSAGE with url. So phone have support messaging via sip.
For jabber protocol will be generated jabber message.

Related

Making SIP Call immediately get 403 after ringing

I am trying to make a phonecall using sipML5 library. The apps can successfully register into the SIP server.
How ever when i try to make a phone call, it says 403 Forbidden soon after ringing.
Here is some screenshot
Does anyone know why i am getting 403 Forbidden ? I can fully authenticate and register my account prior dialing any numbers. But this only happens soon after i dial another SIP number/account.
sipML5 is a SIP client. You should try to connect with a softphone using those credentials and trying to dial the same account/number.
You should see more details on the SIP server side of things if you have access to that.

Is it possible to use AJAX to send mail using the 'Outlook Anywhere' feature?

The Outlook Anywhere Microsoft Exchange Proxy Settings dialog includes the following:
Microsoft Outlook can communicate with Microsoft Exchange over the
internet by nesting Remote Procedure Calls (RPC) within HTTP packets.
Select the protocol and the identity verification method that you want
to use. If you don't know which options to select, contact your
Exchange Administrator.
So I am curious if it would be possible to set up a web app that uses my corporate email to send and receive mail? Seems like I should be able to since it is just using HTTP.
You really would not want to code against RPC over HTTP (which is not documented) or MAPI-over-HTTP (which is also not documented).
What you can do is use Exchange Web Services API (which is pure HTTP) - see http://msdn.microsoft.com/en-us/library/office/dd877045(v=exchg.140).aspx

How to perform call with Asterisk and Skype

I am a newbie for Asterisk, so please be patient.
I would like to perform phone call originating by my application via Asterisk. I was recommended to use skype connection to terminate the call.
So, I installed AsteriskNow on VM with CentOs, created Skype Business account, got SIP ID and configured sip.conf and extensions.conf and explained here
http://forum.skype.com/index.php?showtopic=487451
Then I restarted asterisk service and checked log file. I did not see any error messages, so I hope that the configuration is accepted.
Now the question is: what do I have to do now? I want Asterisk to dial some phone number. It should arrive to skype that should forward the call to phone via VoIP gateway.
How can I do this?
Have a look at my answer: Asterisk click to call
You can do similar thing. At first do test with your local VoIP clients. You can probably install 2 SIP soft phones, configure them in sip.conf and using CallFile test if you can make connection between them. If this work, then instead of using Extension: SIP/test1 change it to valid dialable Skype for SIP "number".

How to send REGISTER request periodically from my SIP client to Asterisk server using Asterisk Manager Interface

I am using Asterisk 1.4 server and I have created a desktop client using the Asterisk.NET Library. I am able to log into the AMI (as a manager) using Asterisk.Net, but I cannot find a way to send the REGISTER command using the AMI, to share my client's location information with the server.
I want to know an AMI or a CLI command that can send a REGISTER request to the Asterisk Server.
Thanks
If you're trying to do a sip register you might want to use an actual sip client API.
What's your end goal in doing this?
This is a fundamentally odd thing to be doing - a bit like looking for an API on a web server that lets you send an HTTP request to it. In many ways Asterisk is a voice analogue to a web server - the dialplan is a little like the Apache config directives that send incoming requests to different files, scripts, or services, AMI is rather like its command-line, AGI is similar conceptually to CGI (hint in the name!).
If you want to SIP-REGISTER something with your Asterisk server, just send a SIP REGISTER message with the right options to the Asterisk box's SIP interface. In AGI I suppose you could use the cURL() application to call localhost, but it would be a horrific hack and would probably break things.

Chat Application in ASP.NET

I've to write an Ajax chat web application in ASP.NET for a friend, and I've a question: if client1 sends a message to client2, how should the application send the message to client2? Is there a better way than sending requests to the server, "asking" if there are new messages? Is it possible to directly send the message to the client?
Best thing you can do is use a Persistent HTTP Connection. The way google does with Google Talk on their GMAIL website.
Remember that HTTP is a stateless protocol and that each transaction is made from the client to the server.
The server can use sessions to determine if this client is "known" but as for sending information back to the client using plain old HTTP I think that is impossible (I mean from a server initiated connection, not a response to the client)
You would need to use Javascript to poll the server for information.
If you want it the other way around, you could possibly use Java or Flash but then you also need to think about NAT tunneling, proxy servers and any other weird setups that the clients could be using.
No. I don't think the server can send message to client's browser.
Here is how I implement chat application:
client1 post message via Ajax to server
server save it to repository (I'm using singleton object for this case)
client2 get the message from repository
mark the message as read
I will save chat logs to database once the chat session closed or expired.

Resources