в данный момент использую диалплан для теста.
01 набираю перед мобильным номером, для port 0/0
02 набираю перед мобильным номером, для port 0/1
Код:
[outrt-001-test]
include => outrt-001-test-custom
exten => 018702XXXXXXX,1,Macro(user-callerid,SKIPTTL,)
exten => 018702XXXXXXX,n,Set(_NODEST=)
exten => 018702XXXXXXX,n,Macro(record-enable,${AMPUSER},OUT,)
exten => 018702XXXXXXX,n,Macro(dialout-trunk,17,${EXTEN},,)
exten => 018702XXXXXXX,n,Macro(dialout-trunk,20,${EXTEN},,)
exten => 018702XXXXXXX,n,Macro(outisbusy,)
exten => 028702XXXXXXX,1,Macro(user-callerid,SKIPTTL,)
exten => 028702XXXXXXX,n,Set(_NODEST=)
exten => 028702XXXXXXX,n,Macro(record-enable,${AMPUSER},OUT,)
exten => 028702XXXXXXX,n,Macro(dialout-trunk,17,${EXTEN},,)
exten => 028702XXXXXXX,n,Macro(dialout-trunk,20,${EXTEN},,)
exten => 028702XXXXXXX,n,Macro(outisbusy,)
exten => 8702XXXXXXX,1,Macro(user-callerid,SKIPTTL,)
exten => 8702XXXXXXX,n,Set(_NODEST=)
exten => 8702XXXXXXX,n,Macro(record-enable,${AMPUSER},OUT,)
exten => 8702XXXXXXX,n,Macro(dialout-trunk,17,${EXTEN},,)
exten => 8702XXXXXXX,n,Macro(dialout-trunk,20,${EXTEN},,)
exten => 8702XXXXXXX,n,Macro(outisbusy,)