[Freeswitch-users] Caller-ID variables and another Caller-ID question

Michael Collins msc at freeswitch.org
Fri Jan 25 23:21:22 MSK 2013


On Wed, Jan 23, 2013 at 3:19 PM, Steven Schoch <
schoch+freeswitch.org at xwin32.com> wrote:

> There are several caller-ID variables defined in the wiki, and I'm trying
> to understand the difference:
>
> caller_id_number, caller_id_name,
> origination_caller_id_number, origination_caller_id_name,
> effective_caller_id_number, effective_caller_id_name,
> outbound_caller_id_number, outbound_caller_id_name,
>
> If I understand correctly, caller_id_number and caller_id_name are
> read-only  variables that contain the caller-ID from an incoming call.
>
Correct.


>
> I don't understand origination_caller_id_number.  It says it sets it for
> LEG A, but I don't understand LEG A.
>
This one is for when you don't already have a leg, i.e. when you're doing
an originate at the fs_cli. Example:

freeswitch at internal>originate
{origination_caller_id_number=18005551212}sofia/gateway/mygw/14083425400
1002


>
> What's the difference between origination_caller_id_number and
> effective_caller_id_number?
>
Use effective_caller_id_number in a bridge:
<action application="bridge"
data="{effective_caller_id_number=18005551212}sofia/gateway/mygw/14083425400"/>

>
> As near as I can tell, the outbound_caller_id_number variable is not used
> by any module, but is mainly used to send information from a directory
> entry to an outbound dialplan.  Do I have that right?
>
That is correct.


> In the dialplan, it seems the right way is to do this:
>
> <action application="set"
> data="effective_caller_id_name=${outbound_caller_id_name}"/>
>
> Does this require me to set outbound_caller_id_name in *all* my directory
> entries?  What if it's missing in one.  Can I have it use a default?
>
You can set this in vars.xml. Look for the line with "0000000000" and
you'll be able to figure out the rest.


> The next question is about the outgoing Caller-ID Name.  From the SIP
> trace, I see the name is set both in the "From:" line and the
> "Remote-Party-ID:" line, in quotes ("").  However, the name does not appear
> on the caller-ID box of the POTS line.  It seems the phone company (AT&T)
> is getting the name from a CNAM lookup.  Is this something I can change, or
> is it just not sent in the path between Flowroute and AT&T?
>
If the phone company is doing a CNAM lookup then there's not really
anything you can do, unless they have a reason that they're doing a CNAM
lookup instead of using the caller_id_name information. I'd ask Flowroute
for feedback on that one.

-MC



>
> --
> Steve
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130125/83c8a0af/attachment.html 


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