I placed the script in the public context and tried that, but it shows nothing. In the default context, it will show 1002. But in public, it shows nothing. ________________________________ From: David Ponzone <david.ponzone@gmail.com> To: freeswitch-users@lists.freeswitch.org Sent: Mon, April 5, 2010 12:58:03 PM Subject: Re: [Freeswitch-users] how do I get my DID number from lua scriptwith session:getvariable try rdnis But you could put your lua script in your public context, where the calls are handled first. I dont really see the point to do that in default. David Ponzone Direction Technique email: david.ponzone at ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com