The Connected Line sensor does not work.
Open
DaN66O
opened this issue 1 year ago
•
8 comments
I have compiled asterisk version 20.4.0 from the sources.
The integration of the latest version is installed and the AMI is configured in the manager.conf file.
AMI Connected. I see connected devices.
I see the status of the device, but I do not see the information in the Connected Line sensor during the call.
What do I need to configure to see the sensor value in the Connected Line ?
It always has the value "None".
p.s. I only use pjsip.
p.s.s
If the endpoint is set digitally, then the Connected Line is determined.
If endpoint = name, then Connected Line always = none
Do you get any errors in the HA logs from the integration?
There are no errors in the logs even when the debug is enabled.
Do you see the Ami send the connected line event in the asterisk logs with Ami debug enabled?
Need to enable AMI debugging in Asterisk ?
I didn't check that.
Can you tell me how to check it ?
I think it was manager set debug on
in the Asterisk CLI.
Then you should see every event it sends. Please share the connected line events.
I see that AMI is sending the connected line event in the asterisk logs.
The log was too big. I post the part where you can see that the information is being sent.
[Aug 29 19:13:56]
[Aug 29 19:13:56] <-- Examining AMI event: -->
[Aug 29 19:13:56] Event: DialBegin
[Aug 29 19:13:56] Privilege: call,all
[Aug 29 19:13:56] SequenceNumber: 25
[Aug 29 19:13:56] File: manager_channels.c
[Aug 29 19:13:56] Line: 1266
[Aug 29 19:13:56] Func: channel_dial_cb
[Aug 29 19:13:56] Channel: PJSIP/spa-00000002
[Aug 29 19:13:56] ChannelState: 4
[Aug 29 19:13:56] ChannelStateDesc: Ring
[Aug 29 19:13:56] CallerIDNum: 527
[Aug 29 19:13:56] CallerIDName: Home_1
[Aug 29 19:13:56] ConnectedLineNum:
[Aug 29 19:13:56] ConnectedLineName:
[Aug 29 19:13:56] Language: ru
[Aug 29 19:13:56] AccountCode:
[Aug 29 19:13:56] Context: local-incoming
[Aug 29 19:13:56] Exten: 528
[Aug 29 19:13:56] Priority: 4
[Aug 29 19:13:56] Uniqueid: 1693325636.3
[Aug 29 19:13:56] Linkedid: 1693325636.3
[Aug 29 19:13:56] DestChannel: PJSIP/pap2t-00000003
[Aug 29 19:13:56] DestChannelState: 0
[Aug 29 19:13:56] DestChannelStateDesc: Down
[Aug 29 19:13:56] DestCallerIDNum: 528
[Aug 29 19:13:56] DestCallerIDName: Home_2
[Aug 29 19:13:56] DestConnectedLineNum: 527
[Aug 29 19:13:56] DestConnectedLineName: Home_1
[Aug 29 19:13:56] DestLanguage: ru
[Aug 29 19:13:56] DestAccountCode:
[Aug 29 19:13:56] DestContext: local-incoming
[Aug 29 19:13:56] DestExten: 528
[Aug 29 19:13:56] DestPriority: 1
[Aug 29 19:13:56] DestUniqueid: 1693325636.4
[Aug 29 19:13:56] DestLinkedid: 1693325636.3
[Aug 29 19:13:56] DialString: pap2t/line1p2
[Aug 29 19:13:56]
[Aug 29 19:13:56] <-- Examining AMI event: -->
[Aug 29 19:13:56] Event: NewConnectedLine
[Aug 29 19:13:56] Privilege: call,all
[Aug 29 19:13:56] SequenceNumber: 26
[Aug 29 19:13:56] File: manager_channels.c
[Aug 29 19:13:56] Line: 739
[Aug 29 19:13:56] Func: channel_snapshot_update
[Aug 29 19:13:56] Channel: PJSIP/spa-00000002
[Aug 29 19:13:56] ChannelState: 4
[Aug 29 19:13:56] ChannelStateDesc: Ring
[Aug 29 19:13:56] CallerIDNum: 527
[Aug 29 19:13:56] CallerIDName: Home_1
[Aug 29 19:13:56] ConnectedLineNum: 528
[Aug 29 19:13:56] ConnectedLineName: Home_2
[Aug 29 19:13:56] Language: ru
[Aug 29 19:13:56] AccountCode:
[Aug 29 19:13:56] Context: local-incoming
[Aug 29 19:13:56] Exten: 528
[Aug 29 19:13:56] Priority: 4
[Aug 29 19:13:56] Uniqueid: 1693325636.3
[Aug 29 19:13:56] Linkedid: 1693325636.3
[Aug 29 19:13:56]
[Aug 29 19:13:56] <-- Examining AMI event: -->
[Aug 29 19:13:56] Event: Newstate
[Aug 29 19:13:56] Privilege: call,all
[Aug 29 19:13:56] SequenceNumber: 27
[Aug 29 19:13:56] File: manager_channels.c
[Aug 29 19:13:56] Line: 739
[Aug 29 19:13:56] Func: channel_snapshot_update
[Aug 29 19:13:56] Channel: PJSIP/pap2t-00000003
[Aug 29 19:13:56] ChannelState: 5
[Aug 29 19:13:56] ChannelStateDesc: Ringing
[Aug 29 19:13:56] CallerIDNum: 528
[Aug 29 19:13:56] CallerIDName: Home_2
[Aug 29 19:13:56] ConnectedLineNum: 527
[Aug 29 19:13:56] ConnectedLineName: Home_1
[Aug 29 19:13:56] Language: ru
[Aug 29 19:13:56] AccountCode:
[Aug 29 19:13:56] Context: local-incoming
[Aug 29 19:13:56] Exten: 528
[Aug 29 19:13:56] Priority: 1
[Aug 29 19:13:56] Uniqueid: 1693325636.4
[Aug 29 19:13:56] Linkedid: 1693325636.3
[Aug 29 19:13:56]
[Aug 29 19:13:56]
[Aug 29 19:13:56] <-- Examining AMI event: -->
[Aug 29 19:13:56] Event: DeviceStateChange
[Aug 29 19:13:56] Privilege: call,all
[Aug 29 19:13:56] SequenceNumber: 28
[Aug 29 19:13:56] File: manager.c
[Aug 29 19:13:56] Line: 1984
[Aug 29 19:13:56] Func: manager_default_msg_cb
[Aug 29 19:13:56] Device: PJSIP/pap2t
[Aug 29 19:13:56] State: RINGING
[Aug 29 19:13:56]
[Aug 29 19:13:56]
[Aug 29 19:13:56] <-- Examining AMI event: -->
[Aug 29 19:13:56] Event: DeviceStateChange
[Aug 29 19:13:56] Privilege: call,all
[Aug 29 19:13:56] SequenceNumber: 29
[Aug 29 19:13:56] File: manager.c
[Aug 29 19:13:56] Line: 1984
[Aug 29 19:13:56] Func: manager_default_msg_cb
[Aug 29 19:13:56] Device: PJSIP/spa
[Aug 29 19:13:56] State: INUSE
[Aug 29 19:13:56]
[Aug 29 19:13:56]
[Aug 29 19:13:56] <-- Examining AMI event: -->
[Aug 29 19:13:56] Event: VarSet
[Aug 29 19:13:56] Privilege: dialplan,all
[Aug 29 19:13:56] SequenceNumber: 30
[Aug 29 19:13:56] File: manager.c
[Aug 29 19:13:56] Line: 1984
[Aug 29 19:13:56] Func: manager_default_msg_cb
[Aug 29 19:13:56] Channel: PJSIP/spa-00000002
[Aug 29 19:13:56] ChannelState: 4
[Aug 29 19:13:56] ChannelStateDesc: Ring
[Aug 29 19:13:56] CallerIDNum: 527
[Aug 29 19:13:56] CallerIDName: Home_1
[Aug 29 19:13:56] ConnectedLineNum: 528
[Aug 29 19:13:56] ConnectedLineName: Home_2
[Aug 29 19:13:56] Language: ru
[Aug 29 19:13:56] AccountCode:
[Aug 29 19:13:56] Context: local-incoming
[Aug 29 19:13:56] Exten: 528
[Aug 29 19:13:56] Priority: 4
[Aug 29 19:13:56] Uniqueid: 1693325636.3
[Aug 29 19:13:56] Linkedid: 1693325636.3
[Aug 29 19:13:56] Variable: RINGTIME
[Aug 29 19:13:56] Value: 0
[Aug 29 19:13:56]
[Aug 29 19:13:56]
[Aug 29 19:13:56] <-- Examining AMI event: -->
[Aug 29 19:13:56] Event: VarSet
[Aug 29 19:13:56] Privilege: dialplan,all
[Aug 29 19:13:56] SequenceNumber: 31
[Aug 29 19:13:56] File: manager.c
[Aug 29 19:13:56] Line: 1984
[Aug 29 19:13:56] Func: manager_default_msg_cb
[Aug 29 19:13:56] Channel: PJSIP/spa-00000002
[Aug 29 19:13:56] ChannelState: 4
[Aug 29 19:13:56] ChannelStateDesc: Ring
[Aug 29 19:13:56] CallerIDNum: 527
[Aug 29 19:13:56] CallerIDName: Home_1
[Aug 29 19:13:56] ConnectedLineNum: 528
[Aug 29 19:13:56] ConnectedLineName: Home_2
[Aug 29 19:13:56] Language: ru
[Aug 29 19:13:56] AccountCode:
[Aug 29 19:13:56] Context: local-incoming
[Aug 29 19:13:56] Exten: 528
[Aug 29 19:13:56] Priority: 4
[Aug 29 19:13:56] Uniqueid: 1693325636.3
[Aug 29 19:13:56] Linkedid: 1693325636.3
[Aug 29 19:13:56] Variable: RINGTIME_MS
[Aug 29 19:13:56] Value: 33
[Aug 29 19:13:56]
[Aug 29 19:13:56]
[Aug 29 19:13:56] <-- Examining AMI event: -->
[Aug 29 19:13:56] Event: DialState
[Aug 29 19:13:56] Privilege: call,all
[Aug 29 19:13:56] SequenceNumber: 32
[Aug 29 19:13:56] File: manager_channels.c
[Aug 29 19:13:56] Line: 1276
[Aug 29 19:13:56] Func: channel_dial_cb
[Aug 29 19:13:56] Channel: PJSIP/spa-00000002
[Aug 29 19:13:56] ChannelState: 4
[Aug 29 19:13:56] ChannelStateDesc: Ring
[Aug 29 19:13:56] CallerIDNum: 527
[Aug 29 19:13:56] CallerIDName: Home_1
[Aug 29 19:13:56] ConnectedLineNum: 528
[Aug 29 19:13:56] ConnectedLineName: Home_2
[Aug 29 19:13:56] Language: ru
[Aug 29 19:13:56] AccountCode:
[Aug 29 19:13:56] Context: local-incoming
[Aug 29 19:13:56] Exten: 528
[Aug 29 19:13:56] Priority: 4
[Aug 29 19:13:56] Uniqueid: 1693325636.3
[Aug 29 19:13:56] Linkedid: 1693325636.3
[Aug 29 19:13:56] DestChannel: PJSIP/pap2t-00000003
[Aug 29 19:13:56] DestChannelState: 5
[Aug 29 19:13:56] DestChannelStateDesc: Ringing
[Aug 29 19:13:56] DestCallerIDNum: 528
[Aug 29 19:13:56] DestCallerIDName: Home_2
[Aug 29 19:13:56] DestConnectedLineNum: 527
[Aug 29 19:13:56] DestConnectedLineName: Home_1
[Aug 29 19:13:56] DestLanguage: ru
[Aug 29 19:13:56] DestAccountCode:
[Aug 29 19:13:56] DestContext: local-incoming
[Aug 29 19:13:56] DestExten: 528
[Aug 29 19:13:56] DestPriority: 1
[Aug 29 19:13:56] DestUniqueid: 1693325636.4
[Aug 29 19:13:56] DestLinkedid: 1693325636.3
[Aug 29 19:13:56] DialStatus: RINGING
And this is already information when the endpoint is set in numbers.