Hi,
 
Well, if you replicate the line that set the callerid for every extension than you can set each one manually.
 
Jimmy


-----Original Message-----
From: [email protected]
Sent: Fri, 5 Mar 2010 14:54:56 +0800
To: [email protected], [email protected]
Subject: Re: [asterisk-users] Caller ID in Asterisk

Hi All,
 

Finally I am able to get the number displayed at the SIP side using

exten => _988.,1,Set(CALLERID(num)=8001234000)

exten => _988.,n,Dial(DAHDI/g1/${EXTEN},20)

However this number is fixed and I want to display the number of the individual lines whoever is calling. I tried with

exten => _988.,1,Set(CALLERID(num)=${exten}) and exten => _988.,1,Set(CALLERID(num)=${EXTEN})

Both the above lines didn’t help.

I have 8 lines configured as below and need the callerID of the individual lines to be displayed at the SIP side

exten => 8001234001,n,Dial(DAHDI/32,,rt)

exten => 8001234002,n,Dial(DAHDI/33,,rt)

exten => 8001234003,n,Dial(DAHDI/34,,rt)

exten => 8001234004,n,Dial(DAHDI/35,,rt)

exten => 8001234005,n,Dial(DAHDI/36,,rt)

exten => 8001234006,n,Dial(DAHDI/37,,rt)

exten => 8001234007,n,Dial(DAHDI/38,,rt)

exten => 8001234008,n,Dial(DAHDI/39,,rt)

Warm Regards

 

Warm Regards
Venugopal G
HNM-SO WiMAX CPE VoIP IOT Team
Cell : +91-99723-99437
*************************************************************************************************************************************************************************************************

 


From: Gopalakrishnaiyer Venugopal-Q16770
Sent: Thursday, March 04, 2010 6:36 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion; Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [asterisk-users] Caller ID in Asterisk

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
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