Переадресацию на мобильные телефоны уже настроена, так же есть и другие виды переадресации внутри сети
;exten => _2323,1, Set (CALLERID (all) =${CALLERID (name) } <S(CALLERID (num)}>)
;exten => 2323,n,Macro (mysql, $(CALLERID (num) })
;exten => 2323,n, Dial($(spb-obit}/Мобильный,30,tTwg${limit})
: exten => 2323, n, Busy()
exten => _2600, 1, Set (CALLERID (all) =${CALLERID (name) } <${CALLERID (num) }>)
exten => _2600, n, Macro (mysql, S(CALLERID (num) })
exten => _2600, n, Dial (SIP/2600&SIP/2444,90, tTwS{limit})
exten => _2600,n,Busy()
exten => 2555,n,GotoIf($["${CALLERID(number)}" = "2323"]?dial2555)
exten => 2323,n(dial2555),Dial($(spb-obit}/Номер мобильного телефона,30,tTwg${limit})
exten => 2323, n, Busy()
30,tTwg${limit})
exten => 2555,n,GotoIf($["${CALLERID(number)}" = "2323"]?:go_mobile)
same => n,Dial(SIP/${EXTEN},30,tTwg${limit})
same => n,HangUp()
same => n(go_mobile),Dial($(spb-obit}/Номер мобильного телефона,30,tTwg${limit})
; same => n(go_mobile),Dial(SIP/${EXTEN}&$(spb-obit}/Номер мобильного телефона,30,tTwg${limit}) ;; Паралельный звонок на мобильный и на внутренний
same => n,HangUp()
sudo asterisk -r
core show application dial
Dial(Technology/Resource[&Technology2/Resource2[&...]][,timeout[,options[,URL]]])
w: Allow the called party to enable recording of the call by sending the
DTMF sequence defined for one-touch recording in "features.conf".
g: Proceed with dialplan execution at the next priority in the current
extension if the destination channel hangs up.
Dial(Technology/Resource[&Technology2/Resource2[&...]][,timeout[,options[,URL]]])
А параллель вы тут закоментили, правильно?
нужно TAB нажать?
Попробовал, dialplan перезагрузил, звонок идет, но перевод на мобильный к сожалению не происходит
exten => 2555,1,GotoIf($["${CALLERID(number)}" = "2323"]?:go_mobile)
= Extension Changed 2555[BLF] new state Ringing for Notify User 2713
== Extension Changed 2555[BLF] new state Ringing for Notify User 2719
-- SIP/2555-00001157 is ringing
== Using SIP RTP CoS mark 5
== Extension Changed 2323[BLF] new state Busy for Notify User 2713
-- Executing [2555@sipphone:1] GotoIf("SIP/2323-00001466", "1?:go_mobile") in new stack
-- Executing [2555@sipphone:2] Dial("SIP/2323-00001466", "SIP/2555,30,tTwgL(3600000:300000)") in new stack
> Limit Data for this call:
> timelimit = 3600000 ms (3600.000 s)
> play_warning = 300000 ms (300.000 s)
> play_to_caller = yes
> play_to_callee = no
> warning_freq = 0 ms (0.000 s)
> start_sound =
> warning_sound = timeleft
> end_sound =
== Using SIP RTP CoS mark 5
-- Called SIP/2555
== Extension Changed 2555[BLF] new state Ringing for Notify User 2713
== Extension Changed 2555[BLF] new state Ringing for Notify User 2719
-- SIP/2555-00001467 is ringing
-- Accepting AUTHENTICATED call from 172.16.76.151:4569:
-- > requested format = ulaw,
-- > requested prefs = (ulaw|alaw|gsm),
-- > actual format = gsm,
-- > host prefs = (gsm|alaw|ulaw),
-- > priority = mine
-- Executing [2447@msk1_sip:1] NoOp("IAX2/IAX-TO-PBXSPB-12919", "Прилепская Ю.С.") in new stack
-- Executing [2447@msk1_sip:2] Macro("IAX2/IAX-TO-PBXSPB-12919", "mysql,50258") in new stack
-- Executing [s@macro-mysql:1] GotoIf("IAX2/IAX-TO-PBXSPB-12919", ""Прилепская Ю.С. = "?mysql:exit") in new stack
-- Goto (macro-mysql,s,2)
-- Executing [s@macro-mysql:2] GotoIf("IAX2/IAX-TO-PBXSPB-12919", "0?:exit") in new stack
-- Goto (macro-mysql,s,9)
-- Executing [s@macro-mysql:9] NoOp("IAX2/IAX-TO-PBXSPB-12919", "Прилепская Ю.С.") in new stack
-- Executing [2447@msk1_sip:3] Macro("IAX2/IAX-TO-PBXSPB-12919", "rec,50258,2447") in new stack
-- Executing [s@macro-rec:1] GotoIf("IAX2/IAX-TO-PBXSPB-12919", "0?rec:norec") in new stack
-- Goto (macro-rec,s,5)
-- Executing [s@macro-rec:5] NoOp("IAX2/IAX-TO-PBXSPB-12919", "50258") in new stack
-- Executing [2447@msk1_sip:4] Set("IAX2/IAX-TO-PBXSPB-12919", "CALLERID(all)=Прилепская Ю.С. <50258>") in new stack
-- Executing [2447@msk1_sip:5] ExecIf("IAX2/IAX-TO-PBXSPB-12919", "0?Hangup()") in new stack
-- Executing [2447@msk1_sip:6] NoOp("IAX2/IAX-TO-PBXSPB-12919", "NOT_INUSE") in new stack
-- Executing [2447@msk1_sip:7] GotoIf("IAX2/IAX-TO-PBXSPB-12919", "0?busy") in new stack
-- Executing [2447@msk1_sip:8] GotoIf("IAX2/IAX-TO-PBXSPB-12919", "0?busy") in new stack
-- Executing [2447@msk1_sip:9] GotoIf("IAX2/IAX-TO-PBXSPB-12919", "0?INVALID:Dial") in new stack
-- Goto (msk1_sip,2447,16)
-- Executing [2447@msk1_sip:16] NoOp("IAX2/IAX-TO-PBXSPB-12919", ""Звонок пошел на телефон"") in new stack
-- Executing [2447@msk1_sip:17] Dial("IAX2/IAX-TO-PBXSPB-12919", "SIP/2447,60,tTwL(3600000:300000)") in new stack
> Limit Data for this call:
> timelimit = 3600000 ms (3600.000 s)
> play_warning = 300000 ms (300.000 s)
> play_to_caller = yes
> play_to_callee = no
> warning_freq = 0 ms (0.000 s)
> start_sound =
> warning_sound = timeleft
> end_sound =
== Using SIP RTP CoS mark 5
-- Called SIP/2447
== Spawn extension (spb2, 2434, 17) exited non-zero on 'SIP/spb2-00001462'
-- SIP/2447-00001468 is ringing
-- Remote UNIX connection
-- Remote UNIX connection disconnected
-- Remote UNIX connection
-- Remote UNIX connection disconnected
== Using SIP RTP CoS mark 5
-- Executing [2329@sipphone:1] NoOp("SIP/2401-00001469", "Труфанова И.И.") in new stack
-- Executing [2329@sipphone:2] Macro("SIP/2401-00001469", "mysql,2401") in new stack
-- Executing [s@macro-mysql:1] GotoIf("SIP/2401-00001469", ""Труфанова И.И. = "?mysql:exit") in new stack
-- Goto (macro-mysql,s,2)
-- Executing [s@macro-mysql:2] GotoIf("SIP/2401-00001469", "0?:exit") in new stack
-- Goto (macro-mysql,s,9)
-- Executing [s@macro-mysql:9] NoOp("SIP/2401-00001469", "Труфанова И.И.") in new stack
-- Executing [2329@sipphone:3] Macro("SIP/2401-00001469", "rec,2401,2329") in new stack
-- Executing [s@macro-rec:1] GotoIf("SIP/2401-00001469", "0?rec:norec") in new stack
-- Goto (macro-rec,s,5)
-- Executing [s@macro-rec:5] NoOp("SIP/2401-00001469", "2401") in new stack
-- Executing [2329@sipphone:4] Set("SIP/2401-00001469", "CALLERID(all)=Труфанова И.И. <2401>") in new stack
-- Executing [2329@sipphone:5] ExecIf("SIP/2401-00001469", "0?Hangup()") in new stack
-- Executing [2329@sipphone:6] NoOp("SIP/2401-00001469", "NOT_INUSE") in new stack
-- Executing [2329@sipphone:7] GotoIf("SIP/2401-00001469", "0?busy") in new stack
-- Executing [2329@sipphone:8] GotoIf("SIP/2401-00001469", "0?busy") in new stack
-- Executing [2329@sipphone:9] GotoIf("SIP/2401-00001469", "0?INVALID:Dial") in new stack
-- Goto (sipphone,2329,16)
-- Executing [2329@sipphone:16] NoOp("SIP/2401-00001469", ""Звонок пошел на телефон"") in new stack
-- Executing [2329@sipphone:17] Dial("SIP/2401-00001469", "SIP/2329,60,tTwL(3600000:300000)") in new stack
> Limit Data for this call:
> timelimit = 3600000 ms (3600.000 s)
> play_warning = 300000 ms (300.000 s)
> play_to_caller = yes
> play_to_callee = no
> warning_freq = 0 ms (0.000 s)
> start_sound =
> warning_sound = timeleft
> end_sound =
== Using SIP RTP CoS mark 5
-- Called SIP/2329
== Extension Changed 2329[BLF] new state Ringing for Notify User 2851
-- SIP/2447-00001468 answered IAX2/IAX-TO-PBXSPB-12919
-- Channel IAX2/IAX-TO-PBXSPB-12919 joined 'simple_bridge' basic-bridge <812e8404-e876-4255-8854-a918697dfe6d>
-- Channel SIP/2447-00001468 joined 'simple_bridge' basic-bridge <812e8404-e876-4255-8854-a918697dfe6d>
> 0x7f219872e4b0 -- Probation passed - setting RTP source address to 192.168.1.108:16090
-- SIP/2329-0000146a is ringing
-- Nobody picked up in 30000 ms
== Extension Changed 2555[BLF] new state Idle for Notify User 2713
== Extension Changed 2555[BLF] new state Idle for Notify User 2719
-- Executing [2555@sipphone:3] Hangup("SIP/2323-00001466", "") in new stack
== Spawn extension (sipphone, 2555, 3) exited non-zero on 'SIP/2323-00001466'
== Extension Changed 2323[BLF] new state Idle for Notify User 2713
-- Remote UNIX connection
-- Remote UNIX connection disconnected
-- SIP/2329-0000146a answered SIP/2401-00001469
-- Channel SIP/2401-00001469 joined 'simple_bridge' basic-bridge <2241c372-b1cc-4873-b527-97b6e6550b7b>
== Extension Changed 2329[BLF] new state Busy for Notify User 2851
-- Channel SIP/2329-0000146a joined 'simple_bridge' basic-bridge <2241c372-b1cc-4873-b527-97b6e6550b7b>
== Using SIP RTP CoS mark 5
-- Executing [2555@sipphone:1] GotoIf("SIP/2323-0000171a", "1?go_mobile"") i n new stack
== Extension Changed 2323[BLF] new state Busy for Notify User 2713
[Apr 5 10:12:37] NOTICE[67102][C-00000c49]: pbx.c:4963 pbx_extension_helper: No such label 'go_mobile"' in extension '2555' in context 'sipphone'
[Apr 5 10:12:37] WARNING[67102][C-00000c49]: pbx.c:12408 pbx_parseable_goto: Pr iority 'go_mobile"' must be a number > 0, or valid label
== Spawn extension (sipphone, 2555, 1) exited non-zero on 'SIP/2323-0000171a'
== Extension Changed 2323[BLF] new state Idle for Notify User 2713 (queued)
== Using SIP RTP CoS mark 5
:
если вы об этом говорили exten => 2323,1, Set (CALLERID (all) =${CALLERID (name) } <$(CALLERID (num) }>)
exten => 2362, n, Macro (mysq1, $(CALLERID (num)})
exten =>2362,n, ExecIf ($("$(CALLERID (num)}" = "5718" ]?Dial (SIP/$(EXTEN}&$(spb-obit}/Номер телефона, 90, tTwgs(limit}))
exten => 2362, n, Dial (SIP/$(EXTEN}, 90, tTwg$(limit})
exten => 2362, n, Busy()