38 просмотров
от (540 баллов) в категории Тонкая настройка
Добрый день, коллеги! Подскажите пожалуйста как можно кастомизировать исходящий контекст с использованием php agi?

1 Ответ

от (56.6 тыс. баллов)

Следует кастомизировать outgoing контексты

Пример есть по ссылке https://wiki.mikopbx.com/faq:quality_custom

В dial plan следует использовать вызов приложения AGI(путь к скрипту). 

от (540 баллов)
а как сделать это сразу для всех линий?
от (56.6 тыс. баллов)

пробуйте описать outgoing-custom контекст

от (540 баллов)
описываю контекст следующим образом - не работает

[outgoing-custom]
;exten => _.!,1,Set(DOPTIONS=${DOPTIONS}F(lead-start,s,1))
exten => _.!,1,Goto(lead-start,s,1)
    same => n,return

[lead-start]
exten => _.!,1,NoOp(---)
    same => n,Goto(lead,s,1)

[lead]   
exten => s,1,NoOP
    same => n,AGI(DIALPLAN-APP-B8AF090151AC8828215E802D84ED8BF9.php)
    same => n,return
от (56.6 тыс. баллов)

Нужно смотреть логи в 

от (540 баллов)
== Setting global variable 'SIPDOMAIN' to '10.11.0.11'
    -- Executing [80445557090@all_peers:1] ExecIf("PJSIP/1303-000002d7", "0?Hangup()") in new stack
    -- Executing [80445557090@all_peers:2] Set("PJSIP/1303-000002d7", "__FROM_CHAN=PJSIP/1303-000002d7") in new stack
    -- Executing [80445557090@all_peers:3] ExecIf("PJSIP/1303-000002d7", "1?Set(__OLD_LINKEDID=mikopbx-1585304955.1785)") in new stack
    -- Executing [80445557090@all_peers:4] ExecIf("PJSIP/1303-000002d7", "1?Gosub(set_from_peer,s,1)") in new stack
    -- Executing [s@set_from_peer:1] NoOp("PJSIP/1303-000002d7", "__FROM_PEER set to 1303")
    -- Executing [s@set_from_peer:1] return("PJSIP/1303-000002d7", "")
    -- Executing [80445557090@all_peers:5] ExecIf("PJSIP/1303-000002d7", "0?Gosub(set_orign_chan,s,1)") in new stack
    -- Executing [80445557090@all_peers:6] ExecIf("PJSIP/1303-000002d7", "0?Set(CALLERID(num)=1303)") in new stack
    -- Executing [80445557090@all_peers:7] ExecIf("PJSIP/1303-000002d7", "0?Set(CALLERID(name)=1303)") in new stack
    -- Executing [80445557090@all_peers:8] ExecIf("PJSIP/1303-000002d7", "0?Set(__FROM_PEER=1303)") in new stack
    -- Executing [80445557090@all_peers:9] Set("PJSIP/1303-000002d7", "CHANNEL(hangup_handler_wipe)=hangup_handler,s,1") in new stack
    -- Executing [80445557090@all_peers:10] Gosub("PJSIP/1303-000002d7", "dial,80445557090,1") in new stack
    -- Executing [80445557090@dial:1] UserEvent("PJSIP/1303-000002d7", "CdrConnector,AgiData:eyJJU19PUkdOVCI6ZmFsc2UsIlVOSVFVRUlEIjoibWlrb3BieC0xNTg1MzA0OTU1LjE3ODVfMTE4YjlYIiwiYWN0aW9uIjoiZGlhbCIsImFnaV9jaGFubmVsIjoiUEpTSVAvMTMwMy0wMDAwMDJkNyIsImRpZCI6IiIsImRzdF9udW0iOiI4MDQ0NTU1NzA5MCIsImZyb21fYWNjb3VudCI6IjEzMDMiLCJsaW5rZWRpZCI6Im1pa29wYngtMTU4NTMwNDk1NS4xNzg1Iiwic3JjX2NhbGxfaWQiOiIwXzE5NTk4MDQyOTJAMTAuMTAuMC4xNTAiLCJzcmNfY2hhbiI6IlBKU0lQLzEzMDMtMDAwMDAyZDciLCJzcmNfbnVtIjoiMTMwMyIsInN0YXJ0IjoiMjAyMC0wMy0yNyAxMzoyOToxNS41MjQiLCJ0cmFuc2ZlciI6IjAifQ==")
    -- Executing [80445557090@dial:1] return("PJSIP/1303-000002d7", "")
    -- Executing [80445557090@all_peers:11] GosubIf("PJSIP/1303-000002d7", "0?all_peers-custom,80445557090,1") in new stack
    -- Executing [80445557090@all_peers:12] Goto("PJSIP/1303-000002d7", "peer_1303,80445557090,1") in new stack
    -- Goto (peer_1303,80445557090,1)
    -- Executing [80445557090@peer_1303:1] NoOp("PJSIP/1303-000002d7", "Start outgoing calling...") in new stack
    -- Executing [80445557090@peer_1303:2] Ringing("PJSIP/1303-000002d7", "") in new stack
    -- Executing [80445557090@peer_1303:3] GosubIf("PJSIP/1303-000002d7", "0?peer_1303-custom,80445557090,1") in new stack
    -- Executing [80445557090@peer_1303:4] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1583230780-122-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:5] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579962911-102-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:6] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579962911-103-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:7] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579962911-104-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:8] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579962986-106-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:9] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579962986-107-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:10] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1583756455-109-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:11] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1580880191-110-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:12] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1584186205-112-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:13] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579962986-113-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:14] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1580880005-114-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:15] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579962118-115-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:16] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579949634-116-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:17] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1580880629-117-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:18] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1583307810-118-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:19] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579962118-119-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:20] ExecIf("PJSIP/1303-000002d7", "1?Gosub(SIP-1579949634-98-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@SIP-1579949634-98-outgoing:1] Set("PJSIP/1303-000002d7", "number=00375445557090") in new stack
    -- Executing [80445557090@SIP-1579949634-98-outgoing:2] ExecIf("PJSIP/1303-000002d7", "1?Goto(SIP-1579949634-98-outgoing,00375445557090,3)") in new stack
    -- Goto (SIP-1579949634-98-outgoing,00375445557090,3)
    -- Executing [00375445557090@SIP-1579949634-98-outgoing:3] ExecIf("PJSIP/1303-000002d7", "0?Gosub(set_from_peer,s,1)") in new stack
    -- Executing [00375445557090@SIP-1579949634-98-outgoing:4] Set("PJSIP/1303-000002d7", "GR_VARS=GR_PERM_ENABLE=1,GR_ID_112=1,GR_CID_112=800,GR_ID_86=1,GR_ID_87=1,GR_ID_90=1,GR_ID_33=1,GR_ID_34=1,GR_ID_35=1,GR_ID_36=1,GR_ID_37=1,GR_ID_63=1,GR_CID_63=+375291837090,GR_ID_28=1,GR_ID_64=1,GR_CID_64=+375291837090,GR_ID_78=1,GR_CID_78=+375291837090,GR_ID_65=1,GR_CID_65=+375291837090,GR_ID_66=1,GR_CID_66=+375291837090,GR_ID_29=1,GR_CID_29=+375291837090,GR_ID_67=1,GR_CID_67=+375291837090,GR_ID_68=1,GR_CID_68=+375291837090,GR_ID_38=1,GR_ID_39=1,GR_ID_76=1,GR_ID_55=1") in new stack
    -- Executing [00375445557090@SIP-1579949634-98-outgoing:5] ExecIf("PJSIP/1303-000002d7", "1?Exec(MSet(GR_PERM_ENABLE=1,GR_ID_112=1,GR_CID_112=800,GR_ID_86=1,GR_ID_87=1,GR_ID_90=1,GR_ID_33=1,GR_ID_34=1,GR_ID_35=1,GR_ID_36=1,GR_ID_37=1,GR_ID_63=1,GR_CID_63=+375291837090,GR_ID_28=1,GR_ID_64=1,GR_CID_64=+375291837090,GR_ID_78=1,GR_CID_78=+375291837090,GR_ID_65=1,GR_CID_65=+375291837090,GR_ID_66=1,GR_CID_66=+375291837090,GR_ID_29=1,GR_CID_29=+375291837090,GR_ID_67=1,GR_CID_67=+375291837090,GR_ID_68=1,GR_CID_68=+375291837090,GR_ID_38=1,GR_ID_39=1,GR_ID_76=1,GR_ID_55=1))") in new stack
    -- Executing [00375445557090@SIP-1579949634-98-outgoing:6] ExecIf("PJSIP/1303-000002d7", "1?return") in new stack
    -- Executing [80445557090@peer_1303:21] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579949634-99-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:22] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579949634-100-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:23] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1583496371-101-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:24] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1580880567-97-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:25] ExecIf("PJSIP/1303-000002d7", "1?Gosub(SIP-1581921422-95-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@SIP-1581921422-95-outgoing:1] Set("PJSIP/1303-000002d7", "number=80445557090") in new stack
    -- Executing [80445557090@SIP-1581921422-95-outgoing:2] ExecIf("PJSIP/1303-000002d7", "0?Gosub(set_from_peer,s,1)") in new stack
    -- Executing [80445557090@SIP-1581921422-95-outgoing:3] Set("PJSIP/1303-000002d7", "GR_VARS=GR_PERM_ENABLE=1,GR_ID_112=1,GR_CID_112=800,GR_ID_86=1,GR_ID_87=1,GR_ID_90=1,GR_ID_33=1,GR_ID_34=1,GR_ID_35=1,GR_ID_36=1,GR_ID_37=1,GR_ID_63=1,GR_CID_63=+375291837090,GR_ID_28=1,GR_ID_64=1,GR_CID_64=+375291837090,GR_ID_78=1,GR_CID_78=+375291837090,GR_ID_65=1,GR_CID_65=+375291837090,GR_ID_66=1,GR_CID_66=+375291837090,GR_ID_29=1,GR_CID_29=+375291837090,GR_ID_67=1,GR_CID_67=+375291837090,GR_ID_68=1,GR_CID_68=+375291837090,GR_ID_38=1,GR_ID_39=1,GR_ID_76=1,GR_ID_55=1") in new stack
    -- Executing [80445557090@SIP-1581921422-95-outgoing:4] ExecIf("PJSIP/1303-000002d7", "1?Exec(MSet(GR_PERM_ENABLE=1,GR_ID_112=1,GR_CID_112=800,GR_ID_86=1,GR_ID_87=1,GR_ID_90=1,GR_ID_33=1,GR_ID_34=1,GR_ID_35=1,GR_ID_36=1,GR_ID_37=1,GR_ID_63=1,GR_CID_63=+375291837090,GR_ID_28=1,GR_ID_64=1,GR_CID_64=+375291837090,GR_ID_78=1,GR_CID_78=+375291837090,GR_ID_65=1,GR_CID_65=+375291837090,GR_ID_66=1,GR_CID_66=+375291837090,GR_ID_29=1,GR_CID_29=+375291837090,GR_ID_67=1,GR_CID_67=+375291837090,GR_ID_68=1,GR_CID_68=+375291837090,GR_ID_38=1,GR_ID_39=1,GR_ID_76=1,GR_ID_55=1))") in new stack
    -- Executing [80445557090@SIP-1581921422-95-outgoing:5] ExecIf("PJSIP/1303-000002d7", "1?return") in new stack
    -- Executing [80445557090@peer_1303:26] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1580880451-86-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:27] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579962208-33-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:28] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579962118-87-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:29] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1580880075-90-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:30] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1583316551-94-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:31] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579963033-83-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:32] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1581921422-84-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:33] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579962208-35-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:34] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579962118-34-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:35] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579962118-36-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:36] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579962208-37-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:37] ExecIf("PJSIP/1303-000002d7", "0?Gosub(SIP-1579949634-63-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@peer_1303:38] ExecIf("PJSIP/1303-000002d7", "1?Gosub(SIP-1579949634-28-outgoing,80445557090,1)") in new stack
    -- Executing [80445557090@SIP-1579949634-28-outgoing:1] Set("PJSIP/1303-000002d7", "number=00375445557090") in new stack
    -- Executing [80445557090@SIP-1579949634-28-outgoing:2] ExecIf("PJSIP/1303-000002d7", "1?Goto(SIP-1579949634-28-outgoing,00375445557090,3)") in new stack
    -- Goto (SIP-1579949634-28-outgoing,00375445557090,3)
    -- Executing [00375445557090@SIP-1579949634-28-outgoing:3] ExecIf("PJSIP/1303-000002d7", "0?Gosub(set_from_peer,s,1)") in new stack
    -- Executing [00375445557090@SIP-1579949634-28-outgoing:4] Set("PJSIP/1303-000002d7", "GR_VARS=GR_PERM_ENABLE=1,GR_ID_112=1,GR_CID_112=800,GR_ID_86=1,GR_ID_87=1,GR_ID_90=1,GR_ID_33=1,GR_ID_34=1,GR_ID_35=1,GR_ID_36=1,GR_ID_37=1,GR_ID_63=1,GR_CID_63=+375291837090,GR_ID_28=1,GR_ID_64=1,GR_CID_64=+375291837090,GR_ID_78=1,GR_CID_78=+375291837090,GR_ID_65=1,GR_CID_65=+375291837090,GR_ID_66=1,GR_CID_66=+375291837090,GR_ID_29=1,GR_CID_29=+375291837090,GR_ID_67=1,GR_CID_67=+375291837090,GR_ID_68=1,GR_CID_68=+375291837090,GR_ID_38=1,GR_ID_39=1,GR_ID_76=1,GR_ID_55=1") in new stack
от (540 баллов)
-- Executing [00375445557090@SIP-1579949634-28-outgoing:5] ExecIf("PJSIP/1303-000002d7", "1?Exec(MSet(GR_PERM_ENABLE=1,GR_ID_112=1,GR_CID_112=800,GR_ID_86=1,GR_ID_87=1,GR_ID_90=1,GR_ID_33=1,GR_ID_34=1,GR_ID_35=1,GR_ID_36=1,GR_ID_37=1,GR_ID_63=1,GR_CID_63=+375291837090,GR_ID_28=1,GR_ID_64=1,GR_CID_64=+375291837090,GR_ID_78=1,GR_CID_78=+375291837090,GR_ID_65=1,GR_CID_65=+375291837090,GR_ID_66=1,GR_CID_66=+375291837090,GR_ID_29=1,GR_CID_29=+375291837090,GR_ID_67=1,GR_CID_67=+375291837090,GR_ID_68=1,GR_CID_68=+375291837090,GR_ID_38=1,GR_ID_39=1,GR_ID_76=1,GR_ID_55=1))") in new stack
    -- Executing [00375445557090@SIP-1579949634-28-outgoing:6] ExecIf("PJSIP/1303-000002d7", "0?return") in new stack
    -- Executing [00375445557090@SIP-1579949634-28-outgoing:7] ExecIf("PJSIP/1303-000002d7", "0?MSet(GR_OLD_CALLERID=1303,CALLERID(num)=)") in new stack
    -- Executing [00375445557090@SIP-1579949634-28-outgoing:8] ExecIf("PJSIP/1303-000002d7", "0?Hangup()") in new stack
    -- Executing [00375445557090@SIP-1579949634-28-outgoing:9] Set("PJSIP/1303-000002d7", "ROUTFOUND=1") in new stack
    -- Executing [00375445557090@SIP-1579949634-28-outgoing:10] Gosub("PJSIP/1303-000002d7", "dial,00375445557090,1") in new stack
    -- Executing [00375445557090@dial:1] UserEvent("PJSIP/1303-000002d7", "CdrConnector,AgiData:eyJJU19PUkdOVCI6ZmFsc2UsIlVOSVFVRUlEIjoibWlrb3BieC0xNTg1MzA0OTU1LjE3ODVfMTE4YjlYIiwiYWN0aW9uIjoiZGlhbCIsImFnaV9jaGFubmVsIjoiUEpTSVAvMTMwMy0wMDAwMDJkNyIsImRpZCI6IiIsImRzdF9udW0iOiIwMDM3NTQ0NTU1NzA5MCIsImZyb21fYWNjb3VudCI6IjEzMDMiLCJsaW5rZWRpZCI6Im1pa29wYngtMTU4NTMwNDk1NS4xNzg1Iiwic3JjX2NhbGxfaWQiOiIwXzE5NTk4MDQyOTJAMTAuMTAuMC4xNTAiLCJzcmNfY2hhbiI6IlBKU0lQLzEzMDMtMDAwMDAyZDciLCJzcmNfbnVtIjoiMTMwMyIsInN0YXJ0IjoiMjAyMC0wMy0yNyAxMzoyOToxNS41ODIiLCJ0cmFuc2ZlciI6IjAifQ==")
    -- Executing [00375445557090@dial:1] return("PJSIP/1303-000002d7", "")
    -- Executing [00375445557090@SIP-1579949634-28-outgoing:11] ExecIf("PJSIP/1303-000002d7", "0?Set(DOPTIONS=tk)") in new stack
    -- Executing [00375445557090@SIP-1579949634-28-outgoing:12] GosubIf("PJSIP/1303-000002d7", "0?SIP-1579949634-outgoing-custom,00375445557090,1") in new stack
    -- Executing [00375445557090@SIP-1579949634-28-outgoing:13] Dial("PJSIP/1303-000002d7", "PJSIP/00375445557090@SIP-1579949634,600,TKU(dial_answer)b(dial_create_chan,s,1)") in new stack
    -- PJSIP/SIP-1579949634-000002d8 Internal Gosub(dial_create_chan,s,1) start
    -- Executing [s@dial_create_chan:1] Gosub("PJSIP/SIP-1579949634-000002d8", "lua_dial_create_chan,s,1") in new stack
    -- Executing [s@lua_dial_create_chan:1] NoOp("PJSIP/SIP-1579949634-000002d8", "to_account set to SIP")
    -- Executing [s@lua_dial_create_chan:1] UserEvent("PJSIP/SIP-1579949634-000002d8", "CdrConnector,AgiData:eyJVTklRVUVJRCI6Im1pa29wYngtMTU4NTMwNDk1NS4xNzg1XzExOGI5WCIsImFjdGlvbiI6ImRpYWxfY3JlYXRlX2NoYW4iLCJkc3RfY2FsbF9pZCI6ImIzMTUxNmZiLTZlOTItNGY1ZS04ZTQyLTMwMWZmMjRhYTU4ZSIsImRzdF9jaGFuIjoiUEpTSVAvU0lQLTE1Nzk5NDk2MzQtMDAwMDAyZDgiLCJldmVudF90aW1lIjoiMjAyMC0wMy0yNyAxMzoyOToxNS41OTYiLCJsaW5rZWRpZCI6Im1pa29wYngtMTU4NTMwNDk1NS4xNzg1IiwidG9fYWNjb3VudCI6IlNJUCJ9")
    -- Executing [s@lua_dial_create_chan:1] return("PJSIP/SIP-1579949634-000002d8", "")
    -- Executing [s@dial_create_chan:2] Set("PJSIP/SIP-1579949634-000002d8", "pt1c_is_dst=1") in new stack
    -- Executing [s@dial_create_chan:3] ExecIf("PJSIP/SIP-1579949634-000002d8", "0?Set(PJSIP_HEADER(add,)=)") in new stack
    -- Executing [s@dial_create_chan:4] Set("PJSIP/SIP-1579949634-000002d8", "__PT1C_SIP_HEADER=") in new stack
    -- Executing [s@dial_create_chan:5] Set("PJSIP/SIP-1579949634-000002d8", "CHANNEL(hangup_handler_wipe)=hangup_handler,s,1") in new stack
    -- Executing [s@dial_create_chan:6] Return("PJSIP/SIP-1579949634-000002d8", "") in new stack
  == Spawn extension (SIP-1579949634-incoming, 00375445557090, 1) exited non-zero on 'PJSIP/SIP-1579949634-000002d8'
    -- PJSIP/SIP-1579949634-000002d8 Internal Gosub(dial_create_chan,s,1) complete GOSUB_RETVAL=
    -- Called PJSIP/00375445557090@SIP-1579949634
  == Begin MixMonitor Recording PJSIP/SIP-1579949634-000002d8
    -- PJSIP/SIP-1579949634-000002d8 is ringing
       > 0x2b9f1c168f20 -- Strict RTP learning after remote address set to: 10.126.17.233:30604
    -- PJSIP/SIP-1579949634-000002d8 is ringing
    -- PJSIP/SIP-1579949634-000002d8 answered PJSIP/1303-000002d7
    -- PJSIP/SIP-1579949634-000002d8 Internal Gosub(dial_answer,s,1) start
    -- Executing [s@dial_answer:1] AGI("PJSIP/SIP-1579949634-000002d8", "/etc/asterisk/agi-bin/clean_timeout.php")
    -- Launched AGI Script /etc/asterisk/agi-bin/clean_timeout.php
    -- <PJSIP/SIP-1579949634-000002d8>AGI Script /etc/asterisk/agi-bin/clean_timeout.php completed, returning 0
    -- Executing [s@dial_answer:1] UserEvent("PJSIP/SIP-1579949634-000002d8", "CdrConnector,AgiData:eyJCUklER0VQRUVSIjoiUEpTSVAvMTMwMy0wMDAwMDJkNyIsIkVORENBTExPTkFOU1dFUiI6IiIsImFjdGlvbiI6ImRpYWxfYW5zd2VyIiwiYWdpX2NoYW5uZWwiOiJQSlNJUC9TSVAtMTU3OTk0OTYzNC0wMDAwMDJkOCIsImFuc3dlciI6IjIwMjAtMDMtMjcgMTM6Mjk6MjIuODQzIiwiZG5pZCI6IiIsImRzdF9udW0iOiIwMDM3NTQ0NTU1NzA5MCIsImlkIjoibWlrb3BieC0xNTg1MzA0OTU1LjE3ODVfMTE4YjlYIiwibGlua2VkaWQiOiJtaWtvcGJ4LTE1ODUzMDQ5NTUuMTc4NSJ9")
    -- Executing [s@dial_answer:1] return("PJSIP/SIP-1579949634-000002d8", "")
  == Spawn extension (SIP-1579949634-incoming, , 1) exited non-zero on 'PJSIP/SIP-1579949634-000002d8'
    -- PJSIP/SIP-1579949634-000002d8 Internal Gosub(dial_answer,s,1) complete GOSUB_RETVAL=
       > 0x2b9f500b1ca0 -- Strict RTP learning after remote address set to: 10.10.0.150:12468
    -- Channel PJSIP/SIP-1579949634-000002d8 joined 'simple_bridge' basic-bridge <4d011624-f07c-4dec-b1ae-2d21ddaba679>
    -- Channel PJSIP/1303-000002d7 joined 'simple_bridge' basic-bridge <4d011624-f07c-4dec-b1ae-2d21ddaba679>
       > 0x2b9f500b1ca0 -- Strict RTP switching to RTP target address 10.10.0.150:12468 as source
       > 0x2b9f1c168f20 -- Strict RTP switching to RTP target address 10.126.17.233:30604 as source
       > 0x2b9f1c168f20 -- Strict RTP learning complete - Locking on source address 10.126.17.233:30604
    -- Channel PJSIP/SIP-1579949634-000002d8 left 'simple_bridge' basic-bridge <4d011624-f07c-4dec-b1ae-2d21ddaba679>
    -- Channel PJSIP/1303-000002d7 left 'simple_bridge' basic-bridge <4d011624-f07c-4dec-b1ae-2d21ddaba679>
    -- PJSIP/SIP-1579949634-000002d8 Internal Gosub(hangup_handler,s,1) start
    -- Executing [s@hangup_handler:1] NoOp("PJSIP/SIP-1579949634-000002d8", "--- hangup - PJSIP/SIP-1579949634-000002d8 ---") in new stack
    -- Executing [s@hangup_handler:2] Gosub("PJSIP/SIP-1579949634-000002d8", "hangup_chan,s,1") in new stack
  == Spawn extension (SIP-1579949634-28-outgoing, 00375445557090, 13) exited non-zero on 'PJSIP/1303-000002d7'
    -- PJSIP/1303-000002d7 Internal Gosub(hangup_handler,s,1) start
    -- Executing [s@hangup_handler:1] NoOp("PJSIP/1303-000002d7", "--- hangup - PJSIP/1303-000002d7 ---") in new stack
    -- Executing [s@hangup_handler:2] Gosub("PJSIP/1303-000002d7", "hangup_chan,s,1") in new stack
    -- Executing [s@hangup_chan:1] UserEvent("PJSIP/SIP-1579949634-000002d8", "CdrConnector,AgiData:eyJPTERfTElOS0VESUQiOiJtaWtvcGJ4LTE1ODUzMDQ5NTUuMTc4NSIsIlVOSVFVRUlEIjoibWlrb3BieC0xNTg1MzA0OTU1LjE3ODVfMTE4YjlYIiwiYWN0aW9uIjoiaGFuZ3VwX2NoYW4iLCJhZ2lfY2hhbm5lbCI6IlBKU0lQL1NJUC0xNTc5OTQ5NjM0LTAwMDAwMmQ4IiwiYWdpX3RocmVhZGlkIjoibWlrb3BieC0xNTg1MzA0OTU1LjE3ODZfQ1MxTXBXIiwiZGlhbHN0YXR1cyI6IiIsImRpZCI6IiIsImVuZCI6IjIwMjAtMDMtMjcgMTM6Mjk6MjUuMDA3IiwibGlua2VkaWQiOiJtaWtvcGJ4LTE1ODUzMDQ5NTUuMTc4NSJ9")
    -- Executing [s@hangup_chan:1] return("PJSIP/SIP-1579949634-000002d8", "")
    -- Executing [s@hangup_chan:1] UserEvent("PJSIP/1303-000002d7", "CdrConnector,AgiData:eyJPTERfTElOS0VESUQiOiJtaWtvcGJ4LTE1ODUzMDQ5NTUuMTc4NSIsIlVOSVFVRUlEIjoibWlrb3BieC0xNTg1MzA0OTU1LjE3ODVfMTE4YjlYIiwiYWN0aW9uIjoiaGFuZ3VwX2NoYW4iLCJhZ2lfY2hhbm5lbCI6IlBKU0lQLzEzMDMtMDAwMDAyZDciLCJhZ2lfdGhyZWFkaWQiOiJtaWtvcGJ4LTE1ODUzMDQ5NTUuMTc4NV81d1JXazciLCJkaWFsc3RhdHVzIjoiQU5TV0VSRUQiLCJkaWQiOiIiLCJlbmQiOiIyMDIwLTAzLTI3IDEzOjI5OjI1LjAwOSIsImxpbmtlZGlkIjoibWlrb3BieC0xNTg1MzA0OTU1LjE3ODUifQ==")
    -- Executing [s@hangup_chan:1] return("PJSIP/1303-000002d7", "")
    -- Executing [s@hangup_handler:3] Return("PJSIP/SIP-1579949634-000002d8", "") in new stack
  == Spawn extension (SIP-1579949634-incoming, , 1) exited non-zero on 'PJSIP/SIP-1579949634-000002d8'
    -- PJSIP/SIP-1579949634-000002d8 Internal Gosub(hangup_handler,s,1) complete GOSUB_RETVAL=
  == MixMonitor close filestream (mixed)
  == Executing [/bin/nice -n 19 /usr/bin/lame -b 32 --silent "/storage/usbdisk1/mikopbx/voicemailarchive/monitor/2020/03/27/13/mikopbx-1585304955.1785_118b9X.wav" "/storage/usbdisk1/mikopbx/voicemailarchive/monitor/2020/03/27/13/mikopbx-1585304955.1785_118b9X.mp3" && /bin/chmod o+r "/storage/usbdisk1/mikopbx/voicemailarchive/monitor/2020/03/27/13/mikopbx-1585304955.1785_118b9X.mp3"]
    -- Executing [s@hangup_handler:3] Return("PJSIP/1303-000002d7", "") in new stack
  == Spawn extension (SIP-1579949634-28-outgoing, 00375445557090, 13) exited non-zero on 'PJSIP/1303-000002d7'
    -- PJSIP/1303-000002d7 Internal Gosub(hangup_handler,s,1) complete GOSUB_RETVAL=
  == End MixMonitor Recording PJSIP/SIP-1579949634-000002d8
от (56.6 тыс. баллов)

понятно, универсального места нет. тут сработала особенность asterisk

контекст outgoing включен в контекст peer_1303, потому канал не попадает в outgoing а остается в peer_1303, кастомизировать нужно peer_1303-custom, что не целесообразно

от (540 баллов)
полагаю, что на предыдущих сборках работало, раз есть инструкция. Есть возможность включить в будущих сборках?
от (56.6 тыс. баллов)

все, что описано в инструкции работает. 

по поводу "outgoing-custom" обдумаю, можно и поправить

На этом сайте можно бесплатно задать вопрос разработчикам MikoPBX и другим членам сообщества. Время ответа не регламентированно, но мы стараемся несколько раз в день заглядывать сюда. Для срочного решения проблем обращайтесь на платную линию поддержки

Популярные теги

askozia провайдер входящие-вызовы настройка запись-разговоров маршрутизация ivr провайдеры маршрут askozia6 очередь askozia7 запись обновление факс очередь-вызовов переадресация транк исходящие-звонки веб-интерфейс ascozia история мобильный callerid интеграция логи перехват-вызова провайдеров редактор разговоров nat релиз goip аон установка маршруты диалплан тишина smtp gsm панель-телефонии-1с перевод-вызова звонок лицензия панель askozia-5 переадресация-мобильный префиксы телефонная-книга время голосовая-почта голосовая почта парковка вызовы перевод vmware мультифон мегафон битрикс bitrix24 донабор настройка-провайдер статистика перехват вызовов номер asterisk skype ssh 2 web-интерфейс дополнительный-диск распределение проброс-портов beta задержки настройка-исходящие-исходящих-вызов-вызовов подменю goip4 отправка-факса железо grandstream beeline digium bruteforce взлом приложение zadarma исходящие fax web cdr времени модуль pickup yealink меню ростелеком

1.6 тыс. вопросов

1.3 тыс. ответов

3.2 тыс. комментариев

2.5 тыс. пользователей

...