lu,
j'ai installé mon asterisk, mais il fonctionne plus ou moins.
J'ai des problèmes de son quand je me connecte à d'autre lignes.
Je n'arrive pas non plus à activé le trunk iax de mon fournisseur, mais tout marche chez ovh. Enfin au probléme de son prés! J'ai aussi des problémes parfois à la connection!! C'est pas vraiment stable.
voici mon sip.conf :
Code:
[general]
context=default ; Default context for incoming calls
udpbindaddr=0.0.0.0 ; IP address to bind UDP listen socket to (0.0.0.0 binds to all)
; Optionally add a port number, 192.168.1.1:5062 (default is port 5060)
tcpenable=no ; Enable server for incoming TCP connections (default is no)
tcpbindaddr=0.0.0.0 ; IP address for TCP server to bind to (0.0.0.0 binds to all interfaces)
; Optionally add a port number, 192.168.1.1:5062 (default is port 5060)
;
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
register=0033422130111:code1@sip.ovh.net/0033422130111
register=0033422130211:code2@sip.ovh.net/0033422130211
disallow=all ; First disallow all codecs
allow=g729
allow=ulaw ; Allow codecs in order of preference
allow=ilbc ; see https://wiki.asterisk.org/wiki/display/AST/RTP+Packetization
; for framing options
[basic-options](!) ; a template
dtmfmode=rfc2833
context=from-office
type=friend
[natted-phone](!,basic-options) ; another template inheriting basic-options
directmedia=no
host=dynamic
[public-phone](!,basic-options) ; another template inheriting basic-options
directmedia=yes
[my-codecs](!) ; a template for my preferred codecs
disallow=all
allow=ilbc
allow=g729
allow=ulaw
allow=gsm
allow=g723
[ulaw-phone](!) ; and another one for ulaw-only
disallow=all
allow=ulaw
[sarah]
username=sarah
secret=Teste
type=friend
host=dynamic
mailbox=sabi.nounette@reveyo.com
context=direction
callerid=Sarah <103>
disallow=all
allow=ulaw
allow=alaw
[amira]
username=amira
secret=Teste
type=friend
host=dynamic
mailbox=sabi.nounette@reveyo.com
context=direction
callerid=Amira <0422130211>
disallow=all
allow=ulaw
allow=alaw
[ovh-0033484251111]
disallow=all
username=0033484251111
type=friend
secret=code0
qualify=yes
insecure=port,invite
host=sip.ovh.net
fromuser=0033484251111
fromdomain=sip.ovh.net
dtmfmode=inband
context=ovh-sip
dtmfmode=auto
allow=g729
;allow=ulaw
;allow=alaw
[ovh-0033422130111]
disallow=all
username=0033422130111
type=friend
secret=code1
qualify=yes
insecure=port,invite
host=sip.ovh.net
fromuser=0033422130139
fromdomain=sip.ovh.net
dtmfmode=inband
context=ovh-sip
dtmfmode=auto
allow=g729
;allow=ulaw
;allow=alaw
[ovh-0033422130211]
disallow=all
username=0033422130211
type=friend
secret=code2
qualify=yes
insecure=port,invite
host=sip.ovh.net
fromuser=0033422130211
fromdomain=sip.ovh.net
dtmfmode=inband
context=ovh-sip
dtmfmode=auto
allow=g729
allow=ulaw
allow=alaw
et mon iax.conf
Code:
[general]
bindport=4569 ; bindport and bindaddr may be specified
bindaddr=0.0.0.0
language=fr
bandwidth=low
;allow=all ; same as bandwidth=high
disallow=all
;disallow=g723.1 ; Hm... Proprietary, don't use it...
disallow=lpc10 ; Icky sound quality... Mr. Roboto.
allow=g729
allow=ulaw
allow=ilbc
;allow=gsm ; Always allow GSM, it's cool :)
;
jitterbuffer=no
forcejitterbuffer=no
;maxjitterbuffer=1000
;maxjitterinterps=10
;resyncthreshold=1000
;jittertargetextra=40
autokill=yes
[david]
username=david
secret=Teste
type=friend
host=dynamic
mailbox=david@X.com
context=direction
callerid=David Bieder <0484251111>
requirecalltoken=no
permit=192.168.0.0/255.255.0.0
;permit=0.0.0.0/0.0.0.0
requirecalltoken=auto
[sabi]
username=sabi
secret=Teste
type=friend
host=dynamic
mailbox=sabi.nounette@X.com
context=direction
callerid=Sabrine <0422130111>
;permit=0.0.0.0/0.0.0.0
permit=192.168.0.0/255.255.0.0
requirecalltoken=auto
[souahaib]
username=souahaib
secret=Teste
type=friend
host=dynamic
mailbox=sabi.nounette@X.com
context=direction
callerid=souahaib <0422130311>
;permit=0.0.0.0/0.0.0.0
permit=192.168.0.0/255.255.0.0
requirecalltoken=no
[to-selfone]
type=peer
username=identifant
secret=pass
trunk=yes
disallow=all
allow=g729
host=119.217.253.6
et mon extension.conf
Code:
[general]
static=yes
writeprotect=no
clearglobalvars=yes
[globals]
[ovh-sip] ;nom du plan
exten => 0033484251111,1,Dial(IAX2/david)
exten => 0033484251111,n,Hangup()
exten => 0033422130111,Dial(IAX2/sabi)
exten => 0033422130111,n,Hangup()
exten => 0033422130211,1,Dial(SIP/amira,5)
exten => 0033422130211,n,Playback(vm-reachoper)
exten => 0033422130211,n,Echo()
exten => 0033422130211,n,Hangup()
[appel-sortant]
;Cette partie gere les appels sortants allons appeler en passant par la section [forfait-ovh] du fichier sip.conf
;exten = _04XXX.,1,Dial(SIP/ovh-0033484251111/${EXTEN})
exten = _1ZXXX.,1,Dial(SIP/ovh-0033484251111/0${EXTEN:1})
exten = _1ZXXX.,n,Hangup()
exten = _2ZXXX.,1,Dial(SIP/ovh-0033422130111/0${EXTEN:1})
exten = _2ZXXX.,n,Hangup()
exten = _3ZXXX.,1,Dial(SIP/ovh-0033422130211/0${EXTEN:1})
exten = _3ZXXX.,n,Hangup()
;exten = _00XX.,1,Dial(IAX2/${EXTEN}@to-selfone)
;exten => _0XX.,1,Dial(IAX2/to-selfone/${EXTEN})
exten => _0ZXXXX.,1,Dial(IAX2/to-selfone/0033${EXTEN:1})
exten => _0033XXX.,1,Dial(IAX2/to-selfone/${EXTEN})
exten => _0032XXX.,1,Dial(IAX2/to-selfone/${EXTEN})
exten => _0041XXX.,1,Dial(IAX2/to-selfone/${EXTEN})
[direction]
include => appel-sortant
exten => 202,1,Dial(IAX2/david)
exten => 203,1,Dial(IAX2/sabi)
exten => 103,1,Dial(SIP/sarah)
exten => 104,1,Dial(SIP/amira)
exten => 101,1,Dial(IAX2/david/&IAX2/sabi&SIP/sarah)
exten => 102,1,Dial(SIP/david)
J'ai installé un liscence et un codec g729, j'ai besoin de bande passante!!!
voici un appels avec le trunk :
Code:
-- Accepting AUTHENTICATED call from 192.168.1.120:
> requested format = ulaw,
> requested prefs = (),
> actual format = ulaw,
> host prefs = (g729|ulaw|ilbc),
> priority = mine
-- Executing [0493546444@direction:1] Dial("IAX2/sabi-4608", "IAX2/to-selfone/0033493546444") in new stack
-- Called IAX2/to-selfone/0033493549424
[Jan 18 00:14:40] WARNING[1820]: chan_iax2.c:10672 socket_process: Call rejected by 119.217.253.6: No authority found
-- Hungup 'IAX2/to-selfone-21810'
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'IAX2/sabi-4608' status is 'CHANUNAVAIL'
et un prise avec un appel en boucle :
Code:
sip show channels
Peer User/ANR Call ID Format Hold Last Message Expiry Peer
91.121.129.17 0033422130211 1a04664a3cc683c 0x0 (nothing) No <guest>
91.121.129.17 0033484251111 10173-EO-01ec6f 0x100 (g729) No Rx: ACK ovh-003348
91.121.129.17 0422130211 67b96c07678757f 0x100 (g729) No Tx: ACK ovh-003348
192.168.1.120 amira ad36837d-7e2a-4 0x4 (ulaw) No Rx: ACK amira
91.121.129.17 0033422130111 1148ec7c467b0d4 0x0 (nothing) No <guest>
192.168.1.120 amira 4fc4e4a6-aa1b-4 0x0 (nothing) No Rx: BYE amira
6 active SIP dialogs
Pourriez vous m'aider?