[Freeswitch-users] Passing incoming Caller ID

Dave Stevenson stevendt at primrosebank.net
Sat Oct 16 06:11:43 PDT 2010


Hi again Hassan

great ! - Works a treat - thanks a lot!

regards
Dave



----- Original Message ----- 
From: "Nyamul Hassan" <mnhassan at usa.net>
To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
Sent: Saturday, October 16, 2010 1:07 PM
Subject: Re: [Freeswitch-users] Passing incoming Caller ID


> The caller_id_number is the best bet for the Caller ID. But the
> display on your extension shows what you set for caller name (PSTN
> Line). So I guess you need to set the caller name to
> ${caller_id_number}.
>
> Regards
> HASSAN
>
>
> On 2010-10-16, Dave Stevenson <stevendt at primrosebank.net> wrote:
>> Hi Nassan,
>>
>> thanks for the pointer - I can see those variables now, including :-
>>
>> Channel-Presence-ID: [07751234567 at 192.168.1.181]
>> Caller-Username: [07751234567]
>> Caller-Caller-ID-Number: [07751234567]
>> Caller-ANI: [07751234567]
>> Caller-Channel-Name: [sofia/internal/07751234567 at 192.168.1.181]
>> variable_sip_from_user: [07751234567]
>> variable_sip_from_uri: [07751234567 at 192.168.1.181]
>> variable_sip_from_user_stripped: [07751234567]
>> variable_sip_full_from: [PSTN Line
>> <sip:07751234567 at 192.168.1.181>;tag=26bdee1e605c89ebo1]
>> variable_sip_contact_user: [07751234567]
>> variable_sip_contact_uri: [07751234567 at 192.168.1.183:5061]
>> variable_channel_name: [sofia/internal/07751234567 at 192.168.1.181]
>> variable_presence_id: [07751234567 at 192.168.1.181]
>>
>> Lots of places where I can pick up the number from, but in the interests 
>> of
>> "doing it right", I'd like to pick the "proper" (most reliable) one. 
>> Again,
>> this call is coming from PSTN via a gateway, so it looks like the best 
>> one
>> might be "Caller-Caller-ID-Number" ?
>>
>> I'm not sure where to copy the relevant variable to though ?
>>
>> regards
>> Dave
>>
>>
>> ----- Original Message -----
>> From: "Nyamul Hassan" <mnhassan at usa.net>
>> To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
>> Sent: Saturday, October 16, 2010 11:28 AM
>> Subject: Re: [Freeswitch-users] Passing incoming Caller ID
>>
>>
>>> You have to use the variables in that line that sets caller name. I
>>> don't remember on top of my head which. You can use the dialplan
>>> application called "info" which will give you a nice list of useful
>>> variables and other information on the call and the channel.
>>>
>>> Regards
>>> HASSAN
>>>
>>>
>>> On 2010-10-16, Dave Stevenson <stevendt at primrosebank.net> wrote:
>>>> Hi,
>>>>
>>>> can someone help me with passing caller ID to FreeSwitch extensions
>>>> please?
>>>>
>>>> I have a Linksys SPA-3102 setup to receive PSTN calls and Caller ID has
>>>> just
>>>> been configured on the line.
>>>> The Gateway is setup as Extension 1000 with Dialplan entries
>>>>       <variable name="effective_caller_id_name" value="PSTN Line"/>
>>>>       <variable name="effective_caller_id_number" value="1000"/>
>>>>
>>>> I have a group name (primrose) setup (in directory\default.xml) to ring 
>>>> a
>>>> number of phones
>>>> I have extension 100 configured with
>>>>       <variable name="callgroup" value="primrose"/>
>>>>
>>>> The Gateway is setup to dial extension 100 on an incoming call
>>>>
>>>> When a call comes in, the Gateway sees the Caller ID, e.g, 07751234567
>>>>
>>>> And FreeSwitch see the caller ID from the gateway :-
>>>>
>>>> [NOTICE] switch_channel.c:669 New Channel
>>>> sofia/internal/07751234567 at 192.168.1.181
>>>> [f863c03f-0f7e-4e4b-beb0-dfa57dad2b50]
>>>>
>>>>
>>>> When the group extension ring, the caller is shown as "PSTN Line" on 
>>>> the
>>>> extensions.
>>>>
>>>>
>>>> Can someone tell me how & where I can modify the config to pick up the
>>>> CID
>>>> from the Gateway and pass it to the group extensions please ?
>>>>
>>>> regards
>>>> Dave
>>>>
>>>
>>> --
>>> Sent from my mobile device
>>>
>>> _______________________________________________
>>> 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
>>>
>>
>>
>> _______________________________________________
>> 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
>>
>
> -- 
> Sent from my mobile device
>
> _______________________________________________
> 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
> 




More information about the FreeSWITCH-users mailing list