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

Armin Schindler armin at melware.de
Thu Dec 13 10:07:44 CST 2007


On Thu, 13 Dec 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.

That looks corrct so far, numbers with just 94033 should not be accepted,
because of no match.
What type of ISDN line do you have?
And how is chan-capi (capi.conf) configured?

BTW, why do you Answer() all calls directly?

Armin



More information about the asterisk-users mailing list