返回列表 發帖

Paging for callback using telephone access number

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
  1. include=voicemenus
  2. include=default
  3. exten=s,1,NoOp(SZ IVR)
  4. exten=s,n,GotoIf($[${CALLERID(num)} = 075112345678]?voicemenu-custom-15|s|1)
  5. exten=s,n,GotoIf($[${CALLERID(num)} = 075222334455]?voicemenu-custom-15|s|1)
  6. exten=s,n,Answer()
  7. exten=s,n,Wait(1)
  8. exten=s,n,Background(vm-enter-num-to-call)
  9. exten=s,n,WaitExten
  10. exten=s,n,Playback(vm-goodbye)
  11. exten=s,n,Hangup
  12. exten=i,1,Playback(pbx-invalid)
  13. exten=i,2,Goto(s,1)
  14. exten=t,1,Playback(vm-goodbye)
  15. exten=t,2,n,Hangup
複製代碼
voicemenu-custom-15 is PSTN-to-VoIP IVR containing
  1. exten=s,1,NoOp(PSTN-to-VoIP)
  2. exten=s,n,GotoIf($[${CALLERID(num)} = 075112345678]?ABC-mother-call)
  3. exten=s,n,GotoIf($[${CALLERID(num)} = 075222334455]?ABC-sister-call)
  4. exten=s,n(ABC-mother-call),System(cp /persistent/etc/mother.call /var/spool/asterisk/outgoing)
  5. exten=s,n,Goto(waiting)
  6. exten=s,n(ABC-sister-call),System(cp /persistent/etc/sister.call /var/spool/asterisk/outgoing)
  7. exten=s,n,Goto(waiting)
  8. exten=s,n(waiting),Wait(70)
  9. exten=s,n,hangup()
複製代碼
Remarks:

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

返回列表