[Freeswitch-users] Trouble setting "caller_id_name", "caller_id_number" on an inbound call

Brian Foster bdfoster at endigotech.com
Sat Mar 31 06:03:18 MSD 2012


I can confirm this did work with an older version. I have since updated
because of some changes to spandsp and forgot to grab the revision ID
(stoopid me!). It would make sense that running cidlookup as an application
would automatically set the variable, since I'm pretty sure it doesn't
return anything to the dialplan so you can do what you want with the lookup
UNLESS you run it as an API call. Anyway, bug was filed.

-BDF
On Mar 30, 2012 6:48 PM, "DJB International" <djbinter at gmail.com> wrote:

> I don't think cidlookup would set anything.  It's just use for looking up
> number to name mapping to the source of your preference.
>
> You just need to have it look up and return the variable that you need,
> then you can set or export to your need.
>
> -djbinter
>
> On Fri, Mar 30, 2012 at 1:56 PM, Brian Foster <bdfoster at endigotech.com>wrote:
>
>>
>> On Mar 30, 2012 4:47 PM, "DJB International" <djbinter at gmail.com> wrote:
>> >
>> > If you want to pass to B-leg with a new number format, then you'll need
>> to export effective_caller_id_number/effective_caller_id_name per MC.
>> >
>> > -djbinter
>>
>> Both of those variables are automatically exported by default. No need to
>> export those. Just set and forget!
>>
>> I would like to point out that this:
>>
>> <action application="cidlookup" data="$1"/>
>>
>> ...does not work. I think this is a bug. It rubs fine but it might just
>> be setting the wrong variable. I'll take that to JIRA.
>>
>> -BDF
>>
>> >
>> > On Fri, Mar 30, 2012 at 1:06 PM, Brian Foster <bdfoster at endigotech.com>
>> wrote:
>> >>
>> >> http://pastebin.freeswitch.org/18791 << Entire Call
>> >>
>> >> It seems like a pretty common question, and there doesn't seem to be a
>> good answer to just cleaning up the caller id and doing a lookup. Even the
>> documentation on the wiki is wrong. To me, if anything, I'd like to get
>> something that's correct on the wiki in order to facilitate new users. I've
>> gotten this to work as well, and I don't remember having to go through much
>> to get it working. I wonder if something has changed?
>> >>
>> >> -BDF
>> >>
>> >> On Fri, Mar 30, 2012 at 3:37 PM, Michael Collins <msc at freeswitch.org>
>> wrote:
>> >>>
>> >>>
>> >>>
>> >>> On Fri, Mar 30, 2012 at 12:20 PM, Brian Foster <
>> bdfoster at endigotech.com> wrote:
>> >>>>
>> >>>> I need to change the caller_id_name and caller_id_number. I've got
>> ATA's that don't like the plus in front of the number. At the same time,
>> I'm doing a cidlooup, so that's going to have to be changed as well.
>> >>>>
>> >>>> -BDF
>> >>>>
>> >>>
>> >>> It looks like PB 18786 doesn't have very much information. I'd
>> recommend getting the whole call from start to finish, and get the SIP
>> trace as well. Also, if you're creating a new leg with a bridge then you'll
>> need to export effective_caller_id_number or set it in the {} in front of
>> the dialstring. Lastly, be sure to use the sip_cid_type var to select which
>> field has the caller ID info in it.
>> >>>
>> >>> -MC
>> >>>
>> >>>
>> _________________________________________________________________________
>> >>> 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
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Brian D. Foster
>> >> Endigo Computer LLC
>> >> Email: bdfoster at endigotech.com
>> >> Phone: 317-800-7876
>> >> Indianapolis, Indiana, USA
>> >>
>> >> This message contains confidential information and is intended for
>> those listed in the "To:", "CC:", and/or "BCC:" fields of the message
>> header. If you are not the intended recipient you are notified that
>> disclosing, copying, distributing or taking any action in reliance on the
>> contents of this information is strictly prohibited. E-mail transmission
>> cannot be guaranteed to be secure or error-free as information could be
>> intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
>> contain viruses. The sender therefore does not accept liability for any
>> errors or omissions in the contents of this message, which arise as a
>> result of e-mail transmission. If verification is required please request a
>> hard-copy version.
>> >>
>> >>
>> >>
>> _________________________________________________________________________
>> >> 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
>> >>
>> >
>> >
>> >
>> _________________________________________________________________________
>> > 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
>> >
>>
>> _________________________________________________________________________
>> 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
>>
>>
>
> _________________________________________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120330/489b1f51/attachment-0001.html 


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