[Asterisk-Users] SIP Context from domain?

Mark Spencer markster at digium.com
Tue Nov 18 16:17:50 MST 2003


You now get ${SIPDOMAIN} when an incoming call comes in via SIP, so for
now you could do something like:

exten => _X.,1,Goto(cxt-${SIPDOMAIN},s,1)

and then have:

[cxt-digium.com]
exten => ....

and so on.

Mark

On Tue, 18 Nov 2003, Tristan 'Minty' Colgate wrote:

> Hi,
>
>   Is it possible to pick the context of a call from chan_sip based on the
> domain of the To: header of the INVUTE? I've had a quick look throught he code
> and can't see anything, I want to use the voicemail virtual hosting with
> chan_sip. Can the sip domain be picked out with a global in extensions.conf?
> This woud also solve my problem.
>
>   If not is there any specifc reason/restriction that I am missing? If it is
> not already supported and there aren't any specific objections then I don't
> mind putting together a patch for it.
>
>   I'm working with the last stable release and haven;t checked out CVS yet.
>
> --
> Tristan 'Minty' Colgate
> <minty at deadweb.net> | ICQ #154577755
> -----------
>   "I don't mean to sound bitter, cold, or cruel, but
>  I am, so that's how it comes out"
> 				- Bill Hicks
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list