{Question} Call scenario with gateway

Hi Everyone!

I have a call scenario it dos not work with FreePBX, against it work with other SIP Proxy, but I love Asterisk. :slight_smile:

ENVIRONMENT

There are two extension working on FreePBX: numbers:1001, 1002
It can call each other properly

There ore one SIP trunk defined for outbound and inbound call, with working outbound rule.

There are another SIP box as gateway on the network too

CALL SCENARIO:
I send a call to gateway from 1001 extension, but the target extension number is 1002.
Gateway receive the call, sense target extension (1002), and send the call bank to FreePBX with this URI: [email protected]:5060. as I see in Whireshark

But FreePBX dos not ring the 1002 extension!!!
It sense the call as unauthorized.

(If call to FreePBX trunk, from the gateway, with 1002 target number, with setting a NON defined caller extension number (at gateway side) – I mean FreePBX dos not know that as one of registered- extension 1002 can ring and talk)

I tried to make some inbound setting on trunk, but I afraid it was off chance.

I do not understand how can I set up FreePBX for take a ring based on the this part of inbound call URI [email protected], as I mean, I want to ring an extension based on called extension number from the trunk just?

Any suggestion would be glad for me?

Thanks is advance!

(I hope it was understandably, sorry for my English)