Antonio Gómez Soto wrote:

<snip>



Ok, thank you. One final question:

I see that it's possible to have multiple auth's in an endpoint. For
incoming traffic to be
authenticated, how does pjsip know which auth to consider? By looking at
the From: address
in the SIP header, and matching that up with the auth id?
For example if the From: header is <[email protected]
<mailto:[email protected]>>, will it find the AOR from the IP
address, and the auth from the '10000' ?

Endpoints (remember, an endpoint is the configuration to use for traffic to/from a specific client) can be determined using a pluggable mechanism. Included are modules which determine the endpoint based on the From header, based on configured IP address matching rules, and finally one that just always uses a specific endpoint (used for anonymous). Once the endpoint is determined the auth to use is pulled from there.

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

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

Reply via email to