返回列表 發帖
I want an access number just to initiate callback

TOP

回復 4# 角色


    No, it is an access number in mainland China.

TOP

回復 7# 角色


Yes, you are correct.

The main task is following: as soon as my parent(one landline and one mobile) call the access number, wait one or two second, hangup, then send the number to my asterisk. That's all for your asterisk.

I call my parent's number in my asterisk.

TOP

Emm, what about phpagi.

TOP

本帖最後由 Qnewbie 於 2010-8-16 22:51 編輯

回復 9# 角色


    A dirty solution would be achieved by modifying the callback module(http://blog.gramels.info/blog/ar ... erisk-callback.html)

Main idea is to call different number according to incoming caller ID. This call initiates the real callback at another asterisk server.

[checkNum]
exten => s,1,NoOp(Incoming call from # ${CALLERID(num)})

;landline,call ipteluser1
exten => s,2,GotoIf($["${CALLERID(num)}"!= "075512345678"]?6)   
exten => s,3,system(cp /var/spool/asterisk/skelett.call /var/spool/asterisk/skelett.tmp.call)
exten => s,4,system(echo 'Channel: SIP/ipteluser1@iptel' >> /var/spool/asterisk/skelett.tmp.call)
exten => s,5, Goto(sendNote,s,1)

;mobile, call ipteluser2
exten => s,6,GotoIf($["${CALLERID(num)}"!="1380013800"]?10)   
exten => s,7,system(cp /var/spool/asterisk/skelett.call /var/spool/asterisk/skelett.tmp.call)
exten => s,8,system(echo 'Channel: SIP/ipteluser2@iptel' >> /var/spool/asterisk/skelett.tmp.call)
exten => s,9, Goto(sendNote,s,1)

; could be modified after your need
exten => s,10,Dial(SIP/20000,,r)    ; otherwise dial 2000
exten => s,n,Hangup()

[sendNote]
exten => s,1,NoOp(Hangup then callback)
exten => s,2,Hangup()
exten => h,1,NoOp(copy skelett.tmp.call file to /var/spool/asterisk/outgoing)
exten => h,2,system(cp /var/spool/asterisk/skelett.tmp.call /var/spool/asterisk/outgoing)
exten => h,3,Hangup()

TOP

回復 21# 角色


    That's great!

Hangup and call me through iax trunk, possible with SetCallerID command so that I can identify the source of call.
   
What about wap-callback? I think it should work even with 2G phone. Maybe this is another option if PSTN number is not available. For my parent, who are not techo folk, it is mission impossible.

TOP

From the technology point of view, it might be the first time for caller id relay in Asterisk using a call trunk.

What I want to achieve is not only to let my parent to call me but also to call HK(more frequently). Current solution is my parent calls HK and hangs up after the ringtone, then my sister calls my parent. Sometimes it did not work with this approach and the phone bill is constantly over 200CNY and most of time 300CNY per month. That is why I want callback first and let my parent choose the call destination. The fee to call your number is 0.4CNY per minute from my parent's mobile as I can pay ET263 for 0.08CNY, which one would you consider?

TOP

From the posts in this forum, it looks like that IP01 is not stable enough for your purpose. ATOM based asterisk server would be more suitable.

TOP

返回列表