On 3/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

When the sip agents dial sip:[EMAIL PROTECTED] so
the request is sent to sip proxy and so to Asterisk.
I wish Asterisk to Look up the domain's part of the
uri.
if the domain is not equal to domain.tld the request
is sent back to the sip proxy.

Is it possible ?


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.

Terry
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to