I use freeswitch as voip server for other ipbx system. My freeswitch server is connected to gateway. Incoming calls works. I have extension, use as voip trunk for other server. Inbound rule redirect to this extension and it’s works, but we don’t received called number on extension (sip trunk).
Caller ---- freeswitch ---- extension (other ipbx)
On extension we never receive original caller number, and like that on this ipbx we can’t forward inbound rules.
Here my public.xml
<extension name="xx3278" continue="true">
<condition field="context" expression="public" />
<condition field="destination_number" expression="^xxx278$" >
<action application="set" data="dialed_ext=xxx3278"/>
<action application="set" data="effective_callee_id_name=xxx3278" />
<action application="export" data="effective_callee_id_number=xxx3278" />
<action application="transfer" data="12345 XML default" />
</condition>
</extension>
On extension we only receive incomming call from extension 12345, which is my extension on freeswitch.
Tks advance for your help