[Asterisk-Users] Re: context being ignored by inbound sip call

Barry Flanagan barryf-lists at flanagan.ie
Thu Feb 23 04:31:02 MST 2006


> I would never recommend using a type=friend for a service provider
> connection. You need one peer for calling out and another for receiving 
> calls, or at least add a "host=<hostname of provider's server>" to 
> enable matching on IP on incoming calls.
> 
> The problem here is, as you figured out Jonathan, that this peer section 
> does not match the incoming call. Adding a host=hostname entry will help 
> matching.

Related question:

If using OpenSER in front of * as a registrar/proxy, how should the sip 
clients be set up for outgoing calls?

All our INVITES will come from the ser IP addresses (there are 2 
currently) and we so I need to match on username and host combination.

If I set up the client sip entry as peer, then the username is not 
looked up, only the host settings.

If I set up the client as user, then the host setting is ignored and 
anyone could log in to that SIP account, just knowing the username.

Setting it as friend works, but my feeling is (and your comment above 
re-enforces this) that this is not the way to do it.

How do I set up so that the host MUST match one of our OpenSER IPs AND 
the username must match?

Thanks.


-- 

-Barry Flanagan



More information about the asterisk-users mailing list