On 3/7/06, <b class="gmail_sendername"><a href="mailto:hgaillac-sip@yahoo.fr">hgaillac-sip@yahoo.fr</a></b> <<a href="mailto:hgaillac-sip@yahoo.fr">hgaillac-sip@yahoo.fr</a>> wrote:<div><span class="gmail_quote"></span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>When the sip agents dial <a href="mailto:sip:user@otherdomain.tld">sip:user@otherdomain.tld
</a> so<br>the request is sent to sip proxy and so to Asterisk.<br>I wish Asterisk to Look up the domain's part of the<br>uri.<br>if the domain is not equal to domain.tld the request<br>is sent back to the sip proxy.<br><br>
Is it possible ?<br><br></blockquote></div><br>
You can check the ${SIPDOMAIN} variable in the dialplan on an incoming
call and then do whatever you want in the dialplan based on that (i.e.
exten => 123,1,GotoIf($["${SIPDOMAIN}" :
"otherdomain.tld"]?context|${EXTEN}|1:2) or something like that and
then have a Dial statement directed at the SER box at
context|${EXTEN}|1). Keep in mind though that this is a
completely new call. Asterisk is not a SIP proxy so you can't
just re-route the SIP packet back to SER. It will have a new
call-id, etc.<br>
<br>
Terry<br>