[asterisk-users] Is there a way to specify the fromdomain from the dialplan?

Philipp Kempgen philipp.kempgen at amooma.de
Mon Oct 20 11:58:14 CDT 2008


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.10

Maybe 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
-- 



More information about the asterisk-users mailing list