I have an outgoing line that allows me to set my caller id. I want to be able to change the caller id when ever I place a call using this line. I would like my user to press 7, then be prompted for their 10 digit caller id number, then be prompted for the number they would like to call in the form 1NXXNXXXXXX. How can I accomplish this??? Right now I am using this script that users have to dial _71NXXNXXXXXXXXXXXXXXXX , where the first 12 digits are the number to be called and the last 10 are the caller id. My dialplan: exten => _71NXXNXXXXXXXXXXXXXXXX,1,SetCallerID(${EXTEN:12}) exten => _71NXXNXXXXXXXXXXXXXXXX,2,StripLSD(10) exten => _71NXXNXXXXXX,3,Dial(~~~,${EXTEN:1}) exten => h,1,Hangup exten => i,1,Hangup exten => t,1,Hangup
That's a neat little trick, but I know somehow it's got to be illegal. On the other hand, it would be fun to call my buddy on April 16th with an IRS number and ask him where his return is. John Andrew wrote:> I have an outgoing line that allows me to set my caller id. I want to be > able to change the caller id when ever I place a call using this line. I > would like my user to press 7, then be prompted for their 10 digit caller id > number, then be prompted for the number they would like to call in the form > 1NXXNXXXXXX. > > How can I accomplish this??? > > Right now I am using this script that users have to dial > _71NXXNXXXXXXXXXXXXXXXX , where the first 12 digits are the number to be > called and the last 10 are the caller id. > > My dialplan: > > exten => _71NXXNXXXXXXXXXXXXXXXX,1,SetCallerID(${EXTEN:12}) > exten => _71NXXNXXXXXXXXXXXXXXXX,2,StripLSD(10) > exten => _71NXXNXXXXXX,3,Dial(~~~,${EXTEN:1}) > > exten => h,1,Hangup > exten => i,1,Hangup > exten => t,1,Hangup > > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >
Here is what I thought of, does anyone see any problems in this logic? 1. User dials 7 2. Asterisk plays directions in background. But continues to next priority whiles playing. (Correct?) 3. User enters number. 4. Asterisk sets CID. 5. Asterisk plays more directions in background so user can enter number whiles it is talking. 6. Asterisk dials the number. exten => 7,1,Background(enter-10-digit-callerid-to-display) exten => 7,2,Goto(_XXXXXXXXXX,1) exten => _XXXXXXXXXX,1,SetCallerID(${EXTEN}) exten => _XXXXXXXXXX,2,Goto(_1NXXNXXXXXX,1) exten => _1NXXNXXXXXX,1,Backgound(dial-number-to-be-called-including-1-and-the-areaco de) exten => _1NXXNXXXXXX,2,Dial,~~~~~/${EXTEN} exten => h,1,Hangup exten => i,1,Hangup exten => t,1,Hangup How would asterisk react if the user only entered 7 numbers when it asks for 10? Would it hangup?