For some reason, when I set an account code on an extension, outbound calls from that extension begin to fail.
In debugging this, I am seeing:
[2023-03-02 10:14:12] WARNING[26822][C-00001f13]: pbx.c:4504 __ast_pbx_run: Channel ‘SIP/4025-00000b4e’ sent to invalid extension but no invalid handler: context,exten,priority=queuedial,+1214970XXXX,1
Not sure what “queuedial” is, but could someone point me in the right direction?
I can confirm, the context of the extension is still set to from-internal. The only change I made was from the FreePBX GUI, Extension > Advanced > Account Code
The accountcode setting in Extension > Advanced is for the channel driver setting. In this case chan_sip. It has nothing to do with the error you are getting.
sent to invalid extension but no invalid handler: context,exten,priority=queuedial,+1214970XXXX,1
That error above means that there is no match to +121470XXXX in the context queuedial. Has nothing to do with the accountcode being set on a chan_sip peer.
Then you need to show some actual debugs as you are using a third party application and Asternic is having the issue. It very well could be that if it detects an accountcode then do X and there could be an issue with X. So we’ll need to see what is happening on a failed call in the logs.
Did you account for this in the setup instructions? Based on the code snippet, I don’t think you did the below step.
Also, this context has the limitation of not following failover trunks. If your configuration depends on failover trunks, do not use this macro for tracking outbound calls, but use instead this one: extensions_custom_asternic_outbound_freepbx_failover.conf