Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...It's extraordinarily refreshing to see truly expert advice without having to wade through hipper than thou attitude..."

Geography

Where in the world do Tek-Tips members come from?
johnnyasterisk (IS/IT--Management)
14 Jul 10 18:13
I have some calls that come into asterisk as a normal number in the format:

09X XXX XXX

However depending on the carrier i sometimes get

03539X XXX XXX

I want a way to remove the 353 ONLY if it is received in that format...


Any Ideas?
busster (TechnicalUser)
15 Jul 10 10:03
This is what I did on a bandwidth.com trunk to strip the "+" sign from what they were sending.


[from-bandwidth-com]
exten => _X.,1,Noop(Entering from-bandwidth-com context)
exten => _X.,n,Set(CALLERID(number)=${CALLERIDNUM:1})
include => from-trunk

Go to your bandwidth.com trunk and set the context to:

context=from-bandwidth-com

You would just change the line to

exten => _X.,n,Set(CALLERID(number)=${CALLERIDNUM:3})

to strip off three characters.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close