bonjour,
je te met la config line1, j'espère que tu pourras te débrouiller avec le texte brut:
line enable : yes
SAS Enable: no
SAS DLG Refresh Intvl: 30

NAT settings: tout est laissé par défaut.

SIP settings:
SIP Transport:UDP
SIP port 5060
SIP 100REL Enable:no
Auth Resync-Reboot: yes
SIP Remote-Party-ID: yes

SIP Debug Option: none
Restrict Source IP: no
Refer Target Bye Delay: 0
Refer-To Target Contact: no
Auth INVITE: no
Use Anonymous With RPID: yes

SIP GUID: no
RTP Log Intvl: 0
Referor Bye Delay: 4
Referee Bye Delay: 0
Sticky 183: no
Reply 182 On Call Waiting: no
Use Local Addr In FROM: no

Call Feature Settings
Blind Attn-Xfer Enable: no
Xfer When Hangup Conf: yes


Proxy and Registration
Proxy: IP de ton asterisk
Outbound Proxy: IP de ton asterisk
Use Outbound Proxy: no
Register: yes
Register Expires: 3600
Use DNS SRV: no
Proxy Fallback Intvl: 3600
Proxy Fallback Intvl: yes
Make Call Without Reg: no
Ans Call Without Reg: no
DNS SRV Auto Prefix: no
Proxy Redundancy Method: normal
Mailbox Subscribe Expires: 2147483647

Subscriber Information
Display Name: 6001
User ID: 6001
Use Auth ID: no
Password: ton mot de passe

# dans ma configuration 6001 correspond à un combiné téléphonique analogique qui est branché sur le port FXS de SPA3102 et que j'ai configuré comme tel dans asterisk.

Supplementary Service Subscription:
tout est sur yes, sauf le dernier
Service Announcement Serv: no

Audio Configuration
Preferred Codec:G711a
Silence Supp Enable: no
DTMF Tx Method: auto
DTMF Tx Strict Hold Off Time: 40
Hook Flash Tx Method: none
Release Unused Codec: yes
FAX T38 Redundancy:1
FAX Tone Detect Mode: caller or callee
Audio Dump Option2: none
Silence Threshold: medium
Echo Canc Enable:yes
Echo Canc Adapt Enable: yes
Echo Supp Enable: yes
FAX CED Detect Enable: yes
FAX CNG Detect Enable: yes
FAX Passthru Codec: G711a
FAX Codec Symmetric:
FAX Passthru Method:NSE
DTMF Tx Mode: strict
FAX Process NSE:yes
FAX Disable ECAN: no
FAX Enable T38: yes
FAX T38 V29 Only: no
Audio Dump Option1: none
Symmetric RTP: yes

dans gateway accounts rien n'est rempli
ensuite:
Auto PSTN Fallback: yes

Dial Plan:([*x]x.)
Enable IP Dialing: no

# je ne suis pas du tout connaisseur, je pense que je pourrais améliorer mon dialplan mais celu ici fonctionne pour tous les appels.

FXS Port Polarity Configuration
Idle Polarity: forward
Callee Conn Polarity: forward

si ça fonctionnait avant avec free, je te donne aussi dans l'onglet PSTN en bas mes réglages FXO:

International Control
FXO Port Impedance: 250+750||150nF
Dtmf Playback Level:-7.3
SPA To PSTN Gain: 2
PSTN To SPA Gain:2
Tip/Ring Voltage Adjust: 3,5V
Operational Loop Current Min: 10 mA
On-Hook Speed: 3 ms (ETSI)
Current Limiting Enable: yes
Line-In-Use Voltage: 30
Ring Frequency Min: 10
Dtmf Playback Twist: 1.3
Ring Frequency Max: 90
Ring Validation Time: 100 ms
Ring Indication Delay: 0
Ring Timeout: 256 ms
Ring Threshold: 13.5-16.5 Vrms
Ringer Impedance:High (normal)


du côté de freePBX, j'ai crée un trunk nommé spapstn:
Trunk Name spapstn
Outbound CallerID: ton numéro FT à 10 chiffres
CID Options allow anyCID
Maximum Channels: 1

Dialed Number Manipulation Rules: j'ai tout laissé en blanc.

Outgoing Settings
Trunk Name: pstn
PEER Details:
canreinvite=no
context=from-trunk
host=dynamic
nat=no
port=5061
user=pstn
secret=ton mot de passe
type=friend
qualify=yes
dtmfmode=rfc2833

Incoming Settings
USER Context: from-spapstn

USER Details:

context=from-trunk
host=dynamic
dtmfmode=rfc2833
secret=ton mot de passe
username=pstn
type=user


Voilà, j'espère que ça t'aidera. si tu as besoin d'autres réglages demande moi. bon courage.