From: [email protected] [mailto:[email protected]] On Behalf Of Tino Subject: [asterisk-users] setting variable for a DID number
>Hello, >Is it possible to set a variable in dialpan when the someone calls a particular DID number so that i can use that variable for calls coming to that number only. As you asked the question: Exten => 5551212,1,Set(GLOBAL(TINO)=tino) Will set a variable to be used by any call when the user dials 5551212. If your incoming number is 5551212, you would want to use "ex-girlfriend" logic like this Exten => _X/5551212,n,Set(GLOBAL(TINO)=tino) Sets TINO when incoming line 5551212 rings. That's it for now.
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
