Oguzhan Kayhan
2009-Jul-22 05:51 UTC
[asterisk-users] voicemail does not work from local calls!!!
Hello, i was trying to add call forwarding, lastcaller etc for my asterisk 1.6.0.9+asterisk-gui So i added some lines to my macro-stdexten. Now, if i got a call from trunk, everything seems working well. But if i get an inside call from asterisk clients, voicemail does not work. Here is the changes i made on macro-stdexten. PS: As i notice now lastcaller does not work either.. exten = s,1,Set(__DYNAMIC_FEATURES=${FEATURES}) exten = s,2,Set(DB(lastcaller/${ARG1})=${CALLERID(num)}) ;added for lastcaller exten = s,3,GotoIf($["${FOLLOWME_${ARG1}}" = "1"]?8) exten = s,4,Set(temp=${DB(CFIM/${ARG1})}) ;added for callforward exten = s,5,GotoIf($["${temp}" != ""]?1000:6) ;added for call forward exten = s,6,Dial(${ARG2},${RINGTIME},${DIALOPTIONS}) exten = s,7,Goto(s-${DIALSTATUS},1) exten = s,8,Macro(stdexten-followme,${ARG1},${ARG2}) exten = s-NOANSWER,1,Voicemail(${ARG1},u) exten = s-NOANSWER,2,Goto(default,s,1) exten = s-BUSY,1,Voicemail(${ARG1},b) exten = s-BUSY,2,Goto(default,s,1) exten = _s-.,1,Goto(s-NOANSWER,1) exten = a,1,VoicemailMain(${ARG1}) exten = s,1000,Goto(DLPN_sadecelokal,${temp},1) ;added for call forward
Oguzhan Kayhan
2009-Jul-22 07:30 UTC
[asterisk-users] voicemail does not work from local calls!!!
Hi again, I figured out the problem. My dialplans were as follows.. 8XXX are my asterisk number subnet.. other 3 numbers are my local numbers that works on an ericsson which is connected by e1. [local] exten => _8XXX,1,Dial(SIP/${EXTEN}) exten => 1234,1,Dial(SIP/1234) exten => 2345,1,Dial(SIP/2345) exten => 3456,1,Dial(SIP/3456) [everythingelse] exten => _XXXX,1,Dial(DAHDI/g1/${EXTEN}) I changed the plan as follows; But still i wonder if there is any other solution than i did here.. exten => _8XXX,1,Goto(default,${EXTEN:0},1) exten => 1234,1,Goto(default,${EXTEN:0},1) exten => 2345,1,Goto(default,${EXTEN:0},1) exten => 3456,1,Goto(default,${EXTEN:0},1) now by default it goes to macro-stdexten but still i need to add all numbers out of asterisk subnet one by one.> Hello, i was trying to add call forwarding, lastcaller etc for my > asterisk 1.6.0.9+asterisk-gui > So i added some lines to my macro-stdexten. > Now, if i got a call from trunk, everything seems working well. > But if i get an inside call from asterisk clients, voicemail does not > work. > Here is the changes i made on macro-stdexten. > > > PS: As i notice now lastcaller does not work either.. > > exten = s,1,Set(__DYNAMIC_FEATURES=${FEATURES}) > exten = s,2,Set(DB(lastcaller/${ARG1})=${CALLERID(num)}) ;added for > lastcaller > exten = s,3,GotoIf($["${FOLLOWME_${ARG1}}" = "1"]?8) > exten = s,4,Set(temp=${DB(CFIM/${ARG1})}) ;added for callforward > exten = s,5,GotoIf($["${temp}" != ""]?1000:6) ;added for call forward > exten = s,6,Dial(${ARG2},${RINGTIME},${DIALOPTIONS}) > exten = s,7,Goto(s-${DIALSTATUS},1) > exten = s,8,Macro(stdexten-followme,${ARG1},${ARG2}) > exten = s-NOANSWER,1,Voicemail(${ARG1},u) > exten = s-NOANSWER,2,Goto(default,s,1) > exten = s-BUSY,1,Voicemail(${ARG1},b) > exten = s-BUSY,2,Goto(default,s,1) > exten = _s-.,1,Goto(s-NOANSWER,1) > exten = a,1,VoicemailMain(${ARG1}) > exten = s,1000,Goto(DLPN_sadecelokal,${temp},1) ;added for call forward > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >