I followed the instructions of setting up telnyx with vapi and inbound and outbound calls work..
The issue is that the hangup event is reporting incorrectly.. No matter who hangs up (us or the person we are calling)
the event will report "hangup_source: 'callee'" which is incorrect!
This is why it is happening.. The number we are calling is being registered as a telnyx sip when it is not..
"{
call_control_id: 'v3:xdH5qvDdgeMjouxcmCYYk1fKE_3EDuPPxwkB8N0Cw4lkz0XKvaK4mQ',
call_leg_id: 'ed791788-b8f9-11ef-a5bb-02420aef2220',
call_session_id: 'ed791e9a-b8f9-11ef-babe-02420aef2220',
calling_party_type: 'sip',
client_state: null,
connection_id: '2582325413673960809',
custom_headers: [
{
name: 'X-Account-Sid',
value: 'b464c6be-906f-4e97-a6ff-44cd837bf4a4'
},
{
name: 'X-Call-Sid',
value: 'b5ef8d72-6367-493f-add4-7f59208e3a9d'
}
],
direction: 'outgoing',
from: '+18183810450',
from_sip_uri: '18183810450@44.229.228.186:5060',
state: 'bridging',
to: '+18182826756',
to_sip_uri: '327618182826756@sip.telnyx.com'
}"
Is there a work around to this?? @Vapi @Shubham Bajaj