[Freeswitch-users] rdnis variable from Lua

Cliff Wells cliff at develix.com
Mon May 11 18:20:54 PDT 2009


I found a workaround, but it'd be nice to actually have the RDN easily
accessible from Lua:

calling_number = session:getVariable ( "sip_h_Diversion" )
_, _, calling_number = string.find ( calling_number, "sip:(%d+)@" )


Cliff

On Mon, 2009-05-11 at 17:22 -0700, Cliff Wells wrote:
> Hi,
> 
> I can see the RDN in the log file, but don't know how to retrieve it
> from a Lua script.
> 
> Regards,
> Cliff
> 
> 
> _______________________________________________
> 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