[Freeswitch-users] callee id inbound

Erwan Hermouet ehermouet at bluetel.fr
Tue Mar 26 23:47:20 MSK 2013


Hi

 

Tks for your reply

 

Here my default

 

    <extension name="12345">

      <condition field="destination_number" expression="^(10[01][0-9])$">

       <action application="set" data="dialed_extension=$1"/>

       <action application="export" data="dialed_extension=$1"/>

       <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] <app>
-->

       <action application="bind_meta_app" data="1 b s execute_extension::dx
XML features"/>

       <action application="bind_meta_app" data="2 b s
record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%
H-%M-%S)}.wav"/>

       <action application="bind_meta_app" data="3 b s execute_extension::cf
XML features"/>

       <action application="bind_meta_app" data="4 b s
execute_extension::att_xfer XML features"/>

       <action application="set" data="ringback=${us-ring}"/>

       <action application="set" data="transfer_ringback=$${hold_music}"/>

       <action application="set" data="call_timeout=30"/>

       <!-- <action application="set"
data="sip_exclude_contact=${network_addr}"/> -->

       <action application="set" data="hangup_after_bridge=true"/>

       <!--<action application="set"
data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,
NO_ROUTE_DESTINATION"/> -->

       <action application="set" data="continue_on_fail=true"/>

       <action application="hash"
data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_numb
er}"/>

       <action application="hash"
data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/>

       <action application="set"
data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name}
var callgroup)}"/>

       <!--<action application="export"
data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name
} var sip_secure_media)}"/>-->

       <action application="hash"
data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/>

       <action application="bridge"
data="{sip_invite_domain=$${domain}}user/${dialed_extension}@${domain_name}"
/>

       <action application="answer"/>

       <action application="sleep" data="1000"/>

       <action application="bridge" data="loopback/app=voicemail:default
${domain_name} ${dialed_extension}"/>

      </condition>

    </extension>

 

De : freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] De la part de Steven
Schoch
Envoyé : mardi 26 mars 2013 20:59
À : FreeSWITCH Users Help
Objet : Re: [Freeswitch-users] callee id inbound

 

First, there is no need to call both "set" and "export" on the same
variable, because "export" will set the local variable as well as exporting
it to the other leg, unless you do something fancy in the "export".

 

Second, we need to see the extension that is used for 12345 in default,
because that may be also setting some variables.

 

Third, I'm new to FreeSwitch, so listen to somebody more experienced first,
should they also reply. :-)

 

-- 

Steve

 

On Tue, Mar 26, 2013 at 10:49 AM, Erwan Hermouet <ehermouet at bluetel.fr>
wrote:

 

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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130326/9dbb73fc/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list