All other fields are setting except from_number and to_number are showing as None in the response back. I have worked around this by creating new metadata fields but would be helpful to know why these are setting to None and how to mitigate for the future.
r
retellai
04/24/2024, 6:23 PM
@Weijia - Support@Retell cc
n
NJ
04/25/2024, 12:24 PM
@sp_99491 can you share more details? Perhaps the curl of the API call you are making. Or if you are using SDKs, then the code snippet where
register-call
is being called?
s
sp_99491
04/25/2024, 12:27 PM
im using the default twilio webhook
call_response: RegisterCallResponse = retell.call.register(
agent_id=agent_id_path,
audio_websocket_protocol="twilio",
audio_encoding="mulaw",
sample_rate=8000, # Sample rate has to be 8000 for Twilio
from_number=post_data['From'],
to_number=post_data['To'],
metadata={"twilio_call_sid": post_data['CallSid'],"phonenumber": post_data['From']}
)
print(f"Call response: {call_response}")
sp_99491
04/25/2024, 12:27 PM
metadara phonenumber gets populated but from_number and to_number do not
sp_99491
04/25/2024, 12:29 PM
i have recordings and data privacy turned off ... is that the reason why it doesnt show? If so, on the retell side what is being stored? If the call details are always being stored and arent removed after call ends, then ill need to store phonenumber on our side separately
n
NJ
04/25/2024, 12:37 PM
Thats an interesting observation. I have observed that if you have opted to not store personal info, then yes the from and to numbers dont reflect in the register call api.
Else it does show up