Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.



210 posts

Master Geek


Topic # 87632 3-Aug-2011 09:54 Send private message

Hi, I have a small issue regarding inbound numbers on my FreePBX.
 
I have recently upgraded my old Asterisk PBX (5+ years), and went with FreePBX. Generally everything went well, and I have a working system again. 

One problem that I can't seem to resolve is that my inbound numbers are presented differently for my 2 trunks (2talk and Telecom). For Telecom, the leading '0' is removed (mobile/national calls), but it is there for the 2talk trunk calls. I would like them to all have the leading '0' as I did before. Actually, it doesn't matter if the '0' is there or not, as long as it is consistent between the 2 trunks. 

I looked in my old asterisk config, and see that I had an explicit rule to prepend a '0' but in FreePBX, there does not appear to be an option to change the inbound number presented, only outbound. 

Should I just edit the FreePBX generated configs manually? Can someone point me in the right direction? 

Create new topic
16853 posts

Uber Geek

Moderator
Trusted
Biddle Corp
Subscriber

  Reply # 501206 3-Aug-2011 10:17 Send private message

Telecom don't include 0 in the CID as it's not actually part of the number, it's an access code. Part of the Telepermit spec says the device must add a 0 (or another appropiate number) to the number.


It's really a simple matter of creating an inbound context to add a 0 to the inbound CID and then using this context for the Telecom trunk. There are plenty of instructions online on how to modify inbound CID. Just be aware that depending on what version of Asterisk you're using you'll probably want to modify both the CID name and number fields so you don't see the name field maintaining the number without a 0 and the number field with a 0 on phones that support alphanumeric CID.
    




*Need help configuring your Linksys ATA or IP Phones for New Zealand? Check my blog post



210 posts

Master Geek


  Reply # 501220 3-Aug-2011 10:34 Send private message

Thanks for that. I now know that my approach is right. I will see what I can find at FreePBX - it was easy enough to change the rule with the old Asterisk, but I am not yet sure what I can and cannot change when bypassing FreePBX.

16853 posts

Uber Geek

Moderator
Trusted
Biddle Corp
Subscriber

  Reply # 501234 3-Aug-2011 10:54 Send private message

You only need to use the same code you did last time but give it a new custom context for the inbound route.

If you want to do it an even easier way from within FreePBX use the Set CallerID FreePBX module.




*Need help configuring your Linksys ATA or IP Phones for New Zealand? Check my blog post



210 posts

Master Geek


  Reply # 501330 3-Aug-2011 13:39 Send private message

Thanks again - found what I wanted with your help.
http://www.freepbx.org/support/documentation/howtos/how-to-change-incoming-callerid

It's knowing what to look for. The last time I set Asterisk up was at least 5 years ago. Not only have I forgotten what I learned then, but there have also been a lot of changes. A little bit of knowledge has not been helpful :)

Create new topic
Twitter »
Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when new jobs are posted to our jobs board:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:




News »

Trending now »
Hot discussions in our forums right now:

Sky outbid for EPL rights (Premier League Pass discussion)
Created by JonnyCam, last reply by JarrodM on 19-Jun-2013 19:19 (211 replies)
Pages... 13 14 15


Orcon Genius Go discussion
Created by freitasm, last reply by ptinson on 19-Jun-2013 18:19 (40 replies)
Pages... 2 3


Slingshot Global Mode announced
Created by freitasm, last reply by NonprayingMantis on 19-Jun-2013 19:31 (38 replies)
Pages... 2 3


Condenser Dryer: anyone has one?
Created by joker97, last reply by graemew on 18-Jun-2013 21:08 (31 replies)
Pages... 2 3


Slow YouTube Response
Created by SneakerPimps, last reply by mercutio on 18-Jun-2013 21:34 (23 replies)
Pages... 2


Anyone else watching paint dry?
Created by gnfb, last reply by sonyxperiageek on 19-Jun-2013 18:20 (39 replies)
Pages... 2 3


Suggestions for good Windows FTP client please?
Created by freitasm, last reply by Regs on 19-Jun-2013 17:17 (19 replies)
Pages... 2


I am been sued - HELP!
Created by BaaaaD, last reply by BaaaaD on 19-Jun-2013 19:33 (18 replies)
Pages... 2



Geekzone Jobs »
Most recent NZ jobs in technology:

Applications Support Consultant
Posted 19-Jun-2013 18:38

Senior Business Analyst
Posted 19-Jun-2013 18:38

Software Development Manager
Posted 19-Jun-2013 18:38

Project Manager
Posted 19-Jun-2013 18:38

Technical Writer - 6 month contract
Posted 19-Jun-2013 18:38

Junior/Intermediate C#.Net Developer
Posted 19-Jun-2013 18:38

Enthusiastic Service Desk Analyst
Posted 19-Jun-2013 18:38


Geekzone Live »
Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.