Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] rdnis variable from Lua


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
cliff at develix.com
Guest





PostPosted: Mon May 11, 2009 7:23 pm    Post subject: [Freeswitch-users] rdnis variable from Lua Reply with quote

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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
cliff at develix.com
Guest





PostPosted: Mon May 11, 2009 8:25 pm    Post subject: [Freeswitch-users] rdnis variable from Lua Reply with quote

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:
Quote:
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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Mon May 11, 2009 10:01 pm    Post subject: [Freeswitch-users] rdnis variable from Lua Reply with quote

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:
Quote:
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, "[url=sip:(]sip:([/url]%d+)@" )


Cliff


Brian West
brian@freeswitch.org (brian@freeswitch.org)



-- Meet us at ClueCon! http://www.cluecon.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services