diff options
author | Luigi Rizzo <rizzo@icir.org> | 2006-10-06 15:41:12 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2006-10-06 15:41:12 +0000 |
commit | ccca5843fde0d2b27fb2da684e87786cdee6af4c (patch) | |
tree | 10e3f6a3f1f7720b8cfdf522c48bbc4da0cf66ee /configs/sip.conf.sample | |
parent | cb127f4baa0e546240e973615ace5306ced6ccbc (diff) |
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
Diffstat (limited to 'configs/sip.conf.sample')
-rw-r--r-- | configs/sip.conf.sample | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configs/sip.conf.sample b/configs/sip.conf.sample index 52cb6cbb8..319d53e1a 100644 --- a/configs/sip.conf.sample +++ b/configs/sip.conf.sample @@ -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 ; |