[Freeswitch-users] How to remove caller_id_name?

Brian West brian at freeswitch.org
Fri Feb 20 00:33:27 MSK 2015


Can't is never an acceptable answer in a case like this.

On Thu, Feb 19, 2015 at 2:01 PM, Sergey Safarov <s.safarov at gmail.com> wrote:

> It is working correctly. Currently has been tested.
> Upstream host cannot disable sending bad caller name
> :o)
>
>
> On Thu, Feb 19, 2015 at 10:54 PM, Brian West <brian at freeswitch.org> wrote:
>
>> You said you receive it, does sofia process it properly? If so then yes
>> you can nuke it by setting it to _undef_, but removing it prior to
>> receiving it isn't possible and is best to have it fixed upstream.
>>
>> On Thu, Feb 19, 2015 at 1:50 PM, Sergey Safarov <s.safarov at gmail.com>
>> wrote:
>>
>>> I cannot absolutely remove caller_id_name. But is
>>> function sofia_glue_do_invite at string 938 I has find that bleg not
>>> receive caller_id_name if it value equal "_undef_"
>>>
>>> if (!from_display &&
>>> !strcasecmp(tech_pvt->caller_profile->caller_id_name, "_undef_")) {
>>>       from_str = switch_core_session_sprintf(session, "<%s>",
>>> use_from_str);
>>> } else {
>>>       char *name = switch_core_session_strdup(session, from_display ?
>>> from_display : tech_pvt->caller_profile->caller_id_name);
>>>       check_decode(name, session);
>>>       from_str = switch_core_session_sprintf(session, "\"%s\" <%s>",
>>> name, use_from_str);
>>> }
>>>
>>> Additionally i create loopback call (FS gateway <-> FS profile) to
>>> update caller_profile
>>>
>>> Sergey
>>>
>>> On Thu, Feb 19, 2015 at 10:35 PM, huseyin kalyoncu <hkalyoncu at gmail.com>
>>> wrote:
>>>
>>>> as Brian already answered it is best to fix it at source. if it is not
>>>> possible then i suggest you to use a proxy infront of the fs box. you can
>>>> easily reject calls with a proxy. opensips or kamailio will do fine.
>>>>
>>>> On Thu, Feb 19, 2015 at 9:17 PM, Brian West <brian at freeswitch.org>
>>>> wrote:
>>>>
>>>>> You can't fix this in FreeSWITCH you stated you RECEIVED IT, There for
>>>>> you need to call who ever is sending you that invite and make them correct
>>>>> the misbehavior.
>>>>>
>>>>> On Thu, Feb 19, 2015 at 1:11 PM, Sergey Safarov <s.safarov at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Solution is found
>>>>>> <action application="bridge"
>>>>>> data="{origination_caller_id_name=_undef_}sofia/gateway/example/${destination_number}"/>
>>>>>>
>>>>>> On Thu, Feb 19, 2015 at 10:01 PM, Sergey Safarov <s.safarov at gmail.com
>>>>>> > wrote:
>>>>>>
>>>>>>> I cannot set "effective_caller_id_name" because i now know
>>>>>>> caller_name.
>>>>>>> I wand drop wrong "caller_id_name" ("#127.024.031").
>>>>>>>
>>>>>>> On Thu, Feb 19, 2015 at 8:18 PM, huseyin kalyoncu <
>>>>>>> hkalyoncu at gmail.com> wrote:
>>>>>>>
>>>>>>>> what you are looking for is effective_caller_id_name variable
>>>>>>>>
>>>>>>>> <action application="set" data="effective_caller_id_name=Bob Smith"
>>>>>>>> />
>>>>>>>>
>>>>>>>> huseyin
>>>>>>>>
>>>>>>>> On Thu, Feb 19, 2015 at 6:37 PM, Sergey Safarov <
>>>>>>>> s.safarov at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> I receive INVITE with bad caller_id_name. How I can remove bad
>>>>>>>>> header?
>>>>>>>>>
>>>>>>>>> Bad INVITE example
>>>>>>>>>
>>>>>>>>> INVITE sip:2496 at 10.21.7.30 SIP/2.0
>>>>>>>>> Via: SIP/2.0/UDP 10.21.7.30;rport;branch=z9hG4bKcX1B77t32Z5pe
>>>>>>>>> Max-Forwards: 69
>>>>>>>>> From: "#127.024.031" <sip:2036 at company.com>;tag=BmHamt2NK4y0r
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _________________________________________________________________________
>>>>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>>>>> consulting at freeswitch.org
>>>>>>>>> http://www.freeswitchsolutions.com
>>>>>>>>>
>>>>>>>>> Official FreeSWITCH Sites
>>>>>>>>> http://www.freeswitch.org
>>>>>>>>> http://confluence.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://confluence.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://confluence.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 West*
>>>>> brian at freeswitch.org
>>>>>
>>>>>
>>>>> *Twitter: @FreeSWITCH , @briankwest*
>>>>> http://www.freeswitchbook.com
>>>>> http://www.freeswitchcookbook.com
>>>>>
>>>>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
>>>>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>>>>>
>>>>>
>>>>> _________________________________________________________________________
>>>>> Professional FreeSWITCH Consulting Services:
>>>>> consulting at freeswitch.org
>>>>> http://www.freeswitchsolutions.com
>>>>>
>>>>> Official FreeSWITCH Sites
>>>>> http://www.freeswitch.org
>>>>> http://confluence.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://confluence.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://confluence.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 West*
>> brian at freeswitch.org
>>
>>
>> *Twitter: @FreeSWITCH , @briankwest*
>> http://www.freeswitchbook.com
>> http://www.freeswitchcookbook.com
>>
>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.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://confluence.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 West*
brian at freeswitch.org


*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150219/3a230930/attachment-0001.html 


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