Eric Chamberlain
2008-Oct-19 00:13 UTC
[asterisk-users] Is there a way to specify the fromdomain from the dialplan?
Is there a way to override the fromdomain specified in the sip.conf and instead set the value from the dialplan? If we use: Set(CALLERID(num)=user at domain.com The SIP From header turns into: user at domain.com@10.10.10.10 We want user at domain.com, and we can't have an entry in sip.conf for every provider. -- Eric Chamberlain
Philipp Kempgen
2008-Oct-20 16:58 UTC
[asterisk-users] Is there a way to specify the fromdomain from the dialplan?
Eric Chamberlain schrieb:> Is there a way to override the fromdomain specified in the sip.conf > and instead set the value from the dialplan? > > If we use: > > Set(CALLERID(num)=user at domain.com > > The SIP From header turns into: > > user at domain.com@10.10.10.10Maybe you could abuse SIPAddHeader() to do that. On the second thought: not really.> We want user at domain.com, and we can't have an entry in sip.conf for > every provider.Why not? What about templates? [my-domain](!) fromdomain=example.com [provider1](my-domain) ... [provider2](my-domain) ... Philipp Kempgen -- http://www.das-asterisk-buch.de - http://www.the-asterisk-book.com Amooma GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 --