<div>Hi, </div>
<div> </div>
<div>I think this maybe impossible, but still want to try. </div>
<div>If an INVITE with different host go throught my Asterisk, I want it not look into local dialplan and forward the request.</div>
<div>Some of you may suggest I use real sip proxy, but I need a stateful proxy doing this signal proxess.</div>
<div> </div>
<div>Incoming Asterisk or whatever <a href="http://def.com">def.com</a> <a href="http://abc.com">abc.com</a></div>
<div> | INVITE(<a href="mailto:44491@def.com">44491@def.com</a>) | | |</div>
<div> |------------------------------------------------| INVITE | |</div>
<div> | |-------------------------------------->| |</div>
<div> | | 301 (Call forwarding | |</div>
<div> | to <a href="http://abc.com">abc.com</a>) | |</div>
<div> |<--------------------------------------| |</div>
<div> | INVITE |</div>
<div> |--------------------------------------------------------->|</div>
<div> </div>
<div>a regular stateless SIP proxy will forward this 301 all the way back to incoming, which I don't want to.</div>
<div>Asterisk will treat first INVITE as local dial plan, even it's not in local domain. Still cann't satisfied me.</div>