; Format for the register statement is:
; register => [peer?][transport://]user[@domain][:secret[:authuser]]@host[:port][/extension][~expiry]
<condition field="destination_number" expression="^(\w+)$">
<param name="enable-timer" value="false"/>
[test]
exten => s,1,Set(DN=${SIP_HEADER(TO):5})
same => n,Set(TO=${CUT(DN,@,1)})
same => n,NoOp(Dialed to: ${TO})
далее использовать ${TO} где угодно