Yo logre configurarlo, te paso la configuracion q use en el sip.conf:
PBX1
type=friend ; We allow incoming and outgoing calls. Use peer if you are only doing MWI
context=voip ; This is the context incoming calls land in
host=voip.dominio.com.ar ; This is the hostname or IP address of your SER server
fromdomain=voip.dominio.com.ar ; This is your SER_DOMAIN
insecure=very ; This allows incoming calls from the phones routing through ser to be passed into asterisk
mailbox=user@default ; This is where you list the voicemail boxes to monitor
PBX2
type=friend ; We allow incoming and outgoing calls. Use peer if you are only doing MWI
context=voip2 ; This is the context incoming calls land in
host=voip2.dominio.com.ar ; This is the hostname or IP address of your SER server
fromdomain=voip2.dominio.com.ar ; This is your SER_DOMAIN
insecure=very ; This allows incoming calls from the phones routing through ser to be passed into asterisk
mailbox=user@default ; This is where you list the voicemail boxes to monitor
LUego para marcar de uno a otro debes usar el DIAL:
exten => _X.,1,Dial(SIP/${EXTEN}@IP_PBX:5060,60)
y ademas para las llamadas entrantes debes generar los contextos respectivos :
PBX1
exten => s,1,Ringing
exten => s,2,Background(invalid)
exten => s,3,HangUp()
PBX2
exten => s,1,Ringing
exten => s,2,Background(invalid)
exten => s,3,HangUp()
Si te responde el invalid es porque esta bien, luego el resto te lo dejo....
Fijate si te sirvio, a mi me funciono sino chfla.
SAludos