|
brige возвращает два канала. Для каждого из каналов в процедуре "СоздатьДокументТелефонныйЗвонок" (передал в неё каналы в первом параметре "Вызов") делаю так: Код |
---|
ПолучитьПеременнуюКаналаАсинхронно(Канал, "exten"); |
Получаю следующие логи: Скрытый текст |
---|
[Newchannel] new Structure("event, privilege, channel, channelstate, channelstatedesc, calleridnum, calleridname, accountcode, exten, context, uniqueid","Newchannel", "call,all", "SIP/calltouch-000000bf", "0", "Down", "74957952333", "74957952333", "", "4952667835", "from-trunk", "1448374695.453") [Newstate] new Structure("event, privilege, channel, channelstate, channelstatedesc, calleridnum, calleridname, connectedlinenum, connectedlinename, uniqueid","Newstate", "call,all", "SIP/calltouch-000000bf", "4", "Ring", "74957952333", "74957952333", "", "", "1448374695.453") [UserEvent] new Structure("event, privilege, userevent, uniqueid, callerid, channel","UserEvent", "user,all", "Interception", "1448374695.453", "74957952333", "SIP/calltouch-000000bf") [Newstate] new Structure("event, privilege, channel, channelstate, channelstatedesc, calleridnum, calleridname, connectedlinenum, connectedlinename, uniqueid","Newstate", "call,all", "SIP/calltouch-000000bf", "6", "Up", "74957952333", "74957952333", "", "", "1448374695.453") [NewCallerid] new Structure("event, privilege, channel, calleridnum, calleridname, uniqueid, cid_callingpres","NewCallerid", "call,all", "SIP/calltouch-000000bf", "74957952333", "74957952333", "1448374695.453", "0 (Presentation Allowed, Not Screened)") [NewCallerid] new Structure("event, privilege, channel, calleridnum, calleridname, uniqueid, cid_callingpres","NewCallerid", "call,all", "SIP/calltouch-000000bf", "74957952333", "74957952333", "1448374695.453", "0 (Presentation Allowed, Not Screened)") [Newchannel] new Structure("event, privilege, channel, channelstate, channelstatedesc, calleridnum, calleridname, accountcode, exten, context, uniqueid","Newchannel", "call,all", "SIP/120-000000c0", "0", "Down", "120", "reception", "", "", "local-city-mobile-mg-mn", "1448374700.454") [ExtensionStatus] new Structure("event, privilege, exten, context, hint, status","ExtensionStatus", "call,all", "120", "ext-local", "SIP/120,CustomPresence:120", "8") [Dial] new Structure("event, privilege, subevent, channel, destination, calleridnum, calleridname, connectedlinenum, connectedlinename, uniqueid, destuniqueid, dialstring","Dial", "call,all", "Begin", "SIP/calltouch-000000bf", "SIP/120-000000c0", "74957952333", "74957952333", "<unknown>", "<unknown>", "1448374695.453", "1448374700.454", "120") [Newstate] new Structure("event, privilege, channel, channelstate, channelstatedesc, calleridnum, calleridname, connectedlinenum, connectedlinename, uniqueid","Newstate", "call,all", "SIP/120-000000c0", "5", "Ringing", "120", "reception", "74957952333", "74957952333", "1448374700.454") [ExtensionStatus] new Structure("event, privilege, exten, context, hint, status","ExtensionStatus", "call,all", "120", "ext-local", "SIP/120,CustomPresence:120", "1") [Newstate] new Structure("event, privilege, channel, channelstate, channelstatedesc, calleridnum, calleridname, connectedlinenum, connectedlinename, uniqueid","Newstate", "call,all", "SIP/120-000000c0", "6", "Up", "120", "reception", "74957952333", "74957952333", "1448374700.454") [NewAccountCode] new Structure("event, privilege, channel, uniqueid, accountcode, oldaccountcode","NewAccountCode", "call,all", "SIP/120-000000c0", "1448374700.454", "", "") [Bridge] new Structure("event, privilege, bridgestate, bridgetype, channel1, channel2, uniqueid1, uniqueid2, callerid1, callerid2","Bridge", "call,all", "Link", "core", "SIP/calltouch-000000bf", "SIP/120-000000c0", "1448374695.453", "1448374700.454", "74957952333", "120") new Structure("response, actionid, variable, value","Success", "89a0b", "exten", "") new Structure("response, actionid, variable, value","Success", "89a0b", "exten", "") |
В первой строчке [Newchannel] присутствует рекламный номер "4952667835" ключ которого "exten". Две полседние строчки - это результат процедуры "ПолучитьПеременнуюКаналаАсинхронно", запущенной для каждого канала (SIP/calltouch-000000bf и SIP/120-000000c0). Результат (value), как видите, пустой. Я не то передаю в поле "Канал", не правильно использую процедуру "ПолучитьПеременную.." или может на момент создания документа данных нет (трубка поднята)?
|