Hi,
With the following code, ARI answer a call from ZOIPER which is connected to my asterisk server.
Then when I call a specific number (let’s say 00XXYY) I receive the event from STATISSTART.
But, if the call is maid from a real phone, I receive errors from ASTERISK:
[Dec 13 09:04:28] WARNING[5786][C-00000013]: chan_sip.c:17443 check_auth: username mismatch, have <00XXYY>, digest has <anonymous>
[Dec 13 09:04:28] NOTICE[5786][C-00000013]: chan_sip.c:19650 send_check_user_failure_response: Failed to authenticate device "MY_NUM" <sip:MY_NUM@sbc6.fr.sip.ovh;user=phone>;tag=tag for INVITE, code = -2
It looks like 00XXYY is considered as the external number and MY_NUM the internal number.
I supposed to have sip:00XXYY@..ovh..
I also tried to use const extension = '00XXYY'; as a parameter but it does not work.
How to proceed to make this code answering when the call is from outside?