How to config to use registrar and proxy on different hosts?

Hi guys,
I’m trying to configure Asterisk to work in a scenario where the registrar (host A) is a different host from the proxy (host B). I’d like that Asterisk register on A and than perform other requests through B. My sip.conf is like the following (I’m using Asterisk 1.2.4):

[general]
context=from-net
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
registerattempts=0
checkmwi=10
pedantic=yes
tos=184
useragent=foo
disallow=all
allow=ulaw:30
allow=alaw:30
t38udptlsupport=yes
defaultexpiry=3600
register => userid@fromdomain:secret:userauth@host:port/userid

[userid]
type=peer
user=phone
insecure=very
canreinvite=no
promiscredir=yes
fromuser=userid
dtmfmode=inband
compatmode=off
remotemailbox=0
host=x.x.x.x
fromdomain=y.y.y.y
port=5060
username=userauth
secret=password
disallow=all
allow=ulaw:30
allow=alaw:30
faxtxcodec=ulaw
qualify=no

How can I configure Asterisk to work in the previous scenario?

Thanks a lot.

Enrico

In the peer definition, “userid”, try add the option “outboundproxy”, never used but should be what you’re looking for.

Cheers.

Marco Bruni
www.marcobruni.net

Thank you for the response. I think that the outbound proxy is a different thing: it is used as a pass through which to reach other domains, while I want to specify a registrar different from the SIP proxy.

Anyone has ever configured Asterisk in this way?

Thank you.

Enrico

I performed some tests and the solution seems easy: I tried to set “host” with my proxy address and it perform registration using “register” indication, but for other requests use the host address, as I wanted.

I’m going to perform more precise tests.

Enrico