[Asterisk-Users] problem with 1 dialing (recording says must dial 1 when I thought I did)

tmassey at obscorp.com tmassey at obscorp.com
Mon Mar 28 13:24:50 MST 2005


asterisk-users-bounces at lists.digium.com 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




More information about the asterisk-users mailing list