[asterisk-users] 9 becomes 99 ? And other strangeness

Brian Candler B.Candler at pobox.com
Thu Sep 14 07:44:11 MST 2006


On Thu, Sep 14, 2006 at 09:00:57AM -0500, Rich Adamson wrote:
> >[outbound]
> >exten => _9.,1,Dial(Zap/4/${EXTEN:1})             <<<< NOTE HERE
> >exten => _9.,2,Congestion()
> >exten => _9.,102,Congestion()
> >
> 
> Try replacing the first step above with:
>  exten => _9.,1,Dial(Zap/4/w${EXTEN:1})
> 
> Note the "w" in the above means wait for about a 1/4 second before 
> sending the number to the central office.
> 
> Some central offices are not ready to receive digits as quickly as 
> asterisk sends them out.

Interesting feature, thank you, but I don't think that's the problem.

Notice that Asterisk's own log shows that it thinks the number called is
99XXXXX and therefore dials out to 9XXXXX, where in fact I only dialled
9XXXXX and so it should be dialling XXXXX.

Console:

    -- Starting simple switch on 'Zap/1-1'
    -- Executing [9907974XXXXXX at internal:1] Dial("Zap/1-1","Zap/4/907974XXXXXX") in new stack
    -- Called 4/907974XXXXXX
    -- Zap/4-1 answered Zap/1-1
    -- Native bridging Zap/1-1 and Zap/4-1
    -- Hungup 'Zap/4-1'
  == Spawn extension (internal, 9907974XXXXXX, 1) exited non-zero on 'Zap/1-1'
    -- Hungup 'Zap/1-1'

If this were consistent I could use ${EXTEN:2} to strip off the two 9's, but
it isn't.

Regards,

Brian.


More information about the asterisk-users mailing list