SIP TRUNK et SERVEUR DEBIAN chez OVH
... / SIP TRUNK et SERVEUR DEBI...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

SIP TRUNK et SERVEUR DEBIAN chez OVH

by
MohamedL12
Created on 2022-11-28 15:36:35 (edited on 2024-09-04 11:09:30) in Forfaits VoIP

**Bonjour j'ai une ligne SIP TRUNK ainsi qu'un serveur VPS sur Debian et je cherche à programmer mon VoIP afin qu'il redirige sur des lignes mobile(EXTERNES), pour l'instant j'ai cette erreur qui s'affiche sur la console asterisk quand j'appel mon SIP TRUNK

- Forfait Voip : SIP TRUNK

----------


Bonjour à toutes et à tous,

J'utilise **l'offre** : SIP TRUNK et un serveur dedié VPS

Je souhaiterais mettre en place : Un VOIP qui filtre des appels et qui ensuite redirige sur deux ligne mobile(EXTERNES)

Quand j'appel ma ligne SIP TRUNK voici le message d'erreur qui s'affiche " WARNING[32641][C-00000003]: pbx.c:4507 __ast_pbx_run: Channel 'SIP/VoIP-OVH-400-00000001' sent to invalid extension but no invalid handler: context,exten,priority=VoIP-OVH,0972130140,1".
J'arrive à passer des appels externes




Voici mon fichier sip.conf

[general]
context = VoIP-OVH
bindport = 5060
bindaddr = 0.0.0.0
srvlookup = yes

register=>0033972XXXX40:MotDePasse@siptrunk.ovh.net

[400]
type = friend
username = 400
secret = XXXX
callerid = "Sophie" <400>
host = dynamic
context = VoIP-OVH-OUT
language = fr
insecure = port
nat = yes
canreinvite = no
dtmfmode = auto
video = no
restrictcid = no
amaflags = default
qualify=yes

[VoIP-OVH-400]
type = peer
host = siptrunk.ovh.net
context = VoIP-OVH
language = fr
insecure = port,invite
username = 0033972XXXX40
fromuser = 0033972XXXX40
fromdomain = siptrunk.ovh.net
secret = XXXXXX
nat = yes
canreinvite = no
dtmfmode = auto
video = no
restrictcid = no
amaflags = default

Voici mon extensions.conf
[general]
static = yes
writeprotect = no
autofallthrough = yes
clearglobalvars = no
priorityjumping = no

[globals]
CONSOLE = Console/dsp
IAXINFO = guest
TRUNK = Zap/g2
TRUNKMSD = 1

; Cette partie gere les appels entrants
[VoIP-OVH]
exten => s,1,Goto(VoIP-OVH,${CUT(CUT(SIP_HEADER(To),@,1),:,2)},1)

exten => 0033972XXX40,1,Wait(1)
exten => 0033972XXXX40,2,Answer
exten => 0033972XXXX40,3,Dial(SIP/400)
exten => 0033972XXXX40,4,Hangup()

[VoIP-OVH-OUT]
;##### Appel INTERNE
exten => 400,1,Dial(SIP/400)

;##### Appel EXTERNE
exten => _X.,1,Dial(SIP/${EXTEN}@VoIP-OVH-400)