Open Source Training Seminar FreePBX Paid Support

Ticket #1841 (closed Bugs: fixed)

Opened 1 year ago

Last modified 1 year ago

Can't add + to Direct DID for extension

Reported by: trashlyn Assigned to:
Priority: minor Milestone: 2.2
Component: Core - Users/Devices Version: 2.3-branch
Keywords: Cc:
Confirmation: SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

Unable to add a + to the Direct DID for an extension.

When using bandwidth.com as our trunk they require that all inbound calls have the + formatting on the number.

If I use inbound routes, this works, but then I can't use the print extensions to show the number that is assigned to each extension.

Change History

04/09/07 01:51:16 changed by trashlyn

Any update on this?

04/09/07 02:24:03 changed by p_lindheimer

I've got a bandwidth.com trunk getting installed, will look at it when that gets installed to make sure we take all '+' issues into considerations. There are already issues for outbound also, since '+' is used in patterns but is also a semi-valid dial digit and I want to make sure to accomodate that as well in the plans (although not directly related to your inbound issue).

04/15/07 09:08:33 changed by pkaplan

I have bandwidth.com up and running.The problem is twofold since they want your outbound calls to have a '+' in front and then all of the calls they send you will have a '+' on both the CID and the DID.

The outbound calls were easy enough to handle by putting a '+' in the Outbound Dial Prefix.

For the inbound calls I thought it would be better to strip the "+" on the way in rather than retool all my DIDs (The fact that CID also needed to have the "+" removed, or it would not sync with my CRM, added credence to that solution).

So I added this to extensions_custom.conf:

[from-pstn-custom]
exten => _+1.,1,NoOp??(DID is ${DID})
exten => _+1.,n,NoOp??(CALLERID is ${CALLERID(num)})
exten => _+1.,n,Set(DID=${EXTEN:2})
exten => _+1.,n,Set(CALLERID(num)=${CALLERID(num):2})
exten => _+1.,n,NoOp??(DID is NOW ${DID})
exten => _+1.,n,NoOp??(CALLERID is NOW ${CALLERID(num)})
exten => _+1.,n,Goto(from-trunk,${DID},1)

and everything works as expected.

04/15/07 13:06:03 changed by p_lindheimer

  • priority changed from major to minor.

that's basically what they recommend on their site (although you may want to get rid of all the Noop(s) once you've confirmed all is happy).

04/18/07 08:57:45 changed by gregmac

This would probably be better as _+X. instead of hardcoding a 1. Not everyone has a "1" as the first digit of their DID..

06/20/07 06:43:39 changed by p_lindheimer

  • version changed from 2.2.1 to 2.3-branch.

07/13/07 03:31:32 changed by vgster

Also FR #2089

07/13/07 04:03:11 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.

r4386 (2.3) (will be included with next module publish)
r4387 (2.2)

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads