| Код: |
| [man_dial] exten => _7.,1,Dial(SIP/sip_betamax/00${EXTEN}) exten => _7.,2,Dial(SIP/sip_alterphone/7${EXTEN:1}) exten => _7.,3,Congestion include => default |
Если человек не станет брать трубку, а сбросит вызов (к примеру на мобильнике) то произойдет вот что
| Код: |
| -- Registered SIP '200' at 172.16.1.10 port 5060 expires 60 -- Executing Dial("SIP/200-dba0", "SIP/sip_betamax/007962.....") -- Called sip_betamax/0079624035535 -- SIP/sip_betamax-7392 is making progress passing it to SIP/200-dba0 -- Got SIP response 486 "Busy here" back from 194.120.0.198 -- SIP/sip_betamax-7392 is busy == Everyone is busy/congested at this time (1:1/0/0) -- Executing Dial("SIP/200-dba0", "SIP/sip_alterphone/7962....") -- Called eth/79624035535 -- Call accepted by *** (format ulaw) -- Format for call is ulaw -- IAX2/eth-2 is making progress passing it to SIP/200-dba0 -- Hungup 'IAX2/eth-2' == Spawn extension (default, 79624035535, 2) exited non-zero on 'SIP/200-dba0' |
| Ded писал(а): |
| Тебе надо читать мануалы на тему перехода на шаг 101+n |
Я думал немного по другому
exten => _7,1,Dial(..)
exten => _7,n,GotoIf($["${DIALSTATUS}"...и проверять уже CHANUNAVAIL,BUSY и прочее....
Будет ли рабоатать такая конструкция? Я попробовал и не получилось. Теперь хочется узнать - не стоит мучаться или же где-то сделал ошибку....
| Цитата: |
| j: Asterisk 1.2 and later: Jump to priority n+101 if all of the requested channels were busy (just like behaviour in Asterisk 1.0.x) |
http://www.voip-info.org/wiki/view/Asterisk+priorities
| Цитата: |
| In a typical dialplan, Asterisk must often handle the "+101" priority to handle the failure condition of an application, like Dial(). Without the n priority, if you were to change one of the lines within an extension, not only must the Dial() priority change, so must the corresponding +101 priority. |
http://www.voip-info.org/wiki/view/Asterisk+SLA
| Cache писал(а): |
| почитай по поводу SLA |