Hi all, I have 100 DID's which is 4578900 to 4578999 , and i have 5001 to 5099 extensions. when incomming call come to this DID no. (4578901) that time 5001 extestinsion should ring. below my dial plan is not getting any result , inthat has any mistakes. please help. exten => _45789XX,1,AGI(agi://127.0.0.1:4577/call_log) exten => _45789XX,1,Set(Dest=2{EXTEN:-2}) exten => _45789XX,2,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0)) exten => _45789XX,3,Dial(SIP/${Dest},,tTo) exten => _45789XX,4,Hangup Best Regards, Mahesh Katta *BUZZ**WORKS* Business Services Private Limited BANGALORE | CHENNAI | HYDERABAD | MUMBAI| DELHI 201, Crystal Tower, 75 Gundavali Cross Lane, Andheri Kurla Road, Andheri (E) Mumbai 400069 GSM +91.97029.70779 | Phone +91.22.4229.2634 | Fax +91.22.4229.2634 Web http://www.buzzworks.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110616/224ccf6e/attachment.htm>
On Thu, Jun 16, 2011 at 12:48:39PM +0530, mahesh katta wrote:> Hi all, > > I have 100 DID's which is 4578900 to 4578999 , and i have 5001 to 5099 > extensions. when incomming call come to this DID no. (4578901) that time > 5001 extestinsion should ring. > below my dial plan is not getting any result , inthat has any mistakes. > please help. > > exten => _45789XX,1,AGI(agi://127.0.0.1:4577/call_log) > exten => _45789XX,1,Set(Dest=2{EXTEN:-2}) > exten => > _45789XX,2,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0)) > exten => _45789XX,3,Dial(SIP/${Dest},,tTo) > exten => _45789XX,4,Hangup > Best Regards,There is one obvious problem. But you missed an obvious debugging step to debug it: In the asterisk CLI: core set verbose 3 Now, look at the trace. What do you see at the time of the call? Compare that to the dialplan you wrote. And once again: do not use Asterisk 1.2 on a new installation. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
On Thursday 16 Jun 2011, mahesh katta wrote:> Hi all, > > I have 100 DID's which is 4578900 to 4578999 , and i have 5001 to 5099 > extensions. when incomming call come to this DID no. (4578901) that time > 5001 extestinsion should ring. > below my dial plan is not getting any result , inthat has any mistakes. > please help. > > exten => _45789XX,1,AGI(agi://127.0.0.1:4577/call_log) > exten => _45789XX,1,Set(Dest=2{EXTEN:-2}) > exten => > _45789XX,2,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM >}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0)) exten => > _45789XX,3,Dial(SIP/${Dest},,tTo) > exten => _45789XX,4,HangupFirstly, you've got two "1" steps in that. Unless you are doing something complicated with GOTOs (and if you are, then there's probably a better way of doing it), use "1" for the first step and "n" (next) for all subsequent steps. If nothing else, it means you can add extra NoOp() statements to put debugging information on the console, and later comment out or remove them without forced renumbering (which brings its own opportunities to introduce errors). Secondly, you're setting ${Dest} to "2" followed by the last 2 digits of the dialled number. But what you really want is "50" followed by the last 2 digits of the dialled number. So it should be exten => _45789XX,n,Set(Dest=50{EXTEN:-2}) -- AJS Answers come *after* questions.