How to remove prefix + when calling

All my CID are in format xxxxxxxxx but when I make a call, in the remote part the format is +xxxxxxx

What can I do to remove the prefix + ?

Regards.

Please

  1. clarify whether you are talking about the caller ID or the called number?

  2. provide the dialplan that is used for the call.

Note that Asterisk does not manipulate either of these unless your dialplan instructs it to do so, and certainly does not add a “+” that wasn’t there before.

All solutions are likely to en up using the sub-stringing of variables and functions that can be found in the sample configuration files.

The + appears in the remote party.

I make a call and the outgoing number in all logs is within +

In the display of the phone that received the call, appears the +

Dial Plan

[a2billing]
; CallingCard application
exten => _X.,1,NoOp()
;exten => _X.,n,Answer
exten => _X.,n,Wait(2)
exten => _X.,n,Set(FAXOPT(gateway)=yes)
exten => _X.,n,AGI(a2billing.php)
exten => _X.,n,Wait(2)
exten => _X.,n,Hangup

You probably need to talk to the a2billing people.

I’m going to guess that you are talking about caller ID and that the + has come from the ITSP. In that case you need to update the caller ID to ${CALLERID(num):1}

A2billing don’t make any change in the Caller ID. That’s what A2billing people say.

In that case the + was there before the call reached Asterisk.

Then … how can I remove it ?

Already answered.

[a2billing]
; CallingCard application
exten => _X.,1,NoOp()
;exten => _X.,n,Answer
exten => _X.,n,Wait(2)
exten => _X.,n,Set(FAXOPT(gateway)=yes)
exten => _X.,n,Set(CALLERID(num)=${CALLERID(num):1})
exten => _X.,n,AGI(a2billing.php)
exten => _X.,n,Wait(2)
exten => _X.,n,Hangup

–Satish Barot
satish4asterisk@gmail.com