[asterisk-users] Dynamically setting from domain when calling friends
torbjorn.abrahamsson at gmail.com
Thu Feb 20 13:33:41 CST 2014
> > 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 it in the channel that
> > executes the application? Maybe this should be noted on the wiki as well, to
> > avoid this kind of confusion?
> Glad to hear it worked for you!
> Information on variable inheritance is already on the wiki.
> Here https://wiki.asterisk.org/wiki/display/AST/Variable+Inheritance+Basics
> and here https://wiki.asterisk.org/wiki/display/AST/Variable+Inheritance
> Those two pages and their sub-pages have some overlap and may need to
> be consolidated.
I was not referring to the concept of inheritance, rather than that I found it odd that I would need the inheritance in this specific case. My gut feeling told me that the Dial application should see the SIPFROMDOMAIN variable without having to resort to inheritance. This seems the logical way to me, although I have no trouble grasping that there may be magic under the hood that makes this operation need the inheritance.
My comment about the wiki was about stating on the SIP CHANNEL VARIABLES page that you need to have the inheritance, otherwise it will not work. If I hadn't seen your example in the mail, I would not have thought "Oh, I need to make this variable inheritable...". I would have thought there was some other problem.
Thanks again for your help!
More information about the asterisk-users