[Freeswitch-users] set_profile_var
Miha Zoubek
miha at softnet.si
Thu Mar 8 12:05:30 MSK 2012
Hi @Peter,
thank you for your quick answer. One option is that where I have now
15623150 that I would have 386981515623150 (the best option).
Or in second row, 15623150 should be 18108500
This is my record in sql:
18108500 018108500.fs_kabelvoip1 15623150
fs_kabelvoip1.fs1.softnet.si 03/08/12 09:24 AM 03/08/12 09:24 AM
03/08/12 09:24 AM 7 4 ATTENDED_TRANSFER
d476027a-6bb3-4cbf-a87a-94cd3940dfa4
89e7c541-360a-4752-83ea-00ce7f07b2cc 18108500 PCMA PCMA
15623150 386981515623150 386981515623150 default 03/08/12 09:24 AM
03/08/12 09:24 AM 03/08/12 09:24 AM 7 4 NORMAL_CLEARING
89e7c541-360a-4752-83ea-00ce7f07b2cc 56b2e6fe-943f-420c-b7e2-8cfc095cb140
PCMA PCMA
Channel-State: [CS_REPORTING]
Channel-Call-State: [HANGUP]
Channel-State-Number: [11]
Channel-Name: [sofia/internal/386981515623150 at 212.13.249.90]
Unique-ID: [89e7c541-360a-4752-83ea-00ce7f07b2cc]
Call-Direction: [outbound]
Presence-Call-Direction: [outbound]
Channel-HIT-Dialplan: [true]
Channel-Call-UUID: [89e7c541-360a-4752-83ea-00ce7f07b2cc]
Answer-State: [hangup]
Channel-Read-Codec-Name: [PCMA]
Channel-Read-Codec-Rate: [8000]
Channel-Read-Codec-Bit-Rate: [64000]
Channel-Write-Codec-Name: [PCMA]
Channel-Write-Codec-Rate: [8000]
Channel-Write-Codec-Bit-Rate: [64000]
Caller-Direction: [outbound]
Caller-Username: [018108500.fs_kabelvoip1]
Caller-Dialplan: [XML]
Caller-Caller-ID-Name: [015623150]
Caller-Caller-ID-Number: [386981515623150]
Caller-Network-Addr: [xxx.xxx.xxx.xxx]
Caller-ANI: [018108500.fs_kabelvoip1]
Caller-Destination-Number: [386981515623150]
******+
Channel-HIT-Dialplan: [true]
Channel-Presence-ID: [018108500.fs_kabelvoip1 at fs_kabelvoip1.fs1.softnet.si]
Channel-Call-UUID: [d476027a-6bb3-4cbf-a87a-94cd3940dfa4]
Answer-State: [hangup]
Channel-Read-Codec-Name: [PCMA]
Channel-Read-Codec-Rate: [8000]
Channel-Read-Codec-Bit-Rate: [64000]
Channel-Write-Codec-Name: [PCMA]
Channel-Write-Codec-Rate: [8000]
Channel-Write-Codec-Bit-Rate: [64000]
Caller-Direction: [inbound]
Caller-Username: [018108500.fs_kabelvoip1]
Caller-Dialplan: [XML]
Caller-Caller-ID-Name: [018108500]
Caller-Caller-ID-Number: [018108500.fs_kabelvoip1]
Caller-Callee-ID-Name: [015623150]
Caller-Callee-ID-Number: [386981515623150]
Caller-Network-Addr: [xxx.xxx.xxx.xxx]
Caller-ANI: [018108500.fs_kabelvoip1]
Caller-Destination-Number: [015623150]
I have also put in my dialplan:
<anti-action application="bridge"
data="{origination_callee_id_name='${effective_caller_id_name}'}sofia/internal/${destination_number}.fs_kabelvoip1%fs_asasasas.fs1.company.si"/>
<anti-action application="export"
data="effective_caller_id_name=${sip_from_user}" />
But still getting Flipping CID from "018108500" <018108500> to
"015623150" <386981515623150>
Thanks!
Miha
On 03/08/2012 09:13 AM, Peter Olsson wrote:
> Just export effective_caller_id_name and it will set the variable according to that.
>
> /Peter
>
> -----Ursprungligt meddelande-----
> Från: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] För Miha Zoubek
> Skickat: den 8 mars 2012 08:02
> Till: FreeSWITCH Users Help
> Ämne: [Freeswitch-users] set_profile_var
>
> Hi,
>
> how can I use variable set_profile_var to export collerd id name?
>
> I can not find any information on wiki.
>
> THanks!
>
> Miha
>
> _________________________________________________________________________
> 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
>
> !DSPAM:4f58589f32763254410508!
>
>
> _________________________________________________________________________
> 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/20120308/36ee29d1/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list