Hi There, We have single PRI with multiple DID numbers and its working fine in receiving call. And if you make outbound call it will send main-line CallerID (company name). Now we want individual caller id for per extensions on outbound calls. like if i call someone he will get my extension as callerid ( 617-838-XXXX) XXXX is my sip extension something like this so next time i direct get call from users. How to do this ? -S -------------- next part -------------- An HTML attachment was scrubbed... URL: <lists.digium.com/pipermail/asterisk-users/attachments/20110527/fc80167b/attachment.htm>
Add Set(CALLERID(num)=617838${CALLERID(num)}) to your dialplan for outgoing calls.> -----Original Message----- > From: asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of > satish patel > Sent: Friday, May 27, 2011 10:42 AM > To: asterisk-users > Subject: [asterisk-users] DID for outbound PSTN call > > Hi There, > > We have single PRI with multiple DID numbers and its working > fine in receiving call. And if you make outbound call it will > send main-line CallerID (company name). Now we want > individual caller id for per extensions on outbound calls. > like if i call someone he will get my extension as callerid > ( 617-838-XXXX) XXXX is my sip extension something like this > so next time i direct get call from users. How to do this ? > > -S > >
That is very cool, Is that means it will overwrite my global callerid setting at dahdi-channels? root at sfpbx1:/home/satish# cat /etc/asterisk/dahdi-channels.conf | grep callerid callerid=6178387100 -S> From: EWieling at nyigc.com > To: asterisk-users at lists.digium.com > Date: Fri, 27 May 2011 10:45:32 -0400 > Subject: Re: [asterisk-users] DID for outbound PSTN call > > > Add Set(CALLERID(num)=617838${CALLERID(num)}) to your dialplan for outgoing calls. > > > > -----Original Message----- > > From: asterisk-users-bounces at lists.digium.com > > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of > > satish patel > > Sent: Friday, May 27, 2011 10:42 AM > > To: asterisk-users > > Subject: [asterisk-users] DID for outbound PSTN call > > > > Hi There, > > > > We have single PRI with multiple DID numbers and its working > > fine in receiving call. And if you make outbound call it will > > send main-line CallerID (company name). Now we want > > individual caller id for per extensions on outbound calls. > > like if i call someone he will get my extension as callerid > > ( 617-838-XXXX) XXXX is my sip extension something like this > > so next time i direct get call from users. How to do this ? > > > > -S > > > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <lists.digium.com/pipermail/asterisk-users/attachments/20110527/675cd4fc/attachment.htm>
Yes, but only for that call. You should not generally set the callerid= for PRI channels.> -----Original Message----- > From: asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of > satish patel > Sent: Friday, May 27, 2011 11:12 AM > To: asterisk-users > Subject: Re: [asterisk-users] DID for outbound PSTN call > > That is very cool, > > Is that means it will overwrite my global callerid setting at > dahdi-channels? > > root at sfpbx1:/home/satish# cat > /etc/asterisk/dahdi-channels.conf | grep callerid > callerid=6178387100 > > -S > > > From: EWieling at nyigc.com > > To: asterisk-users at lists.digium.com > > Date: Fri, 27 May 2011 10:45:32 -0400 > > Subject: Re: [asterisk-users] DID for outbound PSTN call > > > > > > Add Set(CALLERID(num)=617838${CALLERID(num)}) to your > dialplan for outgoing calls. > > > > > > > -----Original Message----- > > > From: asterisk-users-bounces at lists.digium.com > > > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of > > > satish patel > > > Sent: Friday, May 27, 2011 10:42 AM > > > To: asterisk-users > > > Subject: [asterisk-users] DID for outbound PSTN call > > > > > > Hi There, > > > > > > We have single PRI with multiple DID numbers and its working > > > fine in receiving call. And if you make outbound call it will > > > send main-line CallerID (company name). Now we want > > > individual caller id for per extensions on outbound calls. > > > like if i call someone he will get my extension as callerid > > > ( 617-838-XXXX) XXXX is my sip extension something like this > > > so next time i direct get call from users. How to do this ? > > > > > > -S > > > > > > > > > > -- > > > _____________________________________________________________________ > > -- Bandwidth and Colocation Provided by > api-digital.com -- > > New to Asterisk? Join us for a live introductory webinar > every Thurs: > > asterisk.org/hello > > > > asterisk-users mailing list > > To UNSUBSCRIBE or update options visit: > > lists.digium.com/mailman/listinfo/asterisk-users > >
On Friday 27 May 2011, satish patel wrote:> Hi There, > > We have single PRI with multiple DID numbers and its working fine in > receiving call. And if you make outbound call it will send main-line > CallerID (company name). Now we want individual caller id for per > extensions on outbound calls. like if i call someone he will get my > extension as callerid ( 617-838-XXXX) XXXX is my sip extension something > like this so next time i direct get call from users. How to do this ?Hey, I already explained this to someone else today :) In your dialplan, you need something like this in the context through which your outgoing calls go: (assuming TRUNK is already set) exten => _XXXXXXXXXX,1,set(ident=617838${CALLERID(num)}) exten => _XXXXXXXXXX,2,Set(CALLERPRES()=allowed) exten => _XXXXXXXXXX,3,set(CALLERID(num)=${ident}) exten => _XXXXXXXXXX,4,Dial(${TRUNK}/${EXTEN}) exten => _XXXXXXXXXX,5,Hangup() If you want certain phones to give special idents (in our company setup, we have one person who could be at either of two desks; either of them ident as the same external number on outgoing calls, which then rings both phones on incoming calls. The DDI number that nothing actually idents as, is used instead for a voice menu) then just give them their own context. Asterisk's matching rules are evaluated in order most specific (hardest to match) to least specific (easiest to match); so in the incoming context, something like exten => 6178382001,1,... will always be tried *before* something like exten => _617838XXXX,1,... -- AJS Answers come *after* questions.