mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-25 14:06:27 +00:00 
			
		
		
		
	Two things:
1. slightly rearrange/simplify the parsing of the argument in sip_register.
   This brings in a patch that has been in Mantis (5834)  for ages,
   and is the larger part of the commit;
2. implement the "contact" option for peers, similar to the one in users.conf:
   If you put a "contact" option with a non-empty argument (e.g. contact=123)
   in a peer section, asterisk will register with the provider as if you had a     
        register= username:secret@host/contact 
   line in the general section.
The latter is a very small is a new feature so i am not putting it
in the 1.4 branch, although the "contact" option in user.conf is
already in the 1.4 branch and so it wouldn't be too strange to
merge it.
Note that the implementation of "contact" is much simpler than
the one in 5834, and limited to a few lines in build_peer().
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
			
			
This commit is contained in:
		| @@ -432,6 +432,7 @@ srvlookup=yes			; Enable DNS SRV lookups on outbound calls | ||||
| ;                             sendrpid | ||||
| ;                             outboundproxy | ||||
| ;                             rfc2833compensate | ||||
| ;                             contact | ||||
|  | ||||
| ;[sip_proxy] | ||||
| ; For incoming calls only. Example: FWD (Free World Dialup) | ||||
| @@ -454,6 +455,14 @@ srvlookup=yes			; Enable DNS SRV lookups on outbound calls | ||||
| 				; Call-limits will not be enforced on real-time peers, | ||||
| 				; since they are not stored in-memory | ||||
|  | ||||
| ;--- sample definition for a provider | ||||
| ;[provider1] | ||||
| ;type=peer | ||||
| ;host=sip.provider1.com | ||||
| ;username=4015552299		; how your provider knows you | ||||
| ;secret=youwillneverguessit | ||||
| ;contact=123			; tell asterisk to register as username:secret@host/contact | ||||
|  | ||||
| ;------------------------------------------------------------------------------ | ||||
| ; Definitions of locally connected SIP devices | ||||
| ; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user