Line 57: |
Line 57: |
| | | |
| == Web Portal == | | == Web Portal == |
− | If you want to have a blacklist for the web portal users you will need to modify the [allstar-public] context in extentions.conf | + | If you want to have a blacklist for the web portal users you will need to modify the [pttlink-public] context in extentions.conf |
| | | |
| <pre> | | <pre> |
− | [allstar-public] | + | [pttlink-public] |
| | | |
| exten => s,1,Ringing | | exten => s,1,Ringing |
− | exten => s,n,Set(RESP=${CURL(https://register.allstarlink.org/cgi-bin/authwebphone.pl?${CALLERID(name)})}) | + | exten => s,n,Set(RESP=${CURL(https://register.pttlink.org/cgi-bin/authwebphone.pl?${CALLERID(name)})}) |
| exten => s,n,Set(NODENUM=${CALLERID(number)}) | | exten => s,n,Set(NODENUM=${CALLERID(number)}) |
| exten => s,n,GotoIf($["${RESP:0:1}" = "?"]?hangit) | | exten => s,n,GotoIf($["${RESP:0:1}" = "?"]?hangit) |
Line 84: |
Line 84: |
| exten => s,n(blacklisted),Wait(1) | | exten => s,n(blacklisted),Wait(1) |
| exten => s,n(blacklisted),Hangup | | exten => s,n(blacklisted),Hangup |
− | <pre> | + | </pre> |
| Whitelist is not implemented here, but it should be easy to do | | Whitelist is not implemented here, but it should be easy to do |
| | | |
| | | |
| To block a web-portal user you will need to add the callsign in capital letters to the blacklist. | | To block a web-portal user you will need to add the callsign in capital letters to the blacklist. |
− | ** <code>*CLI> database put blacklist KM6RPT "no comment"</code>
| + | * <code>*CLI> database put blacklist KM6RPT "no comment"</code> |
| | | |
| | | |