Asterisk 1.6 + FreePBX 2.8
Настроил и работает,
Сделал интеграцию с SugarCRM
Что бы высвечивалась карточка клиента нужен CallarID, но у меня
Кода идет перевод входящего звонка без уведомления CallarID передается
Но когда делаешь перевод входящего звонка с уведомлением (нажатием *2) CallarID не передается.
Вопрос:
Как настроить Asterisk что бы передавался CallarID при переводе с уведомлением?
Или как перевести с уведомлением при этом передать CallarID.
Вот логи
В первом случае перевод с уведомлением (разговорим)
Разговор идет со 204 на 102 перевод на 101
##########################################################################################################################################
Really destroying SIP dialog '0e4b812c0a0134765a7bb91b5bd971c3@195.189.110.148' Method: OPTIONS
-- Started music on hold, class 'default', on SIP/204-00000000
-- <SIP/102-00000001> Playing 'pbx-transfer.slin' (language 'ru')
-- Executing [101@from-internal-xfer:1] GotoIf("Local/101@from-internal-xfer-4a37;2", "0?ext-local,101,1") in new stack
-- Executing [101@from-internal-xfer:2] Macro("Local/101@from-internal-xfer-4a37;2", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("Local/101@from-internal-xfer-4a37;2", "AMPUSER=102") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("Local/101@from-internal-xfer-4a37;2", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("Local/101@from-internal-xfer-4a37;2", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("Local/101@from-internal-xfer-4a37;2", "__TTL=63") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("Local/101@from-internal-xfer-4a37;2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("Local/101@from-internal-xfer-4a37;2", "CALLERID(number)=102") in new stack
-- Executing [s@macro-user-callerid:20] Set("Local/101@from-internal-xfer-4a37;2", "CALLERID(name)=") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("Local/101@from-internal-xfer-4a37;2", "Using CallerID "" <102>") in new stack
-- Executing [101@from-internal-xfer:3] GotoIf("Local/101@from-internal-xfer-4a37;2", "0?skipdb") in new stack
-- Executing [101@from-internal-xfer:4] GotoIf("Local/101@from-internal-xfer-4a37;2", "0?skipov") in new stack
-- Executing [101@from-internal-xfer:5] Set("Local/101@from-internal-xfer-4a37;2", "__NODEST=") in new stack
-- Executing [101@from-internal-xfer:6] Set("Local/101@from-internal-xfer-4a37;2", "__BLKVM_OVERRIDE=BLKVM/101/Local/101@from-internal-xfer-4a37;2") in new stack
-- Executing [101@from-internal-xfer:7] Set("Local/101@from-internal-xfer-4a37;2", "__BLKVM_BASE=101") in new stack
-- Executing [101@from-internal-xfer:8] Set("Local/101@from-internal-xfer-4a37;2", "DB(BLKVM/101/Local/101@from-internal-xfer-4a37;2)=TRUE") in new stack
-- Executing [101@from-internal-xfer:9] Set("Local/101@from-internal-xfer-4a37;2", "RRNODEST=") in new stack
-- Executing [101@from-internal-xfer:10] Set("Local/101@from-internal-xfer-4a37;2", "__NODEST=101") in new stack
-- Executing [101@from-internal-xfer:11] GosubIf("Local/101@from-internal-xfer-4a37;2", "0?sub-fmsetcid,s,1") in new stack
-- Executing [101@from-internal-xfer:12] Set("Local/101@from-internal-xfer-4a37;2", "RecordMethod=Group") in new stack
-- Executing [101@from-internal-xfer:13] Macro("Local/101@from-internal-xfer-4a37;2", "record-enable,89122321010#,Group") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("Local/101@from-internal-xfer-4a37;2", "1?check") in new stack
Во втором перевод без разговора. В этом случае звон идет вначале на 102 со 204 и далее на 203
#############################################################################################################################################
== Channel 'SIP/204-00000006' jumping out of macro 'dial'
== Channel 'SIP/204-00000006' jumping out of macro 'simple-dial'
-- Executing [203@from-internal-xfer:1] Macro("SIP/204-00000006", "exten-vm,203,203") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/204-00000006", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/204-00000006", "AMPUSER=204") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/204-00000006", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/204-00000006", "0?Set(REALCALLERIDNUM=204)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/204-00000006", "AMPUSER=204") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/204-00000006", "AMPUSERCIDNAME=Trubka") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/204-00000006", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/204-00000006", "AMPUSERCID=204") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/204-00000006", "CALLERID(all)="Trubka" <204>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/204-00000006", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/204-00000006", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/204-00000006", "__TTL=63") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/204-00000006", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("SIP/204-00000006", "CALLERID(number)=204") in new stack
-- Executing [s@macro-user-callerid:20] Set("SIP/204-00000006", "CALLERID(name)=Trubka") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("SIP/204-00000006", "Using CallerID "Trubka" <204>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/204-00000006", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/204-00000006", "VMBOX=203") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/204-00000006", "EXTTOCALL=203") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/204-00000006", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/204-00000006", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/204-00000006", "RT=15") in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/204-00000006", "record-enable,203,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/204-00000006", "0?check") in new stack
-- Executing [s@macro-record-enable:2] ResetCDR("SIP/204-00000006", "w") in new stack
-- Executing [s@macro-record-enable:3] StopMixMonitor("SIP/204-00000006", "") in new stack
-- Executing [s@macro-record-enable:4] ExecIf("SIP/204-00000006", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/204-00000006", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/204-00000006", "1?IN") in new stack
-- Goto (macro-record-enable,s,20)
-- Executing [s@macro-record-enable:20] ExecIf("SIP/204-00000006", "1?MacroExit()") in new stack
А как вы себе представляете перевод с уведомлением с передачей CLID? Оно может только обновляться при установленной sendrpid на 1.8 ветке. А вот как высылать уведомление в Sugar - это точно вопрос не сюда.