If your device is connecting to asterisk as a peer or a friend, the the "sip show peers <user>" will show a user agent field. For example I have a linksys phone in my home office that connects as a friend and so if I type "sip show peer 1000" <- the phones username. I get the following entry  "Useragent    : Linksys/SPA942-
5.1.5" Which tells me brand, model and firmware. This field stores the user agent string sent by the device, so each manufacture and even device may give different information. Here is another just to show some of the detail.  Useragent    : Aastra 480i Cordless/1.3.0.1080 Brcm Callctrl/1.5 MxSF/v3.2.6.26
<br><br><br><br><div><span class="gmail_quote">On 4/7/07, <b class="gmail_sendername">Rizwan Hisham</b> &lt;<a href="mailto:rizwanhasham@gmail.com">rizwanhasham@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>Im trying dial a user according to the device s/he uses. i mean if the user is using asterisk as a peer, then i have to pass the extension in the dial application like this:<br>Dial(SIP/${EXTEN}@user) ;so that s/he can perform routing according to the DNID.
<br><br>and if the user is using sipura, linksys or grandstream i dial the user like this,<br>Dial(SIP/user)<br><br>so is there a way to know what kind of device user has used to register with my asterisk server?<br><br>
Thanx in advance
<br clear="all"><span class="sg"><br>-- <br>Regards<br>Rizwan Hisham<br>Software Engineer
</span><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --
<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Bruce Reeves<br>Nortex Networks