Pengaturan Pin pada Ext

nnya,
ini kode extensions.conf untuk yang menelepon ke 1003

exten = 1003,1,NoOp(Custom Incoming Call to Extension 1003)
same = n(INPUTPIN),Read(PIN,please-enter-the&pin_number)
same = n,GotoIf($["${PIN}" = “140”]?PINOK)
same = n,Playback(pin-invalid)
same = n,Goto(INPUTPIN)
same = n(PINOK),Playback(pin-number-accepted)
same = n,Dial(SIP/1003,60,rT)
same = n,Hangup()

jika misal no ext 1005 menelepon ke 1003 harus memasukkan pin 140 tersebut, tetapi di lain pihak contohnya 1000 menelepon 1003 tanpa harus memasukkan pin 140…

itu bisa dilakukan di elastix atau tidak ya ?

terimakasih

Halo,

Coba seperti ini :

exten = 1003,1,NoOp(Custom Incoming Call to Extension 1003)
same = n,GotoIf($["${CALLERID(number)}" = “1000”]?DIAL)
same = n(INPUTPIN),Read(PIN,please-enter-the&pin_number)
same = n,GotoIf($["${PIN}" = “140”]?PINOK)
same = n,Playback(pin-invalid)
same = n,Goto(INPUTPIN)
same = n(PINOK),Playback(pin-number-accepted)
same = n(DIAL),Dial(SIP/1003,60,rT)
same = n,Hangup()

Hallo Pak @asoka

sudah saya coba, tetapi dari no 1000 menjadi tidak bisa mendial no 1003 sedangkan no 1005 masih tetap bisa mendial ke no 1003 dengan memasukkan pin 140…

ini log nya :

itu dialplannya sepertinya masih ada yg salah, coba paste disini.

ini Extensions.conf

exten => 1000,1,Dial(SIP/1000,15,rt)
exten => 1000,2,Hangup()

exten => 1005,1,Dial(SIP/1005,15,rt)
exten => 1005,2,Hangup()

exten = 1003,1,NoOp(Custom Incoming Call to Extension 1003)
same = n,GotoIf($["${CALLERID(number)}" = “1000”]?Dial)
same = n(INPUTPIN),Read(PIN,please-enter-the&pin_number)
same = n,GotoIf($["${PIN}" = “140”]?PINOK)
same = n,Playback(pin-invalid)
same = n,Goto(INPUTPIN)
same = n(PINOK),Playback(pin-number-accepted)
same = n,Dial(SIP/1003,60,rT)
same = n,Hangup()

sip.conf :

[1000]
context=from-internal
secret=no1000
canreinvite=yes
host=dynamic
type=friend
insecure=port,invite
directmedia=no
disallow=all
allow=ulaw
allow=alaw
nat=no

[1003]
context=from-internal
secret=no1003
canreinvite=yes
host=dynamic
type=friend
insecure=port,invite
directmedia=no
disallow=all
allow=ulaw
allow=alaw
nat=no

[1005]
context=from-internal
secret=no1005
canreinvite=yes
host=dynamic
type=friend
insecure=port,invite
directmedia=no
disallow=all
allow=ulaw
allow=alaw
nat=no

Perhatikan lagi postingan saya sebelumnya, juga perlu diketahui case sensitive itu berlaku.

masih tetap sama ,

ini extensions.conf :

exten = 1003,1,NoOp(Custom Incoming Call to Extension 1003)
same = n,GotoIf($["${CALLERID(number)}" = “1000”]?DIAL)
same = n(INPUTPIN),Read(PIN,please-enter-the&pin_number)
same = n,GotoIf($["${PIN}" = “140”]?PINOK)
same = n,Playback(pin-invalid)
same = n,Goto(INPUTPIN)
same = n(PINOK),Playback(pin-number-accepted)
same = n,Dial(SIP/1003,60,rT)
same = n,Hangup()

tadi lupa kembalikan seperti semula pak @asoka dikarenakan otak atik codenya

Perhatikan lagi baik2 !

oke pak, terimakasih atas ilmunya