[Freeswitch-users] How to set outbound caller id info for multiple users/extensions

Joseph Puchalski joseph.puchalski at personalcyberspace.com
Mon Feb 22 16:24:41 PST 2010


Thanks for the replies. Since then I've poked around in the wiki and experimented with my config files.

It seems as if I was setting the caller ID for all traffic outbound through my trunk provider:

>From default.xml in /opt/freeswitch/conf/dialplan/

  <extension name="vitel-outbound">
   <condition field="destination_number" expression="^(1{0,1}\d{10})$">
   <action application="set" data="effective_caller_id_number=1234567890"/>
     <action application="bridge" data="sofia/gateway/vitelity-outbound/$1"/>
    </condition>
  </extension>

This worked, insofar as outbound calls carried the caller ID as configured.

I removed the line:

   <action application="set" data="effective_caller_id_number=1234567890"/>

I had hoped that this would allow the value set in 5859.xml to take effect. It didn't. Instead my calls go out without any Caller ID.

I'm obviously missing something.

Is it possible to explicitly set the outbound caller ID for an extension when configuring it? I've tried to do so as follows:

>From 5859.xml

<include>
  <user id="5859">
    <params>
      <param name="password" value="XXX"/>
      <param name="vm-password" value="XXX"/>
    </params>
    <variables>
..
      <variable name="user_context" value="default"/>
      <variable name="effective_caller_id_name" value="2034135859"/>
      <variable name="effective_caller_id_number" value="2034135859"/>
..
    </variables>
  </user>
</include>

Or should I be doing this via <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
Somewhere else?

I did try to add a <condition> line in my vitelity config area to set "effective_caller_id"  based on originating number. I had no success, possibly because I was checking the  wrong variable, possibly because that's the wrong place to do it.

I've gone back and gotten a much better grounding in XML, but there are still more than enough simultaneously moving parts in FreeSWITCH to make me feel pretty clueless at the moment . I apologize if I'm totally missing something obvious.

Thanks again for any help. The capabilities of  FreeSWITCH continue to amaze me, sufficiently so that I won't be happy until I've got my head wrapped at least part way around it.

Joe P.


From: Brian West [mailto:brian at freeswitch.org]
Sent: Saturday, February 13, 2010 10:17 AM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] How to set outbound caller id info for multiple users/extensions

I also have to point out their is no such official variable for "outbound_caller_id_name" or "outbound_caller_id_number", Those are just made up variables I used in the default config.

01_example.com.xml

You'll notice I use these lines.

      <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
      <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>

Its just a way to set the users default outbound caller ID .

/b


On Feb 13, 2010, at 9:07 AM, Anthony Minessale wrote:



It should be covered on the wiki http://wiki.freeswitch.org<http://wiki.freeswitch.org/>

On Feb 12, 2010 6:23 PM, "Joseph Puchalski" <joseph.puchalski at personalcyberspace.com<mailto:joseph.puchalski at personalcyberspace.com>> wrote:
I'm having problems setting different outbound caller id info for different extensions/users.

I've set up a small system with two active users. I set up my users by copying and modifying existing entries from the dialplan files that come with freeSWITCH

Here are my two extensions:

<include>
  <user id="5859">
    <params>
      <param name="password" value="xxxxxx"/>
      <param name="vm-password" value="xxxxxx"/>
    </params>
    <variables>
      <variable name="toll_allow" value="domestic,international,local"/>
      <variable name="accountcode" value="5859"/>
      <variable name="user_context" value="default"/>
      <variable name="effective_caller_id_name" value="5859"/>
      <variable name="effective_caller_id_number" value="5859"/>
      <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
      <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
      <variable name="callgroup" value="techsupport"/>
    </variables>
  </user>
</include>

<include>
  <user id="5515">
    <params>
      <param name="password" value="xxxxxxx"/>
      <param name="vm-password" value="xxxxxxx"/>
    </params>
    <variables>
      <variable name="toll_allow" value="domestic,international,local"/>
      <variable name="accountcode" value="5515"/>
      <variable name="user_context" value="default"/>
      <variable name="effective_caller_id_name" value="5515"/>
      <variable name="effective_caller_id_number" value="5515"/>
      <variable name="outbound_caller_id_name" value="Jane Doe"/>
      <variable name="outbound_caller_id_number" value="5558395515"/>
      <variable name="callgroup" value="techsupport"/>
    </variables>
  </user>
</include>

These extensions are in files named 5859.xml and 5515.xml respectively.

I'm using a SIP trunk from Vitelity (in and out) with two DIDs corresponding to the extensions above.

Inbound and outbound calling work as needed with one exception: Calls originating from user/extension 5515 go out with the caller ID of extension/user 5859.

Extension 5859 was the first that I created.

Where should I be setting the outbound caller id number for my second extension? I've been trying to track this down in the available documentation but have been unable to do so.

I apologize ahead of time if this is answered somewhere obvious that I've missed.

Thanks for any help.

Joe (FreeSWITCH newbie)

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto: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<http://www.freeswitch.org/>

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto: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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100223/b7d83763/attachment-0002.html 


More information about the FreeSWITCH-users mailing list