Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Connected Line sensor does not work. #90

Open
DaN66O opened this issue Aug 9, 2023 · 8 comments
Open

The Connected Line sensor does not work. #90

DaN66O opened this issue Aug 9, 2023 · 8 comments

Comments

@DaN66O
Copy link

DaN66O commented Aug 9, 2023

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.
Screenshot_30

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.

@DaN66O
Copy link
Author

DaN66O commented Aug 13, 2023

p.s.s
If the endpoint is set digitally, then the Connected Line is determined.
If endpoint = name, then Connected Line always = none

@TECH7Fox
Copy link
Owner

Do you get any errors in the HA logs from the integration?

@DaN66O
Copy link
Author

DaN66O commented Aug 28, 2023

There are no errors in the logs even when the debug is enabled.

@TECH7Fox
Copy link
Owner

Do you see the Ami send the connected line event in the asterisk logs with Ami debug enabled?

@DaN66O
Copy link
Author

DaN66O commented Aug 29, 2023

Need to enable AMI debugging in Asterisk ?
I didn't check that.
Can you tell me how to check it ?

@TECH7Fox
Copy link
Owner

TECH7Fox commented Aug 29, 2023

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.

@DaN66O
Copy link
Author

DaN66O commented Aug 29, 2023

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

@DaN66O
Copy link
Author

DaN66O commented Aug 29, 2023

And this is already information when the endpoint is set in numbers.
connect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants