[EMAIL PROTECTED] wrote on 03/28/2005 01:19:03 PM: > > TRUNKMSD1=1 ; MSD digits to strip > (usually 1 or 0) > TRUNKMSD2=2 ; MSD digits to strip > (usually 1 or 0) > > ; logn distance calls > exten => _91NXXNXXXXXX,1,NoOp("Dialing: "${TRUNK}/${EXTEN:${TRUNKMSD1}}) > exten => _91NXXNXXXXXX,2,Dial(${TRUNK}/${EXTEN:${TRUNKMSD1}}) > exten => _91NXXNXXXXXX,3,Congestion
Your dial command is stripping the one. That's what the ${EXTEN:1} part does. So, yes, you are dialing the 1, but the dial command is stripping it. If you want to keep the one, use this: exten => _91NXXNXXXXXX,2,Dial(${TRUNK}/${EXTEN}) > When I dial a long distance number (916503270309 for example) I get the > message (I think from SBC) saying I must first dial a 1. Other times, > it works, like when I dial this number (914082341389). I have no idea where you're located. Is it maybe that you have 10-digit dialing and that the one that works is a local call, and therefore does not need the 1? Tim Massey _______________________________________________ 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