1151[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] res_agi.c: <PJSIP/112-00000006>AGI Script agi://127.0.0.1/dialparties.agi completed, returning 0
1152[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial:8] GotoIf("PJSIP/112-00000006", "1?normdial") in new stack
1153[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx_builtins.c: Goto (macro-dial,s,11)
1154[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial:11] NoOp("PJSIP/112-00000006", "Returned from dialparties with groups to dial") in new stack
1155[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial:12] NoOp("PJSIP/112-00000006", "ringall array ") in new stack
1156[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial:13] Set("PJSIP/112-00000006", "__FMGL_DIAL=") in new stack
1157[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial:14] Set("PJSIP/112-00000006", "LOOPCNT=1") in new stack
1158[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial:15] Set("PJSIP/112-00000006", "ITER=1") in new stack
1159[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial:16] Set("PJSIP/112-00000006", "__EXTTOCALL=111") in new stack
1160[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial:17] NoOp("PJSIP/112-00000006", "Working with 111") in new stack
1161[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial:18] ExecIf("PJSIP/112-00000006", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
1162[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial:19] ExecIf("PJSIP/112-00000006", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
1163[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial:20] Set("PJSIP/112-00000006", "ITER=2") in new stack
1164[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial:21] GotoIf("PJSIP/112-00000006", "0?ndloopbegin") in new stack
1165[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial:22] Macro("PJSIP/112-00000006", "dial-ringall-predial-hook,") in new stack
1166[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial-ringall-predial-hook:1] MacroExit("PJSIP/112-00000006", "") in new stack
1167[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial:23] ExecIf("PJSIP/112-00000006", "0?Set(CWRING=r(callwaiting)):Set(CWRING=)") in new stack
1168[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial:24] ExecIf("PJSIP/112-00000006", "0?Set(ds=PJSIP/111/sip:111@192.168.1.46:49955;ob,27,HhTtrIM(auto-blkvm)g)") in new stack
1169[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-dial:25] Dial("PJSIP/112-00000006", "PJSIP/111/sip:111@192.168.1.46:49955;ob,27,HhTtrIM(auto-blkvm)b(func-apply-sipheaders^s^1),") in new stack
1170[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] app_stack.c: PJSIP/111-00000007 Internal Gosub(func-apply-sipheaders,s,1) start
1171[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@func-apply-sipheaders:1] ExecIf("PJSIP/111-00000007", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
1172[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@func-apply-sipheaders:2] NoOp("PJSIP/111-00000007", "Applying SIP Headers to channel PJSIP/111-00000007") in new stack
1173[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@func-apply-sipheaders:3] Set("PJSIP/111-00000007", "TECH=PJSIP") in new stack
1174[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@func-apply-sipheaders:4] Set("PJSIP/111-00000007", "SIPHEADERKEYS=") in new stack
1175[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@func-apply-sipheaders:5] While("PJSIP/111-00000007", "0") in new stack
1176[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] app_while.c: Jumping to priority 13
1177[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@func-apply-sipheaders:14] Return("PJSIP/111-00000007", "") in new stack
1178[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] app_stack.c: Spawn extension (from-internal, 111, 1) exited non-zero on 'PJSIP/111-00000007'
1179[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] app_stack.c: PJSIP/111-00000007 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
1180[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] app_dial.c: Called PJSIP/111/sip:111@192.168.1.46:49955;ob
1181[2021-02-12 12:01:41] VERBOSE[10864] netsock2.c: Using SIP RTP Audio TOS bits 184
1182[2021-02-12 12:01:41] VERBOSE[10864] netsock2.c: Using SIP RTP Audio TOS bits 184 in TCLASS field.
1183[2021-02-12 12:01:41] VERBOSE[10864] netsock2.c: Using SIP RTP Audio CoS mark 5
1184[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] app_dial.c: Connected line update to PJSIP/112-00000006 prevented.
1185[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] app_dial.c: PJSIP/111-00000007 answered PJSIP/112-00000006
1186[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-auto-blkvm:1] Set("PJSIP/111-00000007", "__MACRO_RESULT=") in new stack
1187[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-auto-blkvm:2] Set("PJSIP/111-00000007", "CFIGNORE=") in new stack
1188[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-auto-blkvm:3] Set("PJSIP/111-00000007", "MASTER_CHANNEL(CFIGNORE)=") in new stack
1189[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-auto-blkvm:4] Set("PJSIP/111-00000007", "FORWARD_CONTEXT=from-internal") in new stack
1190[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-auto-blkvm:5] Set("PJSIP/111-00000007", "MASTER_CHANNEL(FORWARD_CONTEXT)=from-internal") in new stack
1191[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-auto-blkvm:6] Macro("PJSIP/111-00000007", "blkvm-clr,") in new stack
1192[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-blkvm-clr:1] Set("PJSIP/111-00000007", "SHARED(BLKVM,PJSIP/112-00000006)=") in new stack
1193[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-blkvm-clr:2] Set("PJSIP/111-00000007", "GOSUB_RETVAL=") in new stack
1194[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-blkvm-clr:3] MacroExit("PJSIP/111-00000007", "") in new stack
1195[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-auto-blkvm:7] ExecIf("PJSIP/111-00000007", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=111/sip:111@192.168.1.46:49955;ob)") in new stack
1196[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] pbx.c: Executing [s@macro-auto-blkvm:8] ExecIf("PJSIP/111-00000007", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=)") in new stack
1197[2021-02-12 12:01:41] VERBOSE[4723][C-00000004] bridge_channel.c: Channel PJSIP/111-00000007 joined 'simple_bridge' basic-bridge <630802fe-9500-4af9-b3d7-a6a9458101a3>
1198[2021-02-12 12:01:41] VERBOSE[4719][C-00000004] bridge_channel.c: Channel PJSIP/112-00000006 joined 'simple_bridge' basic-bridge <630802fe-9500-4af9-b3d7-a6a9458101a3>
2.Человек подключается к VPN, затем по RDP подключается на компьютер где находится 1С (1С сама на 10 человек расчет). В самой 1С подключенной по RDP делают запрос на печать чека. В 1С в настройках установлен драйвер работающий на COM4 для печати. Печать идет около 5-8 минут 1-го чека.
3.Драйвер кассы работает на предприятии А, где находится 1С.
4. ---
5. Предприятия находятся в А и Б в разных городах, и в данный момент способ подключится от Б к А является RDP и VPN.