Quick question for those who know the innards of chan_sip: Does chan_sip use the "To:" header of an incoming INVITE request, for anything other than setting SIP_HEADER(TO) ? As far as I can tell so far, the target extension is taken from the request URI, i.e. sip:extension at domain, and the target context is taken from the section in sip.conf that matches the request's source IP address. Is that correct? Cheers Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org
7 nov 2007 kl. 14.26 skrev Tony Mountifield:> Quick question for those who know the innards of chan_sip: > > Does chan_sip use the "To:" header of an incoming INVITE request, > for anything other than setting SIP_HEADER(TO) ?No. Like e-mail software not using the To: header in the actual e-mail.> > > As far as I can tell so far, the target extension is taken from the > request URI, i.e. sip:extension at domain, and the target context > is taken from the section in sip.conf that matches the request's > source IP address. Is that correct?Or by matching a user section by From: username. /O