[Freeswitch-users] effective_caller_id_name in user directory not being passed to SIP endpoint

Gavin Hamill gavin at bashton.com
Tue Sep 9 17:03:56 MSD 2014


Hi all,

I'm starting out with FS 1.4.7 on CentOS 6 (installed via the FS repo at
http://files.freeswitch.org) and have a simple working config with two
sofia profiles, internal and external. I can register SIP clients, call
between internal extensions and call external numbers through a SIP gateway.

Each user in directory/default/*.xml looks like this:

<include>
  <user id="106">
    <params>
      <param name="password" value="xxx"/>
    </params>
    <variables>
      <variable name="accountcode" value="106"/>
      <variable name="user_context" value="default"/>
      <variable name="effective_caller_id_name" value="Gavin Hamill"/>
      <variable name="outbound_caller_id_name" value="Gavin Hamill"/>
    </variables>
  </user>
</include>

However, when I call from 106 -> 105, I only see '105' appear in the
destination client when I would expect to see 'Gavin Hamill' If I force the
effective_caller_id_name to be a fixed string:

  <context name="default">
    <extension name="bashton_office_staff">
      <condition field="destination_number" expression="^(10[0-9])quot;>
        <action application="set"
data="effective_caller_id_name=QWERTYUIOP" />
        <action application="bridge" data="user/$1"/>
      </condition>
  ...
  </context>

Then sure enough calls always appear as coming from 'QWERTYUIOP'  At
https://confluence.freeswitch.org/display/FREESWITCH/XML+User+Directory
there is a section 'Variables' which states:

  Any variables defined in the domain or user will be defined as channel
  variables when there is a call to user or when there is an inbound calls
from that user.

That's exactly the behaviour I was expecting - any pointers where I'm going
wrong would be warmly received.

Cheers,
Gavin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140909/0c130107/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list