1) Заведен Транк, звонки ходят, out-9560.
2) Генерируем .call файл
Код: Выделить всё
Channel: SIP/out-9560/79007777777
Callerid: 100
MaxRetries: 0
RetryTime: 30
WaitTime: 30
Context: alerts
Extension: 100
Account: autodialer
Set: file=44
Set: phone=79007777777
Set: officephone=1180
Priority: 1
Код: Выделить всё
[alerts]
exten => 100,1,Answer
exten => 100,n,Wait(1)
exten => 100,n,Background(/var/www/html/alerts/include/systemaudio/menu)
exten => 100,n,WaitExten(7)
exten => 100,n,Hangup
exten => 5,1,Dial(SIP/out-9560/999)
exten => 5,n,Hangup
Если звонить с внутреннего номера, то на сотовый и на 999 дозванивается.
Ошибки:
Код: Выделить всё
-- Attempting call on SIP/out-9560/79007777777 for 100@alerts:1 (Retry 1)
== Using SIP RTP CoS mark 5
-- Called out-9560/79002307547
-- SIP/out-9560-00000004 is ringing
-- SIP/out-9560-00000004 is making progress
-- SIP/out-9560-00000004 is making progress
-- SIP/out-9560-00000004 answered
-- Executing [100@alerts:1] Answer("SIP/out-9560-00000004", "") in new stack
-- Executing [100@alerts:4] Wait("SIP/out-9560-00000004", "1") in new stack
-- Executing [100@alerts:5] Playback("SIP/out-9560-00000004", "/var/www/html/alerts/include/sounds/49") in new stack
-- Executing [5@alerts:3] Dial("SIP/out-9560-00000004", "SIP/out-9560/999") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/out-9560/999
-- SIP/out-9560-00000005 answered SIP/out-9560-00000004
-- Channel SIP/out-9560-00000005 joined 'simple_bridge' basic-bridge <21cf36ec-d2ad-40ab-87e2-acab39d7ca11>
-- Channel SIP/out-9560-00000004 joined 'simple_bridge' basic-bridge <21cf36ec-d2ad-40ab-87e2-acab39d7ca11>
-- Got SIP response 500 "Server error occurred (1/TM)" back from 81.88.86.38:5060
-- Got SIP response 500 "Server error occurred (1/TM)" back from 81.88.86.38:5060
-- Channel SIP/out-9560-00000004 left 'native_rtp' basic-bridge <21cf36ec-d2ad-40ab-87e2-acab39d7ca11>
== Spawn extension (alerts, 5, 3) exited non-zero on 'SIP/out-9560-00000004'
-- Channel SIP/out-9560-00000005 left 'native_rtp' basic-bridge <21cf36ec-d2ad-40ab-87e2-acab39d7ca11>