Skip to content

call_established event from dialing has caller and called reversed (same order as event from answer) #188

@gogglespisano

Description

@gogglespisano

When dialing, the call_established event appears to have the caller and called reversed. They're in the same order as when a call from 3321 to 4663 is answered.

sip account 1 (registered as 4663) is dialing 3321, however in the event 'caller' is 3321 and 'called' is 4663.

Log:

| 08:57:21.840924 [ ] Got "dial" command for sip:3321@...

| 08:57:24.437104 [1] Call connecting...
| 08:57:24.437306 [1] onCallMediaState call info state 4
| 08:57:24.437328 [1] Connected media 1

From: sip:4663@...
To: sip:3321@...
Call-ID: Nb3cmWTe6no2nBWRU0cJFVMwz1h1da.N

| 08:57:24.437379 [1] Call connected

From: sip:4663@...
To: sip:3321@...
Call-ID: Nb3cmWTe6no2nBWRU0cJFVMwz1h1da.N

Call-ID: Nb3cmWTe6no2nBWRU0cJFVMwz1h1da.N
From: <sip:4663@...
To: <sip:3321@...

| 08:57:24.438119 [1] onCallMediaState call info state 5
| 08:57:24.438141 [1] Connected media 1
| 08:57:25.445414 [1] Call is established.
| 08:57:25.445465 [ ] Calling webhook sip_global with data {'caller': 'sip:3321@...', 'called': 'sip:4663@...', 'parsed_caller': '3321', 'parsed_called': '4663', 'sip_account': 1, 'call_id': 'Nb3cmWTe6no2nBWRU0cJFVMwz1h1da.N', 'internal_id': 'sip:3321@...', 'headers': {}, 'event': 'call_established'}
| 08:57:25.450225 [ ] Webhook response 200 b''

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions