keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about A400/800/1200 Analog Interface Card

Dahdi Dial

12 years 8 months ago #7260 by fantomas000
Hello!
Problem such that I can not ring on long-distance negotiations. I dial number silence of 10 seconds and then short hooters
CentOS release 5.6 (Final), OpenVox A400P
If I ring under 7 number all normally, if 8499XXXXXXXX doesn't ring

system.conf
Code:
fxsks=1
echocanceller=mg2,1
fxoks=2
echocanceller=mg2,2
fxoks=3
echocanceller=mg2,3
# channel 4, WCTDM/4/3, no module.
# Global data
loadzone = ru
defaultzone = ru
less chan_dahdi.conf
Code:
[channels]
language=ru
;context=incoming
;echocancelwhenbridged=yes

pulsedial=yes
relaxdtmf=yes
usecallerid=yes
hidecallerid=no
callwaiting=no
threewaycalling=yes
transfer=yes
echocancel=yes
echotraining=yes
;
;FXS
;
group=2
signalling=fxo_ks
channel => 2
context=from-pstn
;
signalling=fxo_ks
channel => 3
context=from-pstn
;
;FXO
;
group=1
signalling=fxs_ks
pulsedial=yes
channel => 1
context=from-pstn

[1009]
;pulsedial=yes
dahdichan = 3
callerid = Home3 <1009>
context = family
immediate=no
echotraining=800
echocancelwhenbridged=yes
echocancel=yes
busydetect=yes
busycount=5

[1008]
;pulsedial=yes
dahdichan = 2
callerid = Home2 <1008>
context = family
immediate=no
echotraining=800
echocancelwhenbridged=yes
echocancel=yes
busydetect=yes
busycount=5

extensions.conf
Code:
[family]
include => cause-codes
exten => 1008,1,Dial(DAHDI/2,,)
exten => 1009,1,Dial(DAHDI/3,,)
exten => _XXXX,1,Dial(SIP/${EXTEN},20)
include => family-out

[from-pstn]
include => cause-codes
include => family
;exten => s,1,Answer
;exten => s,n,Background(hello)
exten => s,1,dial(DAHDI/2/${EXTEN},30)
exten => s,n,Hangup()

[family-out]
exten => _XXXXXXX,1,Dial(DAHDI/1/${EXTEN},20,)
exten => _8499XXX.,1,Dial(DAHDI/1/${EXTEN},20)
exten => _810XXXXXXX.,1,(DAHDI/1/${EXTEN},20,)
exten => _8XXXXXX.,1,(DAHDI/1/${EXTEN},20,)


[cause-codes]
exten => i,1,Playback(invalid)
exten => i,n,hangup()
12 years 8 months ago #7261 by tim.june
Hi,I think there is something incorrect in your extensions.conf.

[family-out]
exten => _XXXXXXX,1,Dial(DAHDI/1/${EXTEN},20,)
exten => _8499XXX.,1,Dial(DAHDI/1/${EXTEN},20)
exten => _810XXXXXXX.,1,(DAHDI/1/${EXTEN},20,)
exten => _8XXXXXX.,1,(DAHDI/1/${EXTEN},20,)


the first dialplan will sent 7 numbers to outgoing calls,it is OK;
But the last 3 dialplans maybe not work as you think.

here is a example:
exten =>_8499XXXXXXX,1,Dial(DAHDI/1/${EXTEN:4},20)
This rule means before connecting the call, trim 4 digits(8499) from the front,it will just sent 7 numbers you want to outgoing.
Is this what you want to achieve?

Email: This email address is being protected from spambots. You need JavaScript enabled to view it.
Skype: tim.jjune
12 years 8 months ago #7262 by fantomas000
No. Moscow has 2 codes 495 and 499.
I am there where the code 495 to call on number being in the same code, that is 495, I should type only 7 digits and to call there where the code 499 it is necessary to type 8499 and phone number. A similar situation and with long distance calls. There where it is necessary to ring through 8, doesn't dial. Long-distance negotiations aren't forbidden as if to connect phone not in Asterisk and on spicy all works. And I need to ring through Asterisk and a board OpenVox.
12 years 8 months ago #7264 by tim.june
When you make a call, messages will show on the console,please send me the messages and the file extension.conf .
My Email: This email address is being protected from spambots. You need JavaScript enabled to view it.
IF you can provide ssh ,it will be more useful.

i] Last edited by tim.june at 2011-8-17 16:12 [/i

Email: This email address is being protected from spambots. You need JavaScript enabled to view it.
Skype: tim.jjune
12 years 8 months ago #7265 by fantomas000
I have sent all to you
12 years 8 months ago #7295 by fantomas000
After reading of books and forums has solved a problem.
exten => _8499XXX., 1, Dial (DAHDI/1/8wwww $ {EXTEN:1}, 20)
And all has earned.
Time to create page: 0.048 seconds
Powered by Kunena Forum