[Freeswitch-users] How to Pass the CLID

Brian West brian at freeswitch.org
Mon Jun 30 08:54:29 PDT 2008


On Jun 30, 2008, at 10:36 AM, Klaus Teller wrote:
> Hi Guys,
>
> Forget about the YAML guy and continue with the impressive work.
>
> I got one question: when I bridge a leg A, to a number B. How do I  
> pass the number of the caller A to the  B. That is, what do I need  
> to do to have B see the number of A on the display?

You shouldn't have to worry about it.... can you provide a sip trace  
so we can see what you are passing.  Maybe your provider doesn't like  
what you're sending.


>
>
> Right now, despite setting the caller_id_num variable (using both  
> sesstion.setVariable, and session.set), I still see a very strange  
> number (area code 690) on B's display.

You have two sets of variables here.

effective_caller_id_name
effective_caller_id_number

These two variables are set on an A-Leg.  Any B-Legs created off the A- 
Leg will inherit these for their caller_id values.

Then you have:

origination_caller_id_name
origination_caller_id_number

These two variables are used to set the callerid on an A-Leg created  
with originate... ie when a leg doesn't even exist yet.

originate  
{origination_caller_id_name 
=bob,origination_caller_id_number=5551212}sofia/gateway/provider.com/ 
9184238080  &park

This line would create the leg to 9184238080 and the the caller_id  
values used from the originate_call_id_* vars ... now if you want any  
legs that are born from this A-Leg you need to set the  
effective_caller_id_* vars also.

Hope this helps explain this better.  I think this info is on the wiki  
but not very apparent in the usage of each of these cases.

/b


>
>
> Is the problem lying with the termination VOIP provider?
>
> Klaus L'Ivrogne.
> -- 
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>
> _______________________________________________
> 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
sip:brian at freeswitch.org







More information about the FreeSWITCH-users mailing list