[asterisk-dev] Is there a way to define an outbound proxy in sip.conf ?
- From: "Terry Wilson" <otherwiseguy (at) gmail.com>
- Date: Fri, 10 Mar 2006 00:48:17 -0600
On 3/7/06, hgaillac-sip (at) yahoo.fr <hgaillac-sip (at) yahoo.fr> wrote:
When the sip agents dial sip:user (at) otherdomain.tld
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