Asterisk x-lite in a LAN


#1

sir,
i have 3 machines and i installed asterisk(libpri+asterisk) on my linux machine and x-lite on the others windows machines…i’m working in LAN .itriied to configure sip.conf and extensions.conf but no succes.so how should i configure this files to permit the x-lite client to make call through my asterisk machines.
i’m waiting for help please.


#2

did you read the multitude of help around ? try voip-info.org/tiki-index.php?page=Xten


#3

Another tutorial for xlite (and other softphones).

asteriskguru.com/tutorials/x … phone.html


#4

this are the configs i did asking for help
sip.conf
[general]
port = 5060
bindaddr = 0.0.0.0
context=sip
srvlookup = yes
pedantic = yes
tos=lowdelay
tos=184
maxexpirey=3600
defaultexpirey=120
notifymimetype=text/plain
videosupport=yes
disallow=all
allow=ulaw
allow=ilbc

[700]
type=friend
context=sip
secret=kkjp
callerid=“client1” <700>
;dtmfmode = rfc2833
dtmfmode = inband
defaultip= 10.6.10.8
host=10.6.10.8
nat=no
canreinvite=no
disallow=all
allow=gsm
allow=ulaw
allow=alaw

[800]
type=friend
secret=kkjp
context=sip
callerid=“client2” <800>
host=10.6.10.9
defaultip=10.6.10.9
dtmfmode = inband
;dtmfmode = rfc2833
nat=no
canreinvite=no
disallow=all
allow=gsm
allow=ulaw
allow=alaw
extensions.conf
[sip]
exten=10,1,Dial(SIP/700,20,tr)
exten=11,1,Dial(SIP/800,20,tr)
i simplly put that at the end of this file
can you tell me what should i do


#5

why no username for each of the extensions defined ?

run an asterisk console and restart xten, do you see a registration ? what is in the asterisk log ?


#6

this is what happen in the log file

Sep 1 10:47:04 NOTICE[1623]: Request to schedule in the past?!?!
Sep 1 10:47:08 NOTICE[1626]: Peer ‘800’ is trying to register, but not configured as host=dynamic
Sep 1 10:47:08 NOTICE[1626]: Registration from ‘aïcha sip:800@10.6.9.7’ failed for '10.6.10.9’
Sep 1 10:47:08 NOTICE[1623]: Request to schedule in the past?!?!
Sep 1 10:47:12 NOTICE[1623]: Request to schedule in the past?!?!
Sep 1 10:48:05 NOTICE[1623]: Request to schedule in the past?!?!
Sep 1 10:48:08 NOTICE[1626]: Peer ‘800’ is trying to register, but not configured as host=dynamic
Sep 1 10:48:08 NOTICE[1626]: Registration from ‘aïcha sip:800@10.6.9.7’ failed for '10.6.10.9’
Sep 1 10:48:15 NOTICE[1623]: Request to schedule in the past?!?!
Sep 1 10:48:44 NOTICE[1623]: Request to schedule in the past?!?!
Sep 1 10:48:50 NOTICE[1623]: Request to schedule in the past?!?!
Sep 1 10:49:01 NOTICE[1623]: Request to schedule in the past?!?!
Sep 1 10:49:16 NOTICE[1623]: Request to schedule in the past?!?!
Sep 1 10:49:20 NOTICE[1626]: Peer ‘800’ is trying to register, but not configured as host=dynamic
Sep 1 10:49:20 NOTICE[1626]: Registration from ‘aïcha sip:800@10.6.9.7’ failed for '10.6.10.9’
Sep 1 10:49:53 NOTICE[1623]: Request to schedule in the past?!?!
Sep 1 10:50:29 NOTICE[1626]: Peer ‘800’ is trying to register, but not configured as host=dynamic
Sep 1 10:50:29 NOTICE[1626]: Registration from ‘aïcha sip:800@10.6.9.7’ failed for '10.6.10.9’
Sep 1 10:51:30 NOTICE[1626]: Peer ‘800’ is trying to register, but not configured as host=dynamic
Sep 1 10:51:30 NOTICE[1626]: Registration from ‘aïcha sip:800@10.6.9.7’ failed for '10.6.10.9’
Sep 1 10:52:33 NOTICE[1626]: Peer ‘800’ is trying to register, but not configured as host=dynamic
Sep 1 10:52:33 NOTICE[1626]: Registration from ‘aïcha sip:800@10.6.9.7’ failed for '10.6.10.9’
Sep 1 10:53:33 NOTICE[1626]: Peer ‘800’ is trying to register, but not configured as host=dynamic
Sep 1 10:53:33 NOTICE[1626]: Registration from ‘aïcha sip:800@10.6.9.7’ failed for '10.6.10.9’
Sep 1 10:54:34 NOTICE[1626]: Peer ‘800’ is trying to register, but not configured as host=dynamic
Sep 1 10:54:34 NOTICE[1626]: Registration from ‘aïcha sip:800@10.6.9.7’ failed for '10.6.10.9’
Sep 1 10:54:44 NOTICE[1623]: Request to schedule in the past?!?!
Sep 1 10:55:35 NOTICE[1626]: Peer ‘800’ is trying to register, but not configured as host=dynamic
Sep 1 10:55:35 NOTICE[1626]: Registration from ‘aïcha sip:800@10.6.9.7’ failed for '10.6.10.9’
Sep 1 10:56:36 NOTICE[1626]: Peer ‘800’ is trying to register, but not configured as host=dynamic
Sep 1 10:56:36 NOTICE[1626]: Registration from ‘aïcha sip:800@10.6.9.7’ failed for '10.6.10.9’
Sep 1 10:57:09 NOTICE[1623]: Request to schedule in the past?!?!
Sep 1 10:57:37 NOTICE[1626]: Peer ‘800’ is trying to register, but not configured as host=dynamic
Sep 2 10:57:37 NOTICE[1626]: Registration from ‘aïcha sip:800@10.6.9.7’ failed for '10.6.10.9’
W10: Alerte: Modification d’un fichier en lecture seule …


#7

read the logfile … it would seem to say there that you don’t have the IP addys right. why not just use host=dynamic for the extensions, unless there’s a pressing need to restrict them to an IP address.


#8

i changed host into dinamic but when i make the test, there is this message on the x-lite screen

“408 timeout”