Хотелось бы не набирать один из этих трёх номеров, а выходить на этот шлюз через набор цифры 0.
Я наваял диалплан, но он не работает.
exten=>_0,1, Playback(transfer)
exten=>_0,2, Playback(vm-enter-num-to-call)
exten=>_0,3, Dial(SIP/311,20)
exten=>_0,n, Hangup()
дебаг вот такой
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
== Using SIP RTP CoS mark 5
-- Executing [0@from-users:1] Playback("SIP/301-000000ad", "transfer") in new stack
> 0xa16e9d8 -- Probation passed - setting RTP source address to 10.41.151.191:20000
-- <SIP/301-000000ad> Playing 'transfer.alaw' (language 'ru')
-- Executing [0@from-users:2] Dial("SIP/301-000000ad", "SIP/311,20") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/311
-- SIP/311-000000ae is ringing
-- SIP/311-000000ae answered SIP/301-000000ad
-- Remotely bridging SIP/301-000000ad and SIP/311-000000ae
== Spawn extension (from-users, 0, 2) exited non-zero on 'SIP/301-000000ad'
-- Executing [0@from-users:1] Playback("SIP/301-000000ad", "transfer") in new stack
> 0xa16e9d8 -- Probation passed - setting RTP source address to 10.41.151.191:20000
-- <SIP/301-000000ad> Playing 'transfer.alaw' (language 'ru')
-- Executing [0@from-users:2] Dial("SIP/301-000000ad", "SIP/311,20") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/311
-- SIP/311-000000ae is ringing
-- SIP/311-000000ae answered SIP/301-000000ad
-- Remotely bridging SIP/301-000000ad and SIP/311-000000ae
== Spawn extension (from-users, 0, 2) exited non-zero on 'SIP/301-000000ad'
Не понимаю что это -- Remotely bridging SIP/301-000000ad and SIP/311-000000a.