summaryrefslogtreecommitdiff
path: root/configs/samples/sip.conf.sample
diff options
context:
space:
mode:
authorWalter Doekes <walter+asterisk@wjd.nu>2016-02-19 11:30:15 +0100
committerWalter Doekes <walter+asterisk@wjd.nu>2016-02-19 11:30:15 +0100
commitc00082329ef405ce2af6aaa8e40ada37de2aeb7b (patch)
treed80cfbb6818414b7d3abeee39b673f836affd6d0 /configs/samples/sip.conf.sample
parent6fc57b3e1f401fd18e3e4d4462f973094dd0908c (diff)
chan_sip: Optionally supply fromuser/fromdomain in SIP dial string.
Previously you could add [!dnid] to the SIP dial string to alter the To: header. This change allows you to alter the From header as well. SIP dial string extra options now look like this: [![touser[@todomain]][![fromuser][@fromdomain]]] INCOMPATIBLE CHANGE: If you were using an exclamation mark in your To: header, that is no longer possible. ASTERISK-25803 #close Change-Id: I2457e9ba7a89eb1da22084bab5a4d4328e189db7
Diffstat (limited to 'configs/samples/sip.conf.sample')
-rw-r--r--configs/samples/sip.conf.sample11
1 files changed, 11 insertions, 0 deletions
diff --git a/configs/samples/sip.conf.sample b/configs/samples/sip.conf.sample
index fe685141a..d89a2a157 100644
--- a/configs/samples/sip.conf.sample
+++ b/configs/samples/sip.conf.sample
@@ -24,6 +24,9 @@
; SIP/devicename/extension
; SIP/devicename/extension/IPorHost
; SIP/username@domain//IPorHost
+; And to alter the To: or the From: header, you can additionally append
+; the following to any of the above strings:
+; [![touser[@todomain]][![fromuser][@fromdomain]]]
;
;
; Devicename
@@ -57,6 +60,14 @@
;
; SIP/sales@mysipproxy!sales@edvina.net
;
+; (Specifying only @todomain without touser will create an invalid SIP
+; request.)
+;
+; Similarly, you can specify the From header as well, after a second
+; exclamation mark:
+;
+; SIP/customer@mysipproxy!!customersupport@wearespindle.com
+;
; A new feature for 1.8 allows one to specify a host or IP address to use
; when routing the call. This is typically used in tandem with func_srv if
; multiple methods of reaching the same domain exist. The host or IP address