Hi all, I'm having issues with overwrite caller id, when I call someone my caller id should be "mycompanyinc" but instead my id shows up as my extension number 101. this is what i have in sip.conf [101] type=friend context=sipphones call-limit=99 callerid="iuser 101" disallow=all allow=ulaw allow=alaw username=101 secret=Passwd dtmfmode=rfc2833 host=dynamic mailbox=101 at default nat=yes canreinvite=no this is what i have in extensions.conf [outbound] exten => _91NXXNXXXXXX,1,Set(CALLERID(num)=mycompanyinc) exten => _91NXXNXXXXXX,2,Dial(SIP/att/${EXTEN:1},80) exten => _9NXXXXXX,1,Set(CALLERID(num)=mycompanyinc) exten => _9NXXXXXX,2,Dial(SIP/att/${EXTEN:1},80) any ideas? as this happens random, -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140128/a474fc83/attachment.html>
On 1/28/14, 1:55 PM, motty cruz wrote:> Hi all, > I'm having issues with overwrite caller id, when I call someone my > caller id should be "mycompanyinc" but instead my id shows up as my > extension number 101. > > this is what i have in sip.conf > [101] > type=friend > context=sipphones > call-limit=99 > callerid="iuser 101" > disallow=all > allow=ulaw > allow=alaw > username=101 > secret=Passwd > dtmfmode=rfc2833 > host=dynamic > mailbox=101 at default > nat=yes > canreinvite=no > > > this is what i have in extensions.conf > [outbound] > exten => _91NXXNXXXXXX,1,Set(CALLERID(num)=mycompanyinc)This is how we have it and it works fine on Asterisk 1.8: Set(CALLERID(number)=insert your number here)> exten => _91NXXNXXXXXX,2,Dial(SIP/att/${EXTEN:1},80) > exten => _9NXXXXXX,1,Set(CALLERID(num)=mycompanyinc) > exten => _9NXXXXXX,2,Dial(SIP/att/${EXTEN:1},80) > > any ideas? as this happens random, > > >-- Technical Support http://www.cellroute.net -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140128/761700cb/attachment.html>
On Tue, 28 Jan 2014 10:55:58 -0800 motty cruz <motty.cruz at gmail.com> wrote:> this is what i have in extensions.conf > [outbound] > exten => _91NXXNXXXXXX,1,Set(CALLERID(num)=mycompanyinc) > exten => _91NXXNXXXXXX,2,Dial(SIP/att/${EXTEN:1},80) > exten => _9NXXXXXX,1,Set(CALLERID(num)=mycompanyinc) > exten => _9NXXXXXX,2,Dial(SIP/att/${EXTEN:1},80) > > any ideas? as this happens random,You're setting CALLERID(num) to a name. Use CALLERID(name) instead. Additionally, you might want to set CALLERID(num) to your DID. You can do both name and number at the same time by using CALLERID(all), something like this: exten => _91NXXNXXXXXX,1,Set(CALLERID(all)="mycompanyinc"<123-456-7890>) -- C. Chad Wallace, B.Sc. The Lodging Company http://www.lodgingcompany.com/ OpenPGP Public Key ID: 0x262208A0