<div dir="ltr">Thanks Joshua !<br><br>I was not aware that extension's hint in dialplan can have additional data in the parentheses - it might be worth adding that info to wiki.<br><br>On Wed, Jun 3, 2020 at 10:08 AM Nenad Radosavljevic <nenadr at <a href="http://snr.rs">snr.rs</a>> wrote:<br><br>> <br>> > Hello !<br>> ><br>> > Is there something wrong with the function HINT(<extension number>,n) ?<br>> > Note the param n - it is supposed to get (as far as I understand the<br>> > documentation) CALLERID(name) of the extension (via extension's hint).<br>> ><br>> <br>> It does not get the caller id name. I believe if configured as such:<br>> <br>> exten => 10,hint,PJSIP/10(Bob)<br>> <br>> It would return the value Bob but I have not tested it.<br>> <br><br>I have just tested it and it is working just like you have described it.<br><br>> For PJSIP the PJSIP_ENDPOINT dialplan function[1] can be used to retrieve<br>> the configured callerid name.<br>> <br>> [1]<br>> <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_PJSIP_ENDPOINT">https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_PJSIP_ENDPOINT</a><br>> <br><br>I'm using that approach now, but I would like to switch to a more generic one like this with a hint-name.<br><br>Thanks again.<br><br>Best regards,<br><br>             Nenad Radosavljevic<br><br>On Wed, Jun 3, 2020 at 3:06 PM Nenad Radosavljevic <<a href="mailto:nenadr@snr.rs">nenadr@snr.rs</a>> wrote:<br>><br>> Hello !<br>><br>> Is there something wrong with the function HINT(<extension number>,n) ?<br>> Note the param n - it is supposed to get (as far as I understand the documentation) CALLERID(name) of the extension (via extension's hint).<br>><br>> Example configuration:<br>><br>> pjsip.conf:<br>><br>> [10]<br>> type=endopoint<br>> .<br>> .<br>> callerid = Test extension <10><br>> .<br>> .<br>> extensions.conf:<br>><br>> [exts]<br>><br>> exten => 10,hint,PJSIP/10<br>> exten => 10,1,Set(DEV=${HINT(10@exts)})<br>> exten => 10,n,Set(DEVNAME=${HINT(10@exts,n)})<br>> exten => 10,n,Noop(DEV is ${DEV})<br>> exten => 10,n,Noop(DEVNAME is ${DEVNAME})<br>><br>> on asterisk 16.9.0:<br>>  - first noop prints:       DEV is PJSIP/10<br>>  - second noop prints: DEVNAME is<br>><br>> Way I understand the documentation for function HINT, I would expect the DEVNAME variable to be set to "Test extension".<br>><br>> Any "light" on this topic would be much appreciated. Thanks.<br>><br>> Regards,<br>>            Nenad Radosavljevic<pre style="white-space:pre-wrap;color:rgb(0,0,0)"></pre></div>