hello like if 6000 is the main exchange number. any one dial to 6000 will be asked for pressing his desired extension then he can press his desired extension then his number is diled exten=>6000,1,Background(enterdesiredexten) exten=>6000,2,Wait(2) exten=>2000,1,Dial(SIP/${EXTEN}) exten=>3000,1,Dial(SIP/${EXTEN}) __________________________________ Discover Yahoo! Stay in touch with email, IM, photo sharing and more. Check it out! http://discover.yahoo.com/stayintouch.html
On 25/05/05, Kamran Ahmad <p_kami@yahoo.com> wrote:> > > hello > > like if 6000 is the main exchange number. any one dial > to 6000 will be asked for pressing his desired > extension then he can press his desired extension then > his number is diled > > exten=>6000,1,Background(enterdesiredexten) > exten=>6000,2,Wait(2) > > exten=>2000,1,Dial(SIP/${EXTEN}) > exten=>3000,1,Dial(SIP/${EXTEN}) >Did you have a question? Peter -- Peter Bowyer Email: peter@bowyer.org Tel: +44 1296 768003 VoIP: sip:peter@bowyer.org
Kamran Ahmad wrote:>hello > >like if 6000 is the main exchange number. any one dial >to 6000 will be asked for pressing his desired >extension then he can press his desired extension then >his number is diled > > >exten=>6000,1,Background(enterdesiredexten) >exten=>6000,2,Wait(2) > > >exten=>2000,1,Dial(SIP/${EXTEN}) >exten=>3000,1,Dial(SIP/${EXTEN}) > > >I could not find a question here. Demo is in the extenions.conf, which explains how to use a menu. bye Ronald
i know there is example in extension.conf but that is not working in my case i am unable to get the extension pressed by user after listening menu like how to get when 2000 pressed. because it is not dialing 2000 exten => 6000,1,Background(k-enterexten) exten => 6000,2,Wait(2) exten=>3000,1,Dial(SIP/${EXTEN}) exten=>2000,1,Dial(SIP/${EXTEN}) __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/
Try changing wait(2) to background(silence/9) See if that helps, as you can't accept digits during a wait. Also, check out the the waitexten command. Hope this helps, Jon. On Wednesday 25 May 2005 05:14 am, Kamran Ahmad wrote:> hello > > like if 6000 is the main exchange number. any one dial > to 6000 will be asked for pressing his desired > extension then he can press his desired extension then > his number is diled > > > exten=>6000,1,Background(enterdesiredexten) > exten=>6000,2,Wait(2) > > > exten=>2000,1,Dial(SIP/${EXTEN}) > exten=>3000,1,Dial(SIP/${EXTEN}) > > > > __________________________________ > Discover Yahoo! > Stay in touch with email, IM, photo sharing and more. Check it out! > http://discover.yahoo.com/stayintouch.html > _______________________________________________ > 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
even this is not working he is trying to ring but cannot connect to other side and drops the call after 3 seconds i tried this exten => 6000,1,Background(k-enterexten) exten => 6000,2,waitexten(3) exten => 3000, 1, Dial(SIP/3000) exten => 3000, 2, Ringing() exten => 3000, 3, Wait(20) exten => 3000, 4, Hangup() exten => 4000, 1, Dial(SIP/4000) exten => 4000, 2, Ringing() exten => 4000, 3, Wait(20) exten => 4000, 4, Hangup()>Kamran, > >You'll need more than just Dial to make it work... >You'll need to ring the phone and then wait for them >to answer like >this: > >exten => 12, 1, Dial(SIP/1200) >exten => 12, 2, Ringing() >exten => 12, 3, Wait(20) >exten => 12, 4, Hangup() > > >In my example here, dialing 12 at a prompt (or while >you are >waiting/background in your example) will dial SIP >phone 1200. Note >that it is not enough to just dial, you must alsoRing >and Wait. If>you want to make the extension match the name of the >phone, you'll >need to do something like: > >exten => 3000, 1, Dial(SIP/3000) >exten => 3000, 2, Ringing() >exten => 3000, 3, Wait(20) >exten => 3000, 4, Hangup() > >exten => 4000, 1, Dial(SIP/4000) >exten => 4000, 2, Ringing() >exten => 4000, 3, Wait(20) >exten => 4000, 4, Hangup() > >You probably got that EXTEN business from an example >that abstracts >this process into something a bit easier to set up en >masse. In the >example I gave you just now, dialing 3000 will ring >phone registered >as user 3000, start ringing it, wait for 20 seconds, >and then hangup, >if it is never answered. If it is answered, it will >hangup after the >user does, just like you would expect. > >Good luck. >Ben > >On 5/25/05, Kamran Ahmad <p_kami@yahoo.com> wrote: >> i know there is example in extension.conf >> >> but that is not working in my case >> >> i am unable to get the extension pressed by user >after >> listening menu >> >> like how to get when 2000 pressed. >> >> because it is not dialing 2000 >> >> exten => 6000,1,Background(k-enterexten) >> exten => 6000,2,Wait(2) >> >> >> exten=>3000,1,Dial(SIP/${EXTEN}) >> exten=>2000,1,Dial(SIP/${EXTEN}) >> >> >>__________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail