Hi All,
I'm in trouble, i've been able to solve a lot with this forum so, first thank to you all !
So, i have few different gateway in inbound routes ( same client but in different place, city) Until now i was using those gateway to make Outbound Calls and show their different DID
which works well.
Due to an raise of price of my provider on those "SIP line" I bought a real Trunk SIP on OVH(french carrier, like SIP line) which is ok for mobile call
I want keep on receive Inbound call on those "SIP line" and go out with the "TRUNK sip" from all different city(4).
I need to be able to display 4 differents outbound DID thru this one "Trunk" which seem simple.
When in Gateway i leave the field "caller id from" blank, i can make outbound call but it shows the number of the "Trunk"
When in Gateway i set up "caller id from" true, and on the user i have filled up the outbound caller id Number with a number.
For the Outbound part, its all default.
<extension name="trunk_out_ovh.10d" continue="false" uuid="f39077d8-e9c6-4b1b-86c4-5101fa0fcf37">
<condition field="caller_id_number" expression="^34$"/> "test extension, the only one who can make a call"
<condition field="${user_exists}" expression="false"/>
<condition field="destination_number" expression="^(\d{10})$">
<action application="set" data="sip_h_X-accountcode=${accountcode}"/>
<action application="export" data="call_direction=outbound"/>
<action application="unset" data="call_timeout"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
<action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
<action application="set" data="inherit_codec=true"/>
<action application="set" data="ignore_display_updates=true"/>
<action application="set" data="callee_id_number=$1"/>
<action application="set" data="continue_on_fail=true"/>
<action application="bridge" data="sofia/gateway/cab75fd1-4573-450c-aa66-41de2bd69882/$1"/>
</condition>
</extension>
On the cli, i get CALL REJECTED, not much information
If on provider side a redirect some number on this Trunk, well, it will work and display it.
Is there any way to keep all Incoming Line coming on SIP A and use a TRUNK B only for outside and still display number
Kind Regards
I'm in trouble, i've been able to solve a lot with this forum so, first thank to you all !
So, i have few different gateway in inbound routes ( same client but in different place, city) Until now i was using those gateway to make Outbound Calls and show their different DID
which works well.
Due to an raise of price of my provider on those "SIP line" I bought a real Trunk SIP on OVH(french carrier, like SIP line) which is ok for mobile call
I want keep on receive Inbound call on those "SIP line" and go out with the "TRUNK sip" from all different city(4).
I need to be able to display 4 differents outbound DID thru this one "Trunk" which seem simple.
When in Gateway i leave the field "caller id from" blank, i can make outbound call but it shows the number of the "Trunk"
When in Gateway i set up "caller id from" true, and on the user i have filled up the outbound caller id Number with a number.
For the Outbound part, its all default.
<extension name="trunk_out_ovh.10d" continue="false" uuid="f39077d8-e9c6-4b1b-86c4-5101fa0fcf37">
<condition field="caller_id_number" expression="^34$"/> "test extension, the only one who can make a call"
<condition field="${user_exists}" expression="false"/>
<condition field="destination_number" expression="^(\d{10})$">
<action application="set" data="sip_h_X-accountcode=${accountcode}"/>
<action application="export" data="call_direction=outbound"/>
<action application="unset" data="call_timeout"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
<action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
<action application="set" data="inherit_codec=true"/>
<action application="set" data="ignore_display_updates=true"/>
<action application="set" data="callee_id_number=$1"/>
<action application="set" data="continue_on_fail=true"/>
<action application="bridge" data="sofia/gateway/cab75fd1-4573-450c-aa66-41de2bd69882/$1"/>
</condition>
</extension>
On the cli, i get CALL REJECTED, not much information
If on provider side a redirect some number on this Trunk, well, it will work and display it.
Is there any way to keep all Incoming Line coming on SIP A and use a TRUNK B only for outside and still display number
Kind Regards