I have found several places where it is explained how to do this, and I have got the following setup, but it is not working (the provider claims they are not getting a proper caller ID setting from me). I have a number of extensions that are shorthand, that I will use one of as an example (real number hidden): exten => 2473,1,Macro(callout,##########) Then this (actual number hidden again): [macro-callout] exten => s,1,Set(CALLERID(num)=##########) exten => s,2,Set(CALLERID(name)=##########) exten => s,3,Set(CALLERID(all)="##########" <##########>) exten => s,4,Dial(${PROVIDER}/"1${ARG1}",30,tr) exten => s,n,Hangup() I have also tried setting only the number with the same results: exten => s,1,Set(CALLERID(num)=##########) exten => s,2,Dial ..... When I dial that extension, the call goes through, but the caller ID is not correct at the destination. Does this look right? My provider claims that I am somehow sending an old number that doesn't appear anywhere in my /etc/asterisk directory where the config files are kept. I think they are screwed up somehow, but I wanted to see if anyone can see anything obviously wrong with what I am doing here, because unless I can find something wrong with my Asterisk configuration, I am probably going to have to change providers and port my number again (I just moved from a POTS provider Century Link to a VOIP provider). Thank you, --Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150618/e0657fcc/attachment.html>
On Thu, 18 Jun 2015 11:27:08 -0600 Greg Woods <greg at gregandeva.net> wrote:> [macro-callout] > exten => s,1,Set(CALLERID(num)=##########) > exten => s,2,Set(CALLERID(name)=##########) > exten => s,3,Set(CALLERID(all)="##########" <##########>) > exten => s,4,Dial(${PROVIDER}/"1${ARG1}",30,tr) > exten => s,n,Hangup()CALLERID is a read only variable. Set the information in sip.conf in the extension. callerid=NAME <5555551212> -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy at Vex.Net VoIP: sip:darcy at Vex.Net
> CALLERID is a read only variable.That's not correct. I set it all over the place in my dialplan.
>>> On Jun 18, 2015, at 1:27 PM, Greg Woods greg at gregandeva.net wrote: >>> I have also tried setting only the number with the same results:>>> exten => s,1,Set(CALLERID(num)=##########) >>> exten => s,2,Dial .....I'm using: exten => s,n,Set(CALLERID(number)=269XXXXXXX) Also check your sip.conf, you may have hard coded the old phone number there, I believe you can do that on SIP and IAX trunks. Doug
On 6/18/2015 1:27 PM, Greg Woods wrote:> My provider claims that I am somehow sending an old number that > doesn't appear anywhere<snip>> (I just moved from a POTS provider Century Link to a VOIP provider).Set(CALLERID(number)=${var}) works fine for me. Perhaps some debugging on the channel could help? Set sip debug if it's a sip trunk? You'll at least get to see the callerid that Asterisk is putting on the trunk. That might even help your new VOIP provider do some digging if could provide the debugging output. Mark
Thanks very much for all the responses. I now have a few more things to try. I should have noted that I am using IAX2 rather than SIP to connect to my provider. I do have some internal phones that use SIP to connect to my asterisk box, as well as some corded phones connected through a Digium DAHDI-driven card. I am certain that the old number that is showing up as my caller ID is not present in any of my config files (that includes sip.conf and iax.conf, everything in the /etc/asterisk directory has been checked). A few things I will try tonight when I get home: 1) Turning on iax debugging (don't know why I didn't think of that) 2) Setting callerid= in the outbound dialing context in iax.conf 3) Trying a leading "1" on the number I use in the Set(CALLERID(num) call. Since this is a thread that someone down the road is sure to stumble across, I will post results whether or not I am successful. --Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150618/91ba1a7b/attachment.html>
On Thursday 18 Jun 2015, Greg Woods wrote:> I have found several places where it is explained how to do this, and I > have got the following setup, but it is not working (the provider claims > they are not getting a proper caller ID setting from me). > > I have a number of extensions that are shorthand, that I will use one of as > an example (real number hidden): > > exten => 2473,1,Macro(callout,##########) > > Then this (actual number hidden again): > > [macro-callout] > exten => s,1,Set(CALLERID(num)=##########) > exten => s,2,Set(CALLERID(name)=##########) > exten => s,3,Set(CALLERID(all)="##########" <##########>) > exten => s,4,Dial(${PROVIDER}/"1${ARG1}",30,tr) > exten => s,n,Hangup() > > > I have also tried setting only the number with the same results: > > exten => s,1,Set(CALLERID(num)=##########) > exten => s,2,Dial ..... > > When I dial that extension, the call goes through, but the caller ID is not > correct at the destination. > > Does this look right? > > My provider claims that I am somehow sending an old number that doesn't > appear anywhere in my /etc/asterisk directory where the config files are > kept. I think they are screwed up somehow, but I wanted to see if anyone > can see anything obviously wrong with what I am doing here, because unless > I can find something wrong with my Asterisk configuration, I am probably > going to have to change providers and port my number again (I just moved > from a POTS provider Century Link to a VOIP provider). > > Thank you, > --GregDid you try exten => s,1,Set(CALLERID(num-pres)=allowed) before your exten => s,n,Set(CALLERID(num)=##########) ? Also, note that some providers expect you to supply the full STD code including the leading zero; some providers expect you to omit the leading 0; while other providers expect you to use the 44 (or equivalent, inbound code for whatever country you live in; in which case you must always omit the leading 0 from the STD code, as though you were calling home from abroad). Begin by sending your ident in the same format that your telco use for incoming calls, but don't be surprised for a moment if they expect something different ..... -- AJS Note: Originating address only accepts e-mail from list! If replying off- list, change address to asterisk1list at earthshod dot co dot uk .