Hi Jimmy,
 
 Appreciate your help.
 
I tried the one below and cudnt get the caller ID.I am getting "Private Call" 
and "Out of Area" in the sip phone display when i call from asterisk.
 
My current extensions.conf looks like below
 
[general]
static=yes
writeprotect=no
autofallthrough=no
extenpatternmatchnew=no
clearglobalvars=no
priorityjumping=yes
userscontext=default
 
[globals]
CONSOLE=Console/dsp                             ; Console interface for demo
;CONSOLE=DAHDI/1
;CONSOLE=Phone/phone0
IAXINFO=guest                                   ; IAXtel username/password
;IAXINFO=myuser:mypass
TRUNK=DAHDI/G1
TRUNKMSD=1

    
[Internal]
include => Incoming

exten => 8001234001,1,Dial(DAHDI/32,,rt)
exten => 8001234002,1,Dial(DAHDI/33,,rt)
exten => 8001234003,1,Dial(DAHDI/34,,rt)
 
exten => 8001234004,1,Set(CALLERID(num)=8001234004)
exten => 8001234004,n,Set(CALLERID(name)="Line 4")
exten => 8001234004,3,Dial(DAHDI/35,,rt)
 
exten => 8001234005,1,Dial(DAHDI/36,,rt)
 
[Incoming]
exten => s,1,Answer
exten => s,2,Dial(DAHDI/g1,20,rt)
exten => _988.,1,Dial(DAHDI/g1/${EXTEN},20)  
 
 
I also tried changing the dial plan to exten => 
_988.,3,Dial(DAHDI/g1/${EXTEN},20) and in that case the call itself was not 
going through
 
Venugopal 

________________________________

From: [email protected] on behalf of Jimmy Godbout
Sent: Thu 3/4/2010 5:53 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Caller ID in Asterisk


Hi,
 
You need to set the callerid before making the call, not after. Also, I guess 
it's a typo that the priority in this dialplan is all 1; it should be 
 
exten => 8001234003,1,Set(CALLERID(num)=8001234003)
exten => 8001234003,n,Set(CALLERID(name)="Line 5")
exten => 8001234003,n,Dial(DAHDI/34,,rt)

Unless your using variable for the name and the number, you should not put them 
in ${}.


Jimmy


        -----Original Message-----
        From: [email protected]
        Sent: Thu, 4 Mar 2010 19:50:03 +0800
        To: [email protected], [email protected], 
[email protected]
        Subject: Re: [asterisk-users] Caller ID in Asterisk
        
        
        HI All,
         
         Below is the ones i tried
         
        exten => 8001234003,1,Dial(DAHDI/34,,rt)
        exten => 8001234003,1,Set(CALLERID(num)=${8001234003})
        exten => 8001234003,1,Set(CALLERID(name)=${Line 5})
         
        However i got an error message sayinfg Function CallerID not registered.
         
        Kindly help me...

________________________________

        From: [email protected] on behalf of 
Gopalakrishnaiyer Venugopal-Q16770
        Sent: Thu 3/4/2010 3:59 PM
        To: Asterisk Users Mailing List - Non-Commercial Discussion; 
[email protected]
        Subject: [asterisk-users] Caller ID in Asterisk
        
        
        Hi All,
         
         I have an asterik machine which is connected via a PRI to the SIP 
server.When i call from the Asterisk machine to the SIP server i am not getting 
the caller id of the lines at the sip side.
         
        Please help me to identify how this can be set.The extensions.conf file 
is attached.
         
         
        Cheers
        venu

         

________________________________

Email Notifier Preview <http://www.inbox.com/notifier>  
Receive Notifications of Incoming Messages
Easily monitor multiple email accounts & access them with a click. Visit 
www.inbox.com/notifier and check it out!
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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

Reply via email to