Barry Fawthrop wrote:
> Hi All
> Has there been problems with Caller ID and Asterisk 1.2.10 ???
> 
> I have a Phone Number from Teliax,  I get this
> chan_sip.c:10468 handle_request_invite: Failed to authenticate user 
> "3523029577" <sip:[EMAIL PROTECTED]>;tag=as03efd979
> 
> And the call does not go through.
> 
> I have a CG-410 FXO gateway if I enable caller ID I get the same thing, 
> without CallerID enabled
> It works
> 
> Here is what I see in the SIP Packets
> 
> 
> From: 3000<sip:[EMAIL PROTECTED]>;tag=   Works
> From: 3000<sip:[EMAIL PROTECTED]>;tag=  FAILS
> 
> 3000            is the exten in SIP.conf for the FXO gateway
> 3523029577      is the caller ID of the incoming call
> 10.10.10.10     obviously is the Asterisk IP
> 
> Shouldn't it read
> 3523029577<sip:[EMAIL PROTECTED]>;tag= ????
> 
> Thanks
> Barry
> 

Barry,

        Try setting sendrpid=yes, trustrpid=yes, and insecure=very for your SIP 
peers.

        As far as Caller ID with SIP, generally, this is how it works:

From: 3000<sip:[EMAIL PROTECTED]>;tag=

3000 - From name
3523029577 - From Number (usually, technically it is the actual SIP uri)
10.10.10.10 - Domain

        Think of an e-mail address:

mailto:Kristian Kielhofner<[EMAIL PROTECTED]>

        Same thing.

        Unless you use RPID (or on some stacks, PAI*), SIP does not clearly 
separate caller id from authentication information.  Setting 
insecure=very causes Asterisk to accept any invite from that peer's IP 
address as one that should match that peer - regardless of what the 
"authentication" (callerid) information says.  It is VERY commonly used 
on SIP trunks with providers when Caller ID needs to be set arbitrarily.

        Now, if you are building your own network of interconnected SIP boxes 
running Asterisk, the various *rpid options will work quite well. 
However, if you are using some other SIP provider, it is up to THEM to 
either send RPID to you, or trust the RPID that you send.  They *SHOULD* 
do both, as RPID is a pretty basic feature now - certainly between 
gateways and such.  Not all UA's (like phones) support it, but anything 
that resembles a gateway, proxy, etc should all support it.


*You can read more about PAI here:

http://www.ietf.org/rfc/rfc3325.txt

--
Kristian Kielhofner
_______________________________________________
Astlinux-users mailing list
[email protected]
http://lists.kriscompanies.com/mailman/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to