[Asterisk-Users] Realtime Users/Peers/Friends - Ick

Dovid Bender asteriskdigium at yahoo.com
Fri Mar 31 05:05:55 MST 2006


Doug this is in no way an offense to you but I think
we need to start the asterisk booze fund. This will be
for all of us that have ups and downs in working on
getting asterisk set up. I for one have my friend
"Johny Walker" right by my side when ever it gets to
me.

--- Douglas Garstang <dgarstang at oneeighty.com> wrote:

> I just tried setting all my phone's to type=peer.
> Seems to break everything. I heard that type=friend
> was going to be phased out in upcoming releases of
> Asterisk. I sure hope the developers have thought
> this though.
>  
> Reason? Well our phones send calls to Asterisk
> through OpenSER. We have multiple OpenSER systems
> that the calls may hit Asterisk from. When I set all
> my phone accounts in my sip peers table to
> type=peer, Asterisk no longer matches against them,
> and instead matches against the OUTGOING OpenSER
> proxy entries (we place calls to the PSTN through
> OpenSER too). I guess it does this because it
> matches the source IP address of the INVITE against
> the host= value against the proxy in sip.conf. 
>  
> Asterisk responds with:
> --- (14 headers 14 lines)---
> Using INVITE request as basis request -
> B9AC094A-98C7-4015-9989-8024E5BB62C5 at 192.168.1.101
> Sending to xxx.187.142.205 : 5060 (non-NAT)
> Found no matching peer or user for
> 'xxx.187.142.205:5060'
>  
> Bottom line is that incoming calls from phones
> through OpenSER no longer match against the
> individual phones accounts, but against the outgoing
> (they have PEER!) OpenSER proxy entries. Now that I
> think about it, why the heck do incoming calls match
> against a type=peer entry anyway? I thought a peer
> was for outgoing calls only???
>  
> Is this the way it's going to work in some future
> release of Asterisk?
>  
> Btw, I tried setting the phones to peer because I
> don't know what the frig I'm doing.
>  
> Doug
>  
> 
> 	-----Original Message----- 
> 	From: Douglas Garstang 
> 	Sent: Wed 3/29/2006 10:01 PM 
> 	To: Asterisk Users Mailing List - Non-Commercial
> Discussion; Asterisk Users Mailing List -
> Non-Commercial Discussion 
> 	Cc: 
> 	Subject: [Asterisk-Users] Realtime
> Users/Peers/Friends - Ick
> 	
> 	
> 
> 	I've been going in circles for a few weeks now with
> Realtime SIP.
> 	
> 	My extconfig.conf has:
> 	
> 	sipusers => mysql,dbname,ast_sip_users
> 	sippeers => mysql,dbname,ast_sip_users
> 	
> 	When I do a 'sip show peers' I see all my phones.
> When I do a 'sip show users' I only see a few of
> them. I can't work out why this is the case. They
> are also coming up with NAT as 'RFC3581', eventhough
> I have nat set to NO for every friend in the
> ast_sip_users table.
> 	
> 	In short, phones make and receive calls, so they
> should be defined as type=friend, right? Should I
> point sipusers and sippeers from extconfig to the
> same table? Why does 'extconfig' have sipusers and
> sippeers? This is driving me nuts! Is this actually
> documented anywhere?
> 	
> 	Doug.
> 	
> 	
> 	
> 
> > _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com
> --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>   
>
http://lists.digium.com/mailman/listinfo/asterisk-users
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the asterisk-users mailing list