[Asterisk-Users] Re: [asterisk-dev] Is there a way to define an
outbound proxy in sip.conf ?
Terry Wilson
otherwiseguy at gmail.com
Thu Mar 9 23:48:17 MST 2006
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060309/21eb2f64/attachment.htm
More information about the asterisk-users
mailing list