| Paging for callback using telephone access number 
 Target: ATCOM IP-01
 
 A member ABC would like to call back after their relatives who have made a call to a Shenzhen (SZ) access number 0755-88884444. It is supposed that
 
 1) Mother's telephone number: 0751-12345678
 2) Sister's telephone number: 0752-22334455
 3) ABC's member's iptel account = abc_iptel
 
 The calling arrangement is:
 
 a)Whenever ABC Mother's telephone number 0751-12345678 calls the SZ access number, IP-01 will send an iptel call to the member ABC with the callerID "Mother" <1111>.
 
 b)Whenever ABC Sister's telephone number 0752-22334455 calls the SZ access number, IP-01 will send an iptel call to the member ABC with the callerID "Sister" <2222>.
 
 1) Create two files in the directory /persistent/etc as follows:
 
 The file: mother.call contains
 
 Channel: SIP/trunk_2/abc_iptel
 CallerID: "Mother" <1111>
 Application: Playback
 Data: hello-world
 WaitTime: 30
 
 
 The file: sister.call contains
 
 Channel: SIP/trunk_2/abc_iptel
 CallerID: "Sister" <2222>
 Application: Playback
 Data: hello-world
 WaitTime: 30
 
 The PSTN's IVR is
 voicemenu-custom-15 is PSTN-to-VoIP IVR containing複製代碼include=voicemenus
include=default
exten=s,1,NoOp(SZ IVR)
exten=s,n,GotoIf($[${CALLERID(num)} = 075112345678]?voicemenu-custom-15|s|1)
exten=s,n,GotoIf($[${CALLERID(num)} = 075222334455]?voicemenu-custom-15|s|1)
exten=s,n,Answer()
exten=s,n,Wait(1)
exten=s,n,Background(vm-enter-num-to-call)
exten=s,n,WaitExten
exten=s,n,Playback(vm-goodbye)
exten=s,n,Hangup
exten=i,1,Playback(pbx-invalid)
exten=i,2,Goto(s,1)
exten=t,1,Playback(vm-goodbye)
exten=t,2,n,Hangup
Remarks:複製代碼exten=s,1,NoOp(PSTN-to-VoIP)
exten=s,n,GotoIf($[${CALLERID(num)} = 075112345678]?ABC-mother-call)
exten=s,n,GotoIf($[${CALLERID(num)} = 075222334455]?ABC-sister-call)
exten=s,n(ABC-mother-call),System(cp /persistent/etc/mother.call /var/spool/asterisk/outgoing)
exten=s,n,Goto(waiting)
exten=s,n(ABC-sister-call),System(cp /persistent/etc/sister.call /var/spool/asterisk/outgoing)
exten=s,n,Goto(waiting)
exten=s,n(waiting),Wait(70)
exten=s,n,hangup()
 1) Since you are not able to hang up any incoming PSTN calls, you have to wait for the disconnection from the PSTN network operator.
 
 2) If you do not want to wait, IP-01 has to answer the incoming PSTN call and then hangs up at your expense of 1 minute telephone charge.
 
 Should you have any questions, please let me know.
 
 
 YH
 |