Follwing the information from the wiki (http://www.voip-info.org/wiki-Asterisk+phone+snom) and the mailing list, I have been able to get my Snom 190 to monitor extension states accurately. I have noticed a couple oddities, however, that I am hoping I can get explanation on so that I can know more about * and SIP: - It appears that I cannot use variables in the "hint" priority exten lines. So "exten => 22,hint,Zap/2" will work fine, but (assuming Ext22 = Zap/2) "exten => 22,hint,${Ext${EXTEN}}" will not. Why is that? - It appears that the extension used with the "hint" must be the same as the extension used to dial that channel. So if extension 22 will ring Zap/2, then "exten => 22,hint,Zap/2" will work, but "exten => 222,hint,Zap/2" will not. Why is that? - If I am correct in the above, then there is no way for me to monitor a channel that is not an extension. As an example, I have a TDM400 with 3 FXS (Zap/1-3 on extensions 21-23) and 1 FXO (Zap/4) as well as a VoIP channel for dialing out. I can monitor the states of the extensions with extension entries like "exten => 21,hint,Zap/1" but I cannot monitor the state of the FXO with "exten => 0,hint,Zap/4" because 0 is not the extension of Zap/4. Indeed, Zap/4 has no extension. Is it not possible to monitor that line, then? Thank you very much! -- -M There are 10 kinds of people in this world: Those who can count in binary and those who cannot.
The hint feature is not a well developed general status monitor, it's just a *static* method to define the state of an extension as the state of a device for those channel drivers that support the extension state "API". It can't be dynamically changed (it's not an executable dialplan element, like an application), and by implementation it is an extension state, not more. Michael George wrote:>Follwing the information from the wiki >(http://www.voip-info.org/wiki-Asterisk+phone+snom) and the mailing list, I >have been able to get my Snom 190 to monitor extension states accurately. > >I have noticed a couple oddities, however, that I am hoping I can get >explanation on so that I can know more about * and SIP: > >- It appears that I cannot use variables in the "hint" priority exten lines. > So "exten => 22,hint,Zap/2" will work fine, but (assuming Ext22 = Zap/2) > "exten => 22,hint,${Ext${EXTEN}}" will not. Why is that? > >- It appears that the extension used with the "hint" must be the same as the > extension used to dial that channel. So if extension 22 will ring Zap/2, > then "exten => 22,hint,Zap/2" will work, but "exten => 222,hint,Zap/2" will > not. Why is that? > >- If I am correct in the above, then there is no way for me to monitor a > channel that is not an extension. As an example, I have a TDM400 with 3 FXS > (Zap/1-3 on extensions 21-23) and 1 FXO (Zap/4) as well as a VoIP channel > for dialing out. I can monitor the states of the extensions with extension > entries like "exten => 21,hint,Zap/1" but I cannot monitor the state of the > FXO with "exten => 0,hint,Zap/4" because 0 is not the extension of Zap/4. > Indeed, Zap/4 has no extension. Is it not possible to monitor that line, > then? > >Thank you very much! > > >
(boy mail in this list piles up fast when I can't check it) On Apr 8, 2005, at 10:03 AM, Michael George wrote:> - It appears that the extension used with the "hint" must be the same > as the > extension used to dial that channel. So if extension 22 will ring > Zap/2, > then "exten => 22,hint,Zap/2" will work, but "exten => > 222,hint,Zap/2" will > not. Why is that?The extension is how asterisk maps SIP URLs to chunks of your dialplan -- if you program a button on a snom to "dest <sip:12345@your-asterisk-box>", the phone will use that same URL for both dialing and subscribing to extension state. Unless you have a phone that lets you specify different URLs for dialing and subscribing to state, they have to match in asterisk.> - If I am correct in the above, then there is no way for me to monitor > a > channel that is not an extension. As an example, I have a TDM400 > with 3 FXS > (Zap/1-3 on extensions 21-23) and 1 FXO (Zap/4) as well as a VoIP > channel > for dialing out. I can monitor the states of the extensions with > extension > entries like "exten => 21,hint,Zap/1" but I cannot monitor the state > of the > FXO with "exten => 0,hint,Zap/4" because 0 is not the extension of > Zap/4. > Indeed, Zap/4 has no extension. Is it not possible to monitor that > line, > then?There has to be a SIP URL for the phone to subscribe to -- if you put: exten => zap4,hint,Zap/4 in your extensions.conf (with no zap4,1,... entry) it wouldn't be dialable (although the phone would still try if you pushed it) but would have a valid SIP URL. -- Joshua P. Dady -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3721 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050413/2064e6cf/smime.bin