Thanks for your reply. “sip show channels” shows the IP. but, other information like A number, B number, call duration is not present there.
This is the output i get through asterisk -vvvvvrx ‘core show channels verbose’.
Channel Context Extension Prio State Application Data CallerID Duration Accountcode PeerAccount BridgedTo
IAX2/mypeer-30546 mypeer 1 Up AppDial (Outgoing Line) 178880171010554 00:06:55 SIP/mypeer-000043be
IAX2/mypeer-18582 mypeer 1 Up AppDial (Outgoing Line) 178880171098566 00:22:22 SIP/mypeer-00004341
SIP/mypeer-000043dd mypeer 1788801939197306 1 Up Dial IAX2/mypeer/1788801939197 Kader/e 00:02:55 IAX2/mypeer-23523
You can see under channel it shows the peer name. But in my other server I can see IP instead of peer name. As far as I concern we have same configuration in both servers. Can someone please tell me what can be the possible reason for this? or how to fix this?