[Freeswitch-users] how to set up calling number in freeswitch.Session

Vincent Xia gmangudai at gmail.com
Mon Jun 10 08:34:08 MSD 2013


thanx Steve, i tried caller_id_* doesn't and effective_caller_id_*
variables and finally found it works with origination_caller_id_*
variables, now there's another question:
i bridged leg A and B in lua using freeswitch.bridge(session, sessionB);
--A calls B

after B hangs up, A hangs up, but after A hangs up, B doesn't hang up, why?




2013/6/10 Steven Ayre <steveayre at gmail.com>

> Try setting these in the dialstring:
> http://wiki.freeswitch.org/wiki/Channel_Variables#Caller_ID_Related
>
> For example:
> session =
> freeswitch.Session("{caller_id_name=Steve,caller_id_number=12345}user/"..dest);
>
> If caller_id_* doesn't work try the effective_caller_id_* variable.
>
> -Steve
>
>
> On 10 June 2013 03:54, Vincent Xia <gmangudai at gmail.com> wrote:
>
>> hi all,
>> while initiating a call from lua with
>> session = freeswitch.Session("user/"..dest);
>>
>> the calling number shown by the called party is "000000000"
>> is it possible to set the calling number to the actual number?
>>
>> _________________________________________________________________________
>> 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/20130610/ac11a625/attachment.html 


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