Get an ext to use a certain caller ID

|215771|INVITE sip:[email protected]:5060 SIP/2.0||
|---|---|---|
|215772|Via: SIP/2.0/UDP 92.27.68.65:5060;rport;branch=z9hG4bKPj2a955157-34ac-445a-af58-6e793cb79f9c||
|215773|From: <sip:[email protected]>;tag=eafbd359-5e58-47b5-86e9-8186e39c3e92||
|215774|To: <sip:[email protected]>||
|215775|Contact: <sip:[email protected]:5060>||
|215776|Call-ID: dc192fb2-000f-4e17-826a-a5b966800542||
|215777|CSeq: 18326 INVITE||
|215778|Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, MESSAGE, REFER||
|215779|Supported: 100rel, timer, replaces, norefersub, histinfo||
|215780|Session-Expires: 1800||
|215781|Min-SE: 90||
|215782|Max-Forwards: 70||
|215783|User-Agent: FPBX-16.0.33(18.13.0)||
|215784|Content-Type: application/sdp||
|215785|Content-Length: 337||
|215786|||
|215787|v=0||
|215788|o=- 1364323657 1364323657 IN IP4 92.27.68.65||
|215789|s=Asterisk||
|215790|c=IN IP4 92.27.68.65||
|215791|t=0 0||
|215792|m=audio 17522 RTP/AVP 0 8 111 9 3 101||
|215793|a=rtpmap:0 PCMU/8000||
|215794|a=rtpmap:8 PCMA/8000||
|215795|a=rtpmap:111 G726-32/8000||
|215796|a=rtpmap:9 G722/8000||
|215797|a=rtpmap:3 GSM/8000||
|215798|a=rtpmap:101 telephone-event/8000||
|215799|a=fmtp:101 0-16||
|215800|a=ptime:20||
|215801|a=maxptime:150||
|215802|a=sendrecv||

The value it is actually using is 202217. As that doesn’t appear anywhere in the logged dialplan, I have to assume that it is coming from a from user setting for the trunk endpoint, and is, possibly, the account name.

You are not sending P-Asserted-Identity or Remote-Party-iD, the common alternatives to the from user field, for caller ID, when from user is being used to identify the account. It should be possible to enable these through the GUI, although they would need to be supported by the provider.