Re: [asterisk-users] Dynamically setting from domain when calling friends

2014-02-20 Thread Torbjörn Abrahamsson
Thank you very much. I will try this! It seems to be what I'm looking for. I'm in most cases working with 1.2 asterisks, so I'm not up to date on newer features. My current project however needed a newer version. I tried some googleing, but I did not find these variables. Glad to

Re: [asterisk-users] Dynamically setting from domain when calling friends

2014-02-20 Thread Rusty Newton
On Thu, Feb 20, 2014 at 3:45 AM, Torbjörn Abrahamsson torbjorn.abrahams...@gmail.com wrote: I tested SIPFROMDOMAIN, and it worked. Important thing to note is that I needed to have at least one underscore at the beginning of the variable, as your example did, it needs to be inherited at least

Re: [asterisk-users] Dynamically setting from domain when calling friends

2014-02-20 Thread Torbjörn Abrahamsson
I tested SIPFROMDOMAIN, and it worked. Important thing to note is that I needed to have at least one underscore at the beginning of the variable, as your example did, it needs to be inherited at least one level. I don't really see way this should be needed, shouldn't Dial be able see

Re: [asterisk-users] Dynamically setting from domain when calling friends

2014-02-19 Thread Rusty Newton
On Tue, Feb 18, 2014 at 3:40 AM, Torbjörn Abrahamsson torbjorn.abrahams...@gmail.com wrote: I have a problem where I would like to be able to send an arbitrary SIP domain when sending a call to a registered friend. By default the from domain is set to the IP of the Asterisk server, but I would

Re: [asterisk-users] Dynamically setting from domain when calling friends

2014-02-19 Thread Rusty Newton
Actually SIPFROMDOMAIN was documented here: https://wiki.asterisk.org/wiki/display/AST/chan_sip+Channel+Variables , but SIPFROMUSER was not. They are now both there! :) On Wed, Feb 19, 2014 at 9:08 AM, Rusty Newton rnew...@digium.com wrote: On Tue, Feb 18, 2014 at 3:40 AM, Torbjörn Abrahamsson

Re: [asterisk-users] Dynamically setting from domain when calling friends

2014-02-19 Thread Torbjörn Abrahamsson
setting from domain when calling friends Actually SIPFROMDOMAIN was documented here: https://wiki.asterisk.org/wiki/display/AST/chan_sip+Channel+Variables , but SIPFROMUSER was not. They are now both there! :) On Wed, Feb 19, 2014 at 9:08 AM, Rusty Newton rnew...@digium.com wrote: On Tue, Feb 18

Re: [asterisk-users] Dynamically setting from domain when calling friends

2014-02-19 Thread Rusty Newton
On Wed, Feb 19, 2014 at 12:12 PM, Torbjörn Abrahamsson torbjorn.abrahams...@gmail.com wrote: Thank you very much. I will try this! It seems to be what I'm looking for. I'm in most cases working with 1.2 asterisks, so I'm not up to date on newer features. My current project however needed a

[asterisk-users] Dynamically setting from domain when calling friends

2014-02-18 Thread Torbjörn Abrahamsson
Hello… I have a problem where I would like to be able to send an arbitrary SIP domain when sending a call to a registered friend. By default the from domain is set to the IP of the Asterisk server, but I would like to set it to something else. The case is that when a call from a foreign