[Freeswitch-users] For calls within a single switch, is there any way to pass back name information of the called number?
Steven Schoch
schoch+freeswitch.org at xwin32.com
Wed Mar 20 21:36:37 MSK 2013
On Wed, Mar 20, 2013 at 11:12 AM, Nathan Neulinger <nneul at mst.edu> wrote:
> On CCM, if you dial a local extension, the phone display updates to show
> the name/information for the called/destination
> number.
>
I have successfully done this for external calls, using mod_cidlookup. My
outgoing dialplan has these lines:
<extension name="local 7-digit">
<condition field="destination_number" expression="^([2-9]\d\d\d{4})$">
<action application="set"
data="effective_caller_id_number=${outbound_caller_id_number}"/>
<action application="set"
data="effective_caller_id_name=${outbound_caller_name}"/>
<action application="set" data="effective_callee_id_number=$1"/>
<action application="set"
data="effective_callee_id_name=${cidlookup(1${default_areacode}$1)}"/>
<action application="set" data="ignore_display_updates=true"/>
<action application="bridge"
data="sofia/gateway/$${default_provider}/1${default_areacode}$1"/>
</condition>
</extension>
However, I don't have this working for local extensions. Cidlookup doesn't
seem to work for local extensions.
--
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130320/dc48a34d/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list