Two trunk call forward diversion problem

Hello
I have the two SIP TRUNK different operators.
I need to call forward incomming call to operator 1 to mobile phone via operator 2. This call forward faild because operator 2 blok incomming call where is wrong SIP HEADER. Can you someone help me. How is best practice resolve this problem.
I think i need to modify SIP HEADER (diversion parameter) by outgoing call via operator 2.

Are you sure that the outgoing operator will accept a Diversion header relating to a different operator? The reasons for insisting on Diversion headers relate to proving that the caller ID being forwarded is actually one that you received, on a current call, and not one you made up, or used to spoof the identity of the caller. In principle, the outgoing provider might want to match the call with one they are sending to you.

I think you need to get specific details of the outgoing operator’s diverted call handling, and what, exactly, they expect in the request.

I’m not sure if there is any GUI way of handling diversion, but the preferred way of setting Diversion header, is to use the Asterisk REDIRECTING function. If that is not possible, you will need use dialplan code to explicitly add the header.

For further background, see: Manipulating Party ID Information - Asterisk Documentation

and more generally: freepbx diversion header - Google Search

If it is not important to send the number of the original caller, it’s easy: Use Follow Me instead of forwarding. If this is a “permanent” forward, you can use a Virtual Extension. In the Follow-Me List, put the mobile number followed by #. Set Change External CID Configuration to External Calls Fixed CID Value and set Fixed CID to a number from operator 2.

If you must show the original caller’s number on the called phone, ask operator 2 whether they permit you to send a caller ID that’s not with them. If so, follow their instructions. Ask here if they are unclear.

If not, you have several options. Possibly, you can use operator 1 for the call, if they permit the ‘foreign’ caller ID and are not too terrribly expensive, just set up a prefix to force the forwarding to use operator 1. Next, if the locations where the calls will be received have adequate coverage, send them to a SIP app such as Sangoma Talk and you can use any caller name/number you like. If none of these are feasible, consider getting a third trunking provider for these calls. There are some that have no monthly cost (you pay per minute for each call); if the rate is acceptable it may be a good solution.

My operator 2 use a screening function. it means that before outgoing call check src. number if it is owned by this operator.
That is a problem i need to change src. number for number from trunk operator 2.

Follow Me, as described earlier, should do what you want.