pues despues de mucho trastear el extensions.conf y el sip.conf me han quedado como sigue
extensions.conf
; Asterisk Management Portal (AMP)
; Copyright (C) 2004 Coalescent Systems Inc
; dialparties.agi (http://www.sprackett.com/asterisk/)
; Asterisk::AGI (http://asterisk.gnuinter.net/)
; gsm (http://www.ibiblio.org/pub/Linux/utils/ ... short.html)
; loligo sounds (http://www.loligo.com/asterisk/sounds/)
; mpg123 (http://voip-info.org/wiki-Asterisk+conf ... nhold.conf)
; include extension contexts generated from AMP
#include extensions_additional.conf
; Customizations to this dialplan should be made in extensions_custom.conf
; See extensions_custom.conf.sample for an example
#include extensions_custom.conf
static = yes
writeprotect = yes
;exten => _.,1,Congestion
; ############################################################################
; Inbound Contexts
; ############################################################################
exten => 200,1, dial(sip/200,20)
exten => 200,2,hangup
exten => 300,1, dial(sip/300,20)
exten => 300,2,hangup
exten => 400,1, dial(sip/400,20)
exten => 400,2,hangup
[from-sip-external]
give external sip users congestion and hangup
exten => _.,1,AbsoluteTimeout(15)
exten => _.,2,Congestion
exten => _.,3,Hangup
exten => 200,1, dial(sip/200,20)
exten => 200,2,hangup
exten => 300,1, dial(sip/300,20)
exten => 300,2,hangup
exten => 400,1, dial(sip/400,20)
exten => 400,2,hangup
[from-internal]
allow phones to use applications
include => app-directory
include => app-dnd
include => app-callforward
include => app-callwaiting
include => app-messagecenter
include => app-calltrace
include => parkedcalls
include => from-internal-custom
allow phones to dial other extensions
include => ext-fax
include => ext-local
include => ext-group
include => ext-queues
include => ext-zapbarge
include => ext-meetme
include => ext-record
include => ext-test
allow phones to access trunks
include => outbound-allroutes
exten => s,1,Macro(hangupcall)
exten => h,1,Macro(hangupcall)
exten => 200,1, dial(sip/200,20)
exten => 200,2,hangup
exten => 300,1, dial(sip/300,20)
exten => 300,2,hangup
exten => 400,1, dial(sip/400,20)
exten => 400,2,hangup
; ############################################################################
; Extension Contexts
; ############################################################################
[ext-zapbarge]
exten => 888,1,SetGroup(${CALLERIDNUM})
exten => 888,2,Answer
exten => 888,3,Wait(1)
exten => 888,4,ZapBarge
exten => 888,5,Hangup
[ext-meetme]
exten => _8X,1,Answer
exten => _8X,2,Wait(1)
exten => _8X,3,GotoIf($[${CALLERIDNUM} = ${EXTEN:1}]?5:4)
exten => _8X,4,MeetMe(${EXTEN}|sM)
exten => _8X,5,MeetMe(${EXTEN}|asM)
exten => _8XX,1,Answer
exten => _8XX,2,Wait(1)
exten => _8XX,3,GotoIf($[${CALLERIDNUM} = ${EXTEN:1}]?5:4)
exten => _8XX,4,MeetMe(${EXTEN}|sM)
exten => _8XX,5,MeetMe(${EXTEN}|asM)
exten => _8XXX,1,Answer
exten => _8XXX,2,Wait(1)
exten => _8XXX,3,GotoIf($[${CALLERIDNUM} = ${EXTEN:1}]?5:4)
exten => _8XXX,4,MeetMe(${EXTEN}|sM)
exten => _8XXX,5,MeetMe(${EXTEN}|asM)
exten => _8XXXX,1,Answer
exten => _8XXXX,2,Wait(1)
exten => _8XXXX,3,GotoIf($[${CALLERIDNUM} = ${EXTEN:1}]?5:4)
exten => _8XXXX,4,MeetMe(${EXTEN}|sM)
exten => _8XXXX,5,MeetMe(${EXTEN}|asM)
[ext-fax]
exten => s,1,Answer
exten => s,2,Goto(in_fax,1)
exten => in_fax,1,GotoIf($[${FAX_RX} = system]?2:analog_fax,1)
exten => in_fax,2,Macro(faxreceive)
exten => in_fax,3,system(tiff2ps -2eaz -w 8.5 -h 11 ${FAXFILE} | ps2pdf - ${FAXFILE}.pdf)
;exten => in_fax,4,system(mime-construct --to ${EMAILADDR} --subject "Fax from ${CALLERIDNUM} ${CALLERIDNAME}" --attachment ${FAXFILE}.pdf --type application/pdf --file ${FAXFILE}.pdf)
exten => in_fax,5,system(rm ${FAXFILE} ${FAXFILE}.pdf)
exten => in_fax,6,Hangup
exten => analog_fax,1,GotoIf($[${FAX_RX} = disabled]?3:2) ;if fax is disabled, just hang up
exten => analog_fax,2,Dial(${FAX_RX},20,d)
exten => analog_fax,3,Hangup
exten => out_fax,1,wait(7)
exten => out_fax,1,txfax(${TXFAX_NAME}|caller)
exten => out_fax,2,Hangup
exten => h,1,Hangup()
[ext-record]
exten => *77,1,Wait(2)
exten => *77,2,Record(${CALLERIDNUM}ivrrecording:wav)
exten => *77,3,Wait(2)
exten => *77,4,Hangup
exten => *99,1,Playback(${CALLERIDNUM}ivrrecording)
exten => *99,2,Wait(2)
exten => *99,3,Hangup
;this is where parked calls go if they time-out. Should probably re-ring
include => ext-local
exten => s,1,Playback(vm-goodbye)
exten => s,2,Macro(hangupcall)
[ext-test]
exten => 7777,1,Goto(from-pstn,s,1)
exten => 666,1,Goto(ext-fax,in_fax,1)
exten => h,1,Macro(hangupcall)
echo test
exten => *43,1,Answer
exten => *43,2,Wait(2)
exten => *43,3,Playback(demo-echotest)
exten => *43,4,Echo
exten => *43,5,Playback(demo-echodone)
exten => *43,6,Hangup
sip.conf
; Note: If your SIP devices are behind a NAT and your Asterisk
; server isn't, try adding "nat=1" to each peer definition to
; solve translation problems.
port = 5060 ; Port to bind to (SIP is 5060)
bindaddr = 192.168.1.69 ; Address to bind to (all addresses on machine)
disallow=all
localnet = 192.168.1.0/255.255.255.0
allow=all
context = bogon-calls ; Send unknown SIP callers to this context
;callerid = Unknown
svrlookup = yes
type = friend
username = 200
secret = 1234
host = 192.168.1.11
context = internal
nat=no
canreinvite = no
mailbox= 1001
type = friend
username = 300
secret = 1234
host = 192.168.1.3
context = internal
nat = no
canreinvite = no
mailbox= 1002
type = friend
username = 400
secret = 1234
host =dynamic
context = internal
context = internal
nat=no
canreinvite = no
mailbox= 1003
#include sip_nat.conf
#include sip_custom.conf
#include sip_additional.conf
ejecuto el comando sip show peers y me dice lo siguiente
[root@asterisk1 asterisk]# asterisk -r
Asterisk 1.0.9, Copyright (C) 1999-2004 Digium.
Connected to Asterisk 1.0.9 currently running on asterisk1 (pid = 1372)
Verbosity is at least 3
asterisk1*CLI> sip show peers
Name/username Host Dyn Nat ACL Mask Port Status
400/400 (Unspecified) D 255.255.255.255 0 Unmonitored
300/300 192.168.1.3 255.255.255.255 5060 Unmonitored
200/200 192.168.1.11 255.255.255.255 5060 Unmonitored
que puedo hacer...????