help needed for fritzbox and alanog line

binary_dreamer

Neuer User
Mitglied seit
24 Jul 2009
Beiträge
170
Punkte für Reaktionen
0
Punkte
16
Hi.
I do have a fritz 7140 with asterisk 1.6.
All the sip to sip calls are OK and all the trunks a re working the way i want.
I would like to make use of the analog line connected to the fritzbox, abd i am stuck. Could someone help me with this issue please?
 
Anyone willing to help?
Please?
 
Perhabs, you should describe your problem more detailed :noidea::noidea:
 
Hi.
At the moment the asterisk on fritz works well only for internal calls sip to sip and calls to sip trunks.
I would like to make use of the analog line (fxo) of the fritz, but there is something wrong that i have, and it is not working.
here is my capi.conf
[general]
bindport=5061
nationalprefix=0
internationalprefix=00
rxgain=1.0
txgain=1.0
language=en

[ANALOG]
ntmode=no
isdnmode=msn
incomingmsn=a
defaultcid=1234
controller=4
group=1
softdtmf=off
relaxdtmf=off
accountcode=
immediate=yes
context=analog_in
bridge=no
devices=1

---------------
and the extensions.conf only the part that calls the capi
exten => 9X.,1,Dial(SIP/ANALOG/{EXTEN:1},80,r)




when i am calling the number that is on the fxo i am not receiving anything in asterisk. Also when i am trying to dial from the analog line i get a message that the circuit is not present.

any ideas?
 
Please change

capi.conf:

[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
language=en
ulaw=no ;set this, if you live in u-law world instead of a-law
disallow=all
allow=alaw

[ANALOG]
incomingmsn=*

extensions.conf:
[analog_in]
exten => s,1,Dial(SIP/...)
 
Hi.
Thanks a lot for your answer.
You mean that my capi.conf will have only the following?
[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
language=en
ulaw=no ;set this, if you live in u-law world instead of a-law
disallow=all
allow=alaw

[ANALOG]
incomingmsn=*


Regarding my extensions.conf i do have it
[analog-in]
exten => s,1,dial(sip/302&sip/303,80,tr)

Is that OK?
 
This is only a part of the capi.conf und extensions.conf.

In [general] it should be enough, but in [ANALOG] you have to change this line.
Maybe you need a different controller-number. For 7170 and 7270 is analog = controller 4.
 
Zuletzt bearbeitet:
My original format had controller=4
i will let you know in 5 minutes the outcome of the tests
 
when i am calling the number attached to the fxo i am getting
fritz*CLI>
fritz*CLI> Aug 10 13:08:45 telefon[383]: SIGCHLD received!

fritz*CLI>


but nothing rings inside.
if you see above i do have the analog_in to ring to extensions 302 & 303
any ideas?
still i cannot dial outside with the prefix 9
 
outside:
and the extensions.conf only the part that calls the capi
exten => 9X.,1,Dial(SIP/ANALOG/{EXTEN:1},80,r)
change to:
exten => _9X.,1,Dial(CAPI/ANALOG/1:${EXTEN:1},80,r)
 
OK.
I will let you know for the outgoing.
Regarding the incoming calls do i have to change anything? Since i am calling from the outside and nothing rings on the inside.
 
please make

CLI> core set verbose 10

and show the output
 
fritz*CLI> core set verbose 10
Verbosity was 0 and is now 10

fritz*CLI> Aug 10 16:16:02 telefon[389]: SIGCHLD received!

fritz*CLI>


no change at all
 
CLI> capi show channels
 
fritz*CLI> capi show channels
No such command 'capi show channels' (type 'help capi show' for other possible commands)

fritz*CLI> help capi show
No such command 'capi show'.

fritz*CLI>
 
Which Asterisk-Version?
I think you need Asterisk 1.6.0.x for capi. Newer versions have problems.
Do you have chan_capi.so in the modules-folder?
 
1.6.0.1 is ok.
Please look in your modules-folder.

.../addons/asterisk16/usr/lib/asterisk/modules

or
CLI> module show
 
fritz*CLI> module show
Module Description Use Count

codec_alaw.so A-law Coder/Decoder 0

res_indications.so Region-specific tones 0

app_authenticate.so Authentication Application 0

app_dial.so Dialing Application 0

app_echo.so Simple Echo Application 0

app_macro.so Extension Macros 0

app_playback.so Sound File Playback Application 0

app_record.so Trivial Record Application 0

app_sayunixtime.so Say time 0

app_setcallerid.so Set CallerID Presentation Application 0

app_system.so Generic System() application 0

app_transfer.so Transfers a caller to another extension 0

chan_capi.so Common ISDN API Driver ($Revision: 610 $ 0

chan_iax2.so Inter Asterisk eXchange (Ver 2) 0

chan_local.so Local Proxy Channel (Note: used internal 0
chan_sip.so Session Initiation Protocol (SIP) 0
codec_a_mu.so A-law and Mulaw direct Coder/Decoder 0
codec_adpcm.so Adaptive Differential PCM Coder/Decoder 0
codec_g726.so ITU G.726-32kbps G726 Transcoder 0
codec_gsm.so GSM Coder/Decoder 0
codec_ilbc.so iLBC Coder/Decoder 0
codec_ulaw.so mu-Law Coder/Decoder 0
format_g726.so Raw G.726 (16/24/32/40kbps) data 0
format_g729.so Raw G729 data 0
format_gsm.so Raw GSM data 0
format_pcm.so Raw/Sun uLaw/ALaw 8KHz (PCM,PCMA,AU), G. 0
format_sln.so Raw Signed Linear Audio support (SLN) 0
format_wav.so Microsoft WAV format (8000Hz Signed Line 0
format_wav_gsm.so Microsoft WAV format (Proprietary GSM) 0
func_callerid.so Caller ID related dialplan functions 0
func_cdr.so Call Detail Record (CDR) dialplan functi 0
func_channel.so Channel information dialplan function 0
func_db.so Database (astdb) related dialplan functi 0
func_enum.so ENUM related dialplan functions 0
func_env.so Environment/filesystem dialplan function 0
func_global.so Variable dialplan functions 0
func_groupcount.so Channel group dialplan functions 0
func_logic.so Logical dialplan functions 0
func_math.so Mathematical dialplan function 0
func_md5.so MD5 digest dialplan functions 0
func_strings.so String handling dialplan functions 0
func_timeout.so Channel timeout dialplan functions 0
pbx_config.so Text Extension Configuration 0
pbx_spool.so Outgoing Spool Support 0
res_musiconhold.so Music On Hold Resource 0
45 modules loaded

fritz*CLI>
 
CLI> capi show channels
does not work?
May i see the capi.conf?
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.