Zoiper Setup for AllStar

How to Limit Connections
If you have multiple nodes on your server and you want to limit the connection to one or two nodes, this how.

This configuration allows connections to node 500 and 501 only. With this example node 501 is listen only. Node 501 is connected to 500 in monitor mode with a startup_macro = *2500 command in rpt.conf. VOX has been turned off on node 501 so users can’t talk to each other.

/etc/asterisk/custom/extensions.conf

[zoiper]
exten => _X!,1,Ringing
exten => _X!,n,Wait(10)
exten => _X!,n,NoOp(${CALLERID(name)})
exten => _X!,n,Set(CALLSIGN=${CALLERID(name)})
exten => _X!,n,GotoIf($[${EXTEN} = 500]?xceive)
exten => _X!,n,GotoIf($[${EXTEN} = 501]?rxonly)
exten => _X!,n,Playback(connection-failed)
exten => _X!,n,Wait(1)
exten => _X!,n,Hangup
exten => _X!,n(xceive),Answer
exten => _X!,n,Playback(connecting)
exten => _X!,n,rpt(500|Pv|${CALLSIGN}-P)       ; Xceive w/VOX
exten => _X!,n,Wait(1)
exten => _X!,n,Hangup
exten => _X!,n(rxonly),Answer
exten => _X!,n,Playback(connecting)
exten => _X!,n,rpt(501|P|${CALLSIGN}-P)        ; Rx only, w/o VOX
exten => _X!,n,Playback(connection-failed)
exten => _X!,n,Wait(1)
exten => _X!,n,Hangup
1 Like