Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7248933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:12:36+00:00 2026-05-28T22:12:36+00:00

the task is quite simple, but i have not figured it out yet. one

  • 0

the task is quite simple, but i have not figured it out yet.

one trunk has a local number in germany ..
so if someone from germany calls the CID is the number without the Country code.
but if somone from outside calls, the country code comes with the CID (which is totally fine if you are located within germany)

my outgoing rules are use the countrycode 0049 to select the voip trunk the call comes from.
but since the 0049 is not come along for inbound calls .. it will never beeing selected .. and you have to manually edit the number (which is a pain on a analog phone) and often forgotten by mistake.

is there a possibility to siimply have the inbound CID remodeled

like this:

  • if the inbound CID is _00. then just forward the CID to the ring group
  • if the Inbound CID is _0Z. then remove the first digit (the 0) from the original CID, prefix 0049 and send to the ring group.

any idea how to do this ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T22:12:37+00:00Added an answer on May 28, 2026 at 10:12 pm

    Route your trunk to a custom start context and do the normalization there. Example:

    [globals]
    LOCAL_PREFIX=511  ; Hannover local prefix for example
    
    ; trunk A starts here
    [inbound_trunk_A]
    ; 123 is your extension, everything after "/" is an extension filter on CALLERID(num)
    exten => 123/_00X.,1,NoOp(CallerID is just fine)
    exten => 123/_0ZX.,1,Set(CALLERID(num)=0049${CALLERID(num):1})
    exten => 123/_ZX.,1,Set(CALLERID(num)=0049${LOCAL_PREFIX}${CALLERID(num)})
    ; after CallerID normalization, jump to the real context
    exten => 123,2,Goto(real_context,${EXTEN},1)
    
    ; all other trunks start here
    [real_context]
    exten => 123,1,DoRingGroupStuff()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm quite new to javascript but have undertaken a task to get better aquainted
I'm trying to accomplish a fairly simple task for my website, but Im not
I have quite an interesting task at work - I need to find out
I have quite simple task to accomplish - I have to set up the
I have a backroundrb scheduled task that takes quite a long time to run.
To be honest I'm not quite sure if I understand the task myself :)
The task is simple, and the answers might be many. But here goes: On
Simple task like make AJAX request , pass one parameter and return result, can
I'm a noob with jQuery and I know about scrollTo, but not quite how
A client has given me a task to do that I've not done before,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.