I don't agree on this. "From-internal" is very likely the right context for originating calls .
If you compare with /etc/asterisk/extensions.conf it is clearly stated, that "from trunk" is for calls entering the dialplan from the outside world .
; from-trunk:
;
; Context is really just an aliax of from-pstn
;
[from-trunk]
include => from-pstn
;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
; from-pstn:
;
; Entry context for calls from the outside world to hit FreePBX
Of course you need to make sure that the extension in the odoo users setting is the same internal extention number as the phone to send the call to e.g. if the odoo users Internal Number is 160 , the extension 160 has to be the users internal desk phone number (The phone which is supposed to ring after you click dial in Odoo)
The problem in newer versions of Asterisk ( from v12 on I guess) is that the AMI interface had been restricted and there a new security things in place which stop the CTD funtionality in Odoo from working like before.
For me the solution is to change the Asterisk Channel Type from SIP to LOCAL
At least in freepbx thing started to work again without problems .
https://issues.asterisk.org/jira/browse/ASTERISK-22905