[Freeswitch-users] Is cidlookup asynchronous?

Jim Lynch jim at k4gvo.com
Thu May 10 16:11:07 UTC 2018


I am calling cidlookup in my dial plan like this:

<action application="set" data="effective_caller_id_number=$1" 
inline="true"/>

And in my log I see:

a6a3d389-245d-4705-9a1e-91d74d491dd1 Dialplan: 
sofia/external/+12297960236 at 4.59.156.121:5060 Action 
set(effective_caller_id_name=${cidlookup(${caller_id_number})})

I'm trying to use it in an lua script that is called right after the 
above action line but the log seems to indicate that it doesn't actually 
get executed until some time later.

a6a3d389-245d-4705-9a1e-91d74d491dd1 Dialplan: 
sofia/external/+12297960236 at 4.59.156.121:5060 Action info() 
a6a3d389-245d-4705-9a1e-91d74d491dd1 Dialplan: 
sofia/external/+12297960236 at 4.59.156.121:5060 Action lua(cid.lua 
${caller_id_number} ${effective_caller_id_name}) INLINE 
a6a3d389-245d-4705-9a1e-91d74d491dd1 EXECUTE 
sofia/external/+12297960236 at 4.59.156.121:5060 lua(cid.lua +12297960236 ) 
2018-05-09 20:28:02.349228 [DEBUG] freeswitch_lua.cpp:365 DBH handle 
0x7fefd0092e70 Connected. a6a3d389-245d-4705-9a1e-91d74d491dd1 
2018-05-09 20:28:02.349228 [DEBUG] switch_cpp.cpp:745 
CoreSession::setVariable(effective_caller_id_name, ALL LOCATION CZ)

How can I get the data into my lua script?

Thanks,
Jim.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180510/ee206dea/attachment.html>


More information about the FreeSWITCH-users mailing list