Need help setting up a basic Web Callback dialplan with SIP

Getting started with the SIP Sorcery
Post Reply
qwerty
Posts: 2
Joined: Sat Oct 08, 2011 4:49 pm

Need help setting up a basic Web Callback dialplan with SIP

Post by qwerty » Sat Oct 08, 2011 6:41 pm

I need help from one of you experts out there for setting up a very basic web callback service on SIPsorcery. I am using Freephoneline.ca as my SIP provider and wanted to setup web callback on my iPhone using an app called Groundwire. Groundwire accepts web callback settings (callback URLs and HTTP POST or SOAP APIs).

At this point, my SIP provider is already setup with SIPsorcery. And this is what I know so far:

My dailplan must look like this.....
sys.Log("webcallback dialplan starting...callback number=#{req.URI.user}")
sys.Callback("username@local", "#{req.URI.user}@provider")
SO WHAT PORTION OF THIS CODE DO I NEED TO CUSTOMIZE?????

The Web Callback URL to be used must look like this: "http://www.sipsorcery.com/callmanager.s ... er=1234567".
AGAIN, WHAT DO I CHANGE IN THIS URL FOR IT TO FUNCTION WITH MY ACCOUNT????

Thanks for helping a newbe...

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Need help setting up a basic Web Callback dialplan with

Post by Aaron » Sun Oct 09, 2011 11:03 am

On the line below change "username" to your own SIPSorcery username and "provider" to the name of the SIP provider you created to place the callbacks through.

sys.Callback("username@local", "#{req.URI.user}@provider")

qwerty
Posts: 2
Joined: Sat Oct 08, 2011 4:49 pm

Re: Need help setting up a basic Web Callback dialplan with

Post by qwerty » Mon Oct 10, 2011 8:52 pm

Thanks for the help Aaron but that doesn't work. With a lot of testing, this is what ended up working for me :

sys.Log("webcallback dialplan startting to local...callback number=#{req.URI.user}")
sys.Callback("MY_CALLBACK_NUMBER_HERE@MY_PROVIDER_NAME_HERE", "#{req.URI.user}@MY_PROVIDER_NAME_HERE")

and,

"http://www.sipsorcery.com/callmanager.s ... _CALL_HERE".


Works great every time! Hope this helps someone else....

Now, does anyone know how to integrate the HTTP url with the Groundwire app (iPhone) ????? I haven't found a way to make it work yet.

pavel.ismailov
Posts: 1
Joined: Tue Oct 25, 2011 1:19 pm

Re: Need help setting up a basic Web Callback dialplan with

Post by pavel.ismailov » Tue Oct 25, 2011 1:24 pm

Hello!

Please check http://www.flashphoner.com
This is RTMP-SIP server for making web calls from the browser to phones
It have built-in FlashPhone and JavaScript Phone

Functions:
- Audio - Speex, g.711, g.729
- Video - h.263, h.264
- SIP - calls, transfer, hold, DTMF, IM chat
- API - ActionScript, JavaScript
- Open source client
- Open source server java app

Thanks,
Pavel

Post Reply