[Freeswitch-users] rdnis variable from Lua

Brian West brian at freeswitch.org
Mon May 11 20:00:50 PDT 2009


Hehe its not really a work around... Its how you do it either way...  
but I did add the patch from http://jira.freeswitch.org/browse/MODSOFIA-7 
  which would require you to do similar.

/b

On May 11, 2009, at 8:20 PM, Cliff Wells wrote:

> 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

Brian West
brian at freeswitch.org

-- Meet us at ClueCon!  http://www.cluecon.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090511/c7553bae/attachment-0002.html 


More information about the FreeSWITCH-users mailing list