[asterisk-users] Strange ISDN-problem with incoming calls out of the same city

Steve Totaro stotaro at first-notification.com
Thu Dec 13 09:26:59 CST 2007


Stefan Guenther wrote:
> Hi,
>
> Armin wrote:
>  >Again, same question. How does your dialplan look like?
>  >If you have a rule _XXXX. (which means 4 digits OR MORE), then there
>  >is a match even if other digits follow. Make sure your dialplan
>  >will accept the call only if all digits are dialed.
>  >
> here is the relevant part:
>
>          ; Abschnitt fuer das Analogfax
>          exten => 940325,1,ANSWER()
>          exten => 940325,2,WAIT(1)
>          exten => 940325,3,DIAL(CAPI/g2/${EXTEN:4},20,tr)
>          exten => 940325,4,HANGUP()
>
> ; Alle weiteren Anschluesse (SIP)
>          exten => _9403XX,1,ANSWER()
>          exten => _9403XX,2,SET(CHANNEL(language)=de))
>          exten => _9403XX,3,DIAL(${SIP${EXTEN:4}},30,tr)
>          exten => _9403XX,4,HANGUP()
>
> That's how we started. We then had incoming calls, e.g. 94033 according 
> to the cdr logfile. But most of the calls come in with the correct 
> number e.g. 940331.
> We have one caller where the transfered number is always to short. 
> Everytime he dials 930331, the number comes in as 94033. So I inserted
>
>          exten => 940331,1,ANSWER()
>          exten => 940331,2,WAIT(1)
>          exten => 940331,3,DIAL(CAPI/g2/${EXTEN:4},20,tr)
>          exten => 940331,4,HANGUP()
>
> at the beginning of the file, but still the call came in as 94033.
>
> Stefan
>
>
>   

How do your zap conf files look?

Thanks,
Steve Totaro



More information about the asterisk-users mailing list