Outbound calls not always consitent

Sorry, as this may be a very basic questions.

I have on-premise Asterisk, and phone are using internet telephony provider, phones calls are working outbound and inbound, but here is the catch.

when I dial outside. the receiving party is seeing my number with a + in front.
so if my number is 123.456.7812 and I dial an external number, the external number sees a call from +123.456.7891
this means, if I call is missed, and then returned, the calls gets no where.

how can I make sure the + is not added on my outbound calls to external?
I have raised a ticket with the telephone provider ( voip.ms) and they suggested to look into my Asterisk.


Probably in your extensions.conf you should add in your outbound logic something like

same => n,Set(CALLERID(num)=1234567891)

It should set up yours number without plus on front

Asterisk will not do this unless explicitly told to do so. In fact, unless told otherwise, Asterisk will pass on the number received from the originating line, unmodified.

If you are adding the + remove the code that does so. Otherwise you need to talk to your service provider.

It is possible that you are sending type of number as international, and the provider is interpreting this as requiring a +. However, unless your originating devices are sending all 10 digits, you must either still have configured Asterisk to do this, or the provider is doing it themselves.

see the outbound configuration I got from the provider.
where am I adding your recommendation?


exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@voipms)

exten => _1NXXNXXXXXX,n,Hangup()
exten => _NXXNXXXXXX,1,Dial(SIP/1${EXTEN}@voipms)
exten => _NXXNXXXXXX,n,Hangup()
exten => _011.,1,Dial(SIP/${EXTEN}@voipms)

exten => _011.,n,Hangup()
exten => _00.,1,Dial(SIP/${EXTEN}@voipms)
exten => _00.,n,Hangup()


exten => _1NXXNXXXXXX,1,Noop(Dialing to ${EXTEN})
  same => n,Set(CALLERID(num)=1234567891)
  same => n,Dial(SIP/${EXTEN}@voipms)
  same => n,Hangup

;;;and so on

using directive same is more comfortable inseatd non-stop repeat full mask

It is a standard form of E.164 numbering plan.
You will not able to change the ANI shown on B# if the B# operator uses the E.164 standard.