BUENO POR FIN.........
Aqui lo pongo mi sip.conf y extensions.conf
Para quellos que no lo hayan conseguido aqui esta funcionando 100x100
sip.conf
[general]
context = voip_providers
bindport = 5063
udpbindaddr = 0.0.0.0 ; IP address to bind UDP listen socket to (0.0.0.0 binds to all)
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)
srvlookup = yes ;
language = es ; Default language setting for all users/peers
nat = no
;sipdebug=yes
register => +349xxxxxxxx@voipd.ya.com:tu_pas_de_yacom:9xxxxxxxx@proxy.voip.ya.com
subscribecontext = default
[basic-phone](!) ; a template
dtmfmode = rfc2833
context = phones
type = friend
host = dynamic
directmedia = no
canreinvite = no
qualify = yes
disallow = all
allow = ilbc
allow = g729
allow = gsm
allow = g723
allow = ulaw
[natted-phone](!,basic-phone) ; another template inheriting basic-options
[yacom]
type = peer
host = 84.78.3.126
fromuser = +349xxxxxxxx
defaultuser = 9xxxxxxxx
secret = xxxxxxx tu pass de ya con
context = voip_providers
fromdomain = voipd.ya.com
realm = voipd.ya.com
outboundproxy = 84.78.3.62:5060
canreinvite = no
insecure = port,invite
qualify = yes
useragent = SMC/SMC-0.10.003
defaultexpirey = 3600
dtmfmode = rfc2833
deny = 0.0.0.0/0
permit = 84.78.3.62/32
permit = 84.78.3.126/32
callerid = +349xxxxxxxxx
srvlookup = yes
language = es
disallow = all
allow = ulaw
allow = alaw
allow = g729
nat = yes
;-------------------------------Extensiones-----------------------
[100](natted-phone)
secret = 100
callerid = 100
username = 100
udpbindaddr = 0.0.0.0
[101](natted-phone)
secret = 101
callerid = 101
username = 101
udpbindaddr = 0.0.0.0
[102](natted-phone)
secret = 102
callerid = 102
username = 102
udpbindaddr = 0.0.0.0
[103](natted-phone)
secret = 103
callerid = 103
username = 103
udpbindaddr = 0.0.0.0
[104](natted-phone)
secret = 104
callerid = 104
username = 104
udpbindaddr = 0.0.0.0
[105](natted-phone)
secret = 105
callerid = 105
username = 105
udpbindaddr = 0.0.0.0
[111](natted-phone)
secret = 111
callerid = 111
username = 111
udpbindaddr = 0.0.0.0
Y aqui lo mas importante.
Extensions.conf
[general]
static = yes
writeprotect = no
autofallthrough = no
clearglobalvars = no
[globals]
CONSOLE = Console/dsp ; Console interface for demo
IAXINFO = guest ; IAXtel username/password
TRUNK = DAHDI/G2 ; Trunk interface
TRUNKMSD = 1 ; MSD digits to strip (usually 1 or 0)
FEATURES =
DIALOPTIONS =
RINGTIME = 20
FOLLOWMEOPTIONS =
PAGING_HEADER = Intercom
[default]
exten => s,1,NoOp(Unrouted call handler)
exten => s,n,Answer()
exten => s,n,Wait(1)
exten => s,n,Playback(tt-weasels)
exten => s,n,Hangup()
[incoming_calls]
exten => s,1,Wait(0)
exten => s,n,NoOp(${CALLERID(num)}) ; trazar el caller-id en la consola
exten => s,n,Dial(SIP/102&SIP/111,90,Ttr) ;Donde queremos que suenen las llamadas
exten => s,n,Hangup() ;colgamos
[outgoing_calls]
exten => _X.,1,NoOp(yacom call: ${EXTEN})
exten => _X.,n,Set(CALLERID(all)="+34958816550" )
exten => _X.,n,Dial(SIP/${EXTEN}@yacom,90,Ttr)
exten => _X.,n,Hangup()
exten => s,1,NoOp(yacom call: ${EXTEN})
exten => s,n,Set(CALLERID(all)="+349xxxxxxxx" )
exten => s,n,Dial(SIP/${EXTEN}@yacom,90,Ttr)
exten => s,n,Hangup()
[international_calls]
exten => _+.,1,NoOp(International call)
exten => _+.,n,Goto(00${EXTEN:1},1) ; Change + to 00
exten => _0034.,1,NoOp(yacom call: ${EXTEN})
exten => _0034.,n,Set(CALLERID(all)="+349xxxxxxxx" )
exten => _0034.,n,Dial(SIP/${EXTEN}@yacom,90,Ttr)
exten => _0034.,n,Hangup()
[internal]
exten => 100,1,NoOp()
exten => 100,n,Dial(SIP/100) ; extension 100
exten => 100,n,Hangup()
exten => 101,1,NoOp() ; extension 101
exten => 101,n,Dial(SIP/101)
exten => 101,n,Hangup()
exten => 102,1,NoOp() ; extension 102
exten => 102,n,Dial(SIP/102)
exten => 102,n,Hangup()
exten => 103,1,NoOp() ; extensión 103
exten => 103,n,Dial(SIP/103)
exten => 103,n,Hangup()
exten => 104,1,NoOp() ; extensión 104
exten => 104,n,Dial(SIP/104)
exten => 104,n,Hangup()
exten => 105,1,NoOp() ; extensión 105
exten => 105,n,Dial(SIP/105)
exten => 105,n,Hangup()
exten => 500,1,NoOp(Echo test application)
exten => 500,n,Echo()
exten => 500,n,Hangup()
[voip_providers]
include => incoming_calls
include => outgoing_calls
include => international_calls
[phones]
include => internal
include => outgoing_calls
include => international_calls
Creo que no seme olvida nada , seguro que que es mejorable pero asi me funciona de maravilla
faltan los buzones de voz, e infinidad de cosas que se le pueden configurar , pero lo importante es que se registra, hace y recibe llamadas, a partir de aqui, configurar cada uno a su gusto , seria bueno que se aportaran las experiencias de cada uno
Espero que os sirva de ayuda ami me costo mas de un mes conseguirlo.