PDA

Voir la version complète : comment enregistrer un client x-lite sur asterisk



pisto
25/10/2011, 18h38
bonjour a tous,
je suis débutant sur asterisk et j'aimerais configurer un serveur pour appeler en interne comme début et si possible évoluer avec d'autres fonctionnalités.
j'ai installer mon serveur asterrisk sous fedora 15, et j'y ai aussi installé un client x-lite. le client x-lite sur fedora 15 est enregistré (sip show peers) mais les clients x-lite sur XP non. les appels entre client sous xp ne passe, mais entre un client xp et fedora n'ya pas de souci, aussi les appels entre le client sur fedora et les clients sur XP ne passent pas . voici mes fichiers de configuration et mmon CLI.

-- Executing [1001@sparks:1] Dial("SIP/yannick-00000002", "SIP/clement") in new stack
[Oct 25 10:41:10] WARNING[1954]: app_dial.c:2196 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'SIP/yannick-00000002' status is 'CHANUNAVAIL'
-- Registered SIP 'clement' at 192.168.16.101:5061
[Oct 25 10:41:26] NOTICE[1924]: chan_sip.c:20087 handle_response_peerpoke: Peer 'clement' is now Reachable. (2ms / 2000ms)
== Using SIP RTP CoS mark 5
-- Executing [1001@sparks:1] Dial("SIP/marco-00000003", "SIP/clement") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/clement
-- SIP/clement-00000004 is ringing
== Spawn extension (sparks, 1001, 1) exited non-zero on 'SIP/marco-00000003'
== Using SIP RTP CoS mark 5
-- Executing [1001@sparks:1] Dial("SIP/yannick-00000005", "SIP/clement") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/clement
-- SIP/clement-00000006 is ringing
-- SIP/clement-00000006 answered SIP/yannick-00000005
-- Locally bridging SIP/yannick-00000005 and SIP/clement-00000006
== Spawn extension (sparks, 1001, 1) exited non-zero on 'SIP/yannick-00000005'
sip show peers
Name/username Host Dyn Forcerport ACL Port Status
clement/clement 192.168.16.101 D 5061 OK (1 ms)
emma/emma (Unspecified) D 0 UNKNOWN
marco/marco (Unspecified) D 0 UNKNOWN
philippe/philippe (Unspecified) D 0 UNKNOWN
stephane/stephane (Unspecified) D 0 UNKNOWN
yannick/yannick (Unspecified) D 0 UNKNOWN

extensions.conf
[general]
static=yes
writeprotect=no
clearglobalvars=no

[sparks]
exten => 1001,1,Dial(SIP/clement)
exten => 1002,1,Dial(SIP/stephane)
exten => 1003,1,Dial(SIP/marco)
exten => 1004,1,Dial(SIP/yannick)
exten => 1005,1,Dial(SIP/emma)
exten => 1006,1,Dial(SIP/philippe)

sip.conf
[general]
context=sparks
language=fr
port=5060
bindaddr=0.0.0.0
srvlookup=yes
allowoverlap=no

[clement]
type=friend
username=clement
secret=toto
port=5060
bindaddr=0.0.0.0
qualify=yes
nat=no
;auth=md5
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=ulaw
allow=alaw
allow=g726
allow=g729
context=sparks
callerid="clement"<1001>
mailbox=1111
canreinvite=no

[stephane]
type=friend
username=stephane
secret=toto
qualify=yes
port=5060
bindaddr=0.0.0.0
nat=no
;auth=md5
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=ulaw
allow=alaw
allow=g726
allow=g729
context=sparks
callerid="stephane"<1002>
mailbox=2222
canreinvite=no

[marco]
type=friend
username=marco
secret=toto
qualify=yes
port=5060
bindaddr=0.0.0.0
nat=no
;auth=md5
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=ulaw
allow=alaw
allow=g726
allow=g729
context=sparks
callerid="marco"<1003>
mailbox=3333
canreinvite=no

[yannick]
type=friend
username=yannick
secret=toto
qualify=yes
port=5060
bindaddr=0.0.0.0
nat=no
;auth=md5
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=ulaw
allow=alaw
allow=g726
allow=g729
context=sparks
callerid="yannick"<1004>
mailbox=4444
canreinvite=no

[emma]
type=friend
username=emma
secret=toto
qualify=yes
port=5060
bindaddr=0.0.0.0
nat=no
;auth=md5
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=ulaw
allow=alaw
allow=g726
allow=g729
context=sparks
callerid="emma"<1005>
mailbox=5555
canreinvite=no

[philippe]
type=friend
username=philippe
secret=toto
qualify=yes
port=5060
bindaddr=0.0.0.0
nat=no
;auth=md5
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=ulaw
allow=alaw
allow=g726
allow=g729
context=sparks
callerid="philippe"<1006>
mailbox=6666
canreinvite=no

peut être ai-je omis ou augmenter des choses qu'il ne fallait pas. ya t-il quelqu'un pour m'aider. merci d'avance.

Comdif
25/10/2011, 21h25
Si tu es débutant il est préférable de jouer avec des numéros
par exemple un truc très simple avec un mini d'option
pas utile de préciser les codecs entre des Xlite et autres fonctions
que magic *, de toute façon fixe par défaut aux valeurs qui conviennent parfaitement pour faire des expériences.

[sparks]
exten => _100X,1,Dial(SIP/${EXTEN})

[1000]
type=friend
username=1000
secret=toto
nat=no
host=dynamic
dtmfmode=rfc2833
context=sparks
callerid="clement"<1000>
mailbox=1111

ffossard
25/10/2011, 23h08
Si tu es débutant il est préférable de jouer avec des numéros
...
[sparks]
exten => _100X,1,Dial(SIP/${EXTEN})

Je suis de l'avis contraire :non: , utiliser les numéros comme noms de comptes empêche les débutants de comprendre ce qu'ils font.

Le sip show peers montre que seul "clement" est enregistré, il faudrait vérifier les postes en xp (ont-ils un pare-feu ?)

pisto
26/10/2011, 18h16
Je suis de l'avis contraire :non: , utiliser les numéros comme noms de comptes empêche les débutants de comprendre ce qu'ils font.

Le sip show peers montre que seul "clement" est enregistré, il faudrait vérifier les postes en xp (ont-ils un pare-feu ?)

merci de vos reactions, en fait les clients sont sous win7, et ont chacun un parefeu, j'ai déactiver les parefeux toujours rien, les clients ne sont pas enregistrés.