All pastes #499769 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-05-21 07:09 UTC
rendered paste body
[priorities]
preroute=100
route=150
[$once]
[$init]
[contexts]
.*=default
[default]
^99991001$=tone/dial
^99991002$=tone/busy
^99991003$=tone/ring
^99991004$=tone/specdial
^99991005$=tone/congestion
^99991006$=tone/outoforder
^99991007$=tone/milliwatt
${username}^$=call check_addr_auth
${username}.=;caller=${username}
^......$=sip/sip:\0@192.168.9.12
[check_addr_auth]
${address}^192\.168\.9\.12:=return
.*=-;error=noauth


DEBUG OUT
<RegexRoute:ALL> Returning 'default' for '900171' in context 'contexts' by rule #1 '.*'
<INFO> Classifying caller '900171' in context 'default' in 82 usec
<RegexRoute:ALL> Using message parameter 'username'
<RegexRoute:ALL> Including context 'check_addr_auth' by rule #8 '${username}^$'
<RegexRoute:ALL> Using message parameter 'address'
<RegexRoute:ALL> Setting 'error' to 'noauth'
<RegexRoute:ALL> Returning '-' for '900022' in context 'check_addr_auth' by rule #2 '.*'
<RegexRoute:ALL> Returning true from context 'default'