Hello list, I'm a asterisk-beginner and could use some assistance with my configfiles(sip.conf & extensions.conf). I'll attach them to this mail, and I hope some of you prof's can give me some advice or point me in the right direction. At the moment by using this configuration, and call somebody internal i get instant voicemail, and sometimes a call isn't even possible. Please help! :) Best Regards, Thomas Jacobsen -------------- next part -------------- A non-text attachment was scrubbed... Name: extensions.conf Type: application/octet-stream Size: 3560 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060704/3ee6b354/extensions.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: sip.conf Type: application/octet-stream Size: 4242 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060704/3ee6b354/sip.obj
Hi Thomas, Thomas Jacobsen wrote:> Hello list, > > I'm a asterisk-beginner and could use some assistance with my > configfiles(sip.conf & extensions.conf). I'll attach them to this mail, > and I hope some of you prof's can give me some advice or point me in the > right direction. At the moment by using this configuration, and call > somebody internal i get instant voicemail, and sometimes a call isn't > even possible. Please help! :)I'm also a beginner, so I have just hints.> exten => s,1,Background(/home/thomas/banestroeget) > exten => s,2,DigitTimeout(3) > exten => s,3,WaitExten(3) > exten => s,4,Dial(SIP/1001&SIP/1002&SIP/1003) > exten => s,5,Hangup > exten => i,1,Dial(SIP/1001&SIP/1002&SIP/1003) > exten => i,2,Hangup > include => internal > include => office-main > include => utilities > include => internal > include => outbound-46932400I'll take a deeper look into your files a bit later. Kai
Your config files are not properly attached. i cant open them. send them again. On 7/4/06, Thomas Jacobsen <tja@specialisterne.dk> wrote:> > Hello list, > > I'm a asterisk-beginner and could use some assistance with my > configfiles(sip.conf & extensions.conf). I'll attach them to this mail, > and I hope some of you prof's can give me some advice or point me in the > right direction. At the moment by using this configuration, and call > somebody internal i get instant voicemail, and sometimes a call isn't > even possible. Please help! :) > > Best Regards, > Thomas Jacobsen > > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060704/e8d67008/attachment.htm
Thomas Jacobsen wrote:> Hello list, > > I'm a asterisk-beginner and could use some assistance with my > configfiles(sip.conf & extensions.conf). I'll attach them to this mail, > and I hope some of you prof's can give me some advice or point me in the > right direction. At the moment by using this configuration, and call > somebody internal i get instant voicemail, and sometimes a call isn't > even possible. Please help! :)BTW:> [internal] > exten => _ZX[0-8]X,1,DBget(temp=CFIM/${EXTEN}) > exten => _ZX[0-8]X,2,Dial(SIP/${temp}) > exten => _ZX[0-8]X,3,Dial(SIP/${EXTEN},20) > exten => _ZX[0-8]X,102,Goto(${EXTEN},3)^^^^ Shouldn't this be "103"?> exten => _ZX[0-8]X,4,VoiceMail(u${EXTEN}) > exten => _ZX[0-8]X,104,VoiceMail(b${EXTEN}) > exten => _ZX[0-8]X,5,Hangup
On Tuesday 04 July 2006 17:55, Thomas Jacobsen wrote:> Hello, > > I decided to resend the files, because i made alot of typos in them. - > Please use these files instead.You [internal] is rather a macro than [internal] <quote> [internal] exten => _ZX[0-8]X,1,DBget(temp=CFIM/${EXTEN}) exten => _ZX[0-8]X,2,Dial(SIP/${temp}) exten => _ZX[0-8]X,3,Dial(SIP/${EXTEN},20) exten => _ZX[0-8]X,102,Goto(${EXTEN},3) exten => _ZX[0-8]X,4,VoiceMail(u${EXTEN}) exten => _ZX[0-8]X,104,VoiceMail(b${EXTEN}) exten => _ZX[0-8]X,5,Hangup </quote> I would suggest [internal] exten => _1001,1,Macro(stdexten,1001,sip/1001) exten => _1002,1,Macro(stdexten,1002,sip/1002) etc... and then use a macro i.e.: [macro-stdexten] ; lastcaller, BlackListing, CFIM ;; Standard extension macro: ;; ${ARG1} - Extension (we could have used ${MACRO_EXTEN} here as well ;; ${ARG2} - Device(s) to ring ;; exten => s,1,LookupBlacklist ; If CID blacklisted, goto 102 exten => s,2,Set(temp=${DB(CFIM/${ARG1})}); Get CFIM (Call Forward IM) key exten => s,3,GotoIf($["${temp}" = ""]?,6); go to s,6 if no CFIM exten => s,4,GotoIf($[${temp:0:6} = ${temp}]?s|5:s|9) ; internal # of 6 digits or int more than 6 exten => s,5,Dial(Local/${temp}@default/n) ; Unconditional forward exten => s,6,Set(DB(lastcaller/${ARG1})=${CALLERIDNUM}) ; Note the last caller exten => s,7,Dial(${ARG2},20) ; Call the device with a 20 sec.If no j NOT jumping exten => s,8,Goto(s-${DIALSTATUS},1) exten => s,9,Set(temp=${DB(CFIM/${ARG1})}) ; Get again CFIM exten => s,10,Set(CDR(accountcode)=${ARG1}) ; set ARG1 = accountcode thus changing whom to bill exten => s,11,Playback(pls-hold-while-try) ; advise him exten => s,12,Dial(Local/${temp}@default/n) exten => s,102,Goto(blacklisted,s,1) ; Blacklisted CallerID exten => s,103,Goto(s,7) ; No CFIM key exten => s-NOANSWER,1,Voicemail(u${ARG1}) exten => s-NOANSWER,2,Goto(s,1) ; If they press #, return to start exten => s-BUSY,1,Voicemail(b${ARG1}) ; If busy, send to voicemail -> busy exten => s-BUSY,2,Goto(s,1) ; If they press #, return to start over exten => _s-.,1,Goto(s-NOANSWER,1) ; Treat anything else as no answer exten => a,1,VoicemailMain(${ARG1}) ; If they press * -> VoicemailMain You should change it or use the sample from the original extensions.conf to answer your needs. The macro does not need to be included in a context. And as you see priorities jump n+101. Hope it helps. Benchev