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)[EMAIL PROTECTED]
> 
> The SIP From header turns into:
> 
>   [EMAIL PROTECTED]@10.10.10.10

Maybe you could abuse SIPAddHeader() to do that.
On the second thought: not really.

> We want [EMAIL PROTECTED], 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
-- 

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to