返回列表 發帖
本帖最後由 Qnewbie 於 2011-6-12 15:32 編輯

Emmm, who has integrated IP01 with web callback(both legs are outbound calls)?

TOP

Callback is triggered by data sent from web page.
Detailed example:
http://nerdvittles.com/index.php?p=143

TOP

回復  Qnewbie

I have not tried but looking at the website, I believe it is workable in the linux + ...
ckleea 發表於 2011-6-14 05:58



    To be (IP01) or not to be (IP01), that is the question.

For IP01, it might be a bit difficult to integrate website etc. I try with sipsorcery+IP01. Free sipsorcery account allows only one provider(trunk), i.e., my IP01. The problem comes as IP01 doesn't allow two channels with the same extensions : Has anyone figured out how to reach two legs with the same extension?

Integration of web callback with asterisk seems easy with PC.

TOP

The dialplan at the IP01 is nothing but usual one including the following outbound rule:
  1. exten=_0086xxx.,1,Macro(trunkdial-failover-0.3,${SIP1}/${EXTEN:0},${SIP2}/${EXTEN:0},SIP1,SIP2,${CALLERID(num)},${CALLERID(num)})
複製代碼
which includes fail-over(actually both trunks should be used in case of callback).

As for the sipsorcery side, it is:
  1. num = req.URI.user.to_s
  2. if num.index("\*")!=nil then
  3.    pos=num.index(/\*/)
  4.    caller=num[0,pos]
  5.    callto=num[pos+1,80]
  6.    sys.Callback("#{caller}@myIP01","#{callee}@myIP01")
  7. end
複製代碼
which parses the caller&callee number with the help of the field separator *.

At web page, just send the following message to sipsorcery:
  1. https://www.sipsorcery.com/callmanager.svc/webcallback?user=username&number=$number
複製代碼
where $number=$callernumber*$calleenumber.

Reference: http://www.sipsorcery.com/help/webcallback.html

TOP

返回列表