No, no, it's more SIMPLE than that. Try this:

[incoming]
exten => s,1,setcallerid("NAME"<NUMBER>)
exten => s,2,dial(....)


That's all (after couple of hours of investigation).
If call origin from SIP, i see NUMBER on my phone, if call origin from
PSTN, i see NAME on my phone.



----- Original Message ----- 
From: "Shaun Ewing" <[EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users@lists.digium.com>
Sent: pon 19. sep 2005 2:04
Subject: Re: [Asterisk-Users] sometimes CIDNUM shows, sometimes
CIDNAME??? Why,why, why, why?


On 9/19/05, Goran Dj. <[EMAIL PROTECTED]> wrote:
> Why Asterisk showing (on SCCP and H323 phones) different CID related
to
> type of Incoming channel:
> If incoming channel is SIP, on phone is displayed CALLERIDNUM
> If incoming channel is ZAP, on phone is displayes CALLERIDNAME
>
> It vas very frustrating! I lost couple hours of my time to find that
my
> dialplan is not faulty, but asterisk is!

Have you considered the possibility that your SIP provider may not be
sending you the caller id name?

CNAM looksup do cost money, and it's probably the exception rather
than the norm to find a VoIP provider that will deliver it.


_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to