All cals from all phones in the company to outside will be displayed with the same number

We use AsteriskNOW 13.2.0 with Sipgate trunking ( sipgate team 10 ) and have 100 numbers from Sipgate.

All our calls go outside with the number +49 (xxxx) xxxxx-0. The system is configuriert that the caller ID in the form, for example for Ring Groups 31YY. I want to see instead of 0 the YY if I am called. Internally, the number is displayed correctly, but externally, or redirects to mobile phone - number appears the number 0 whitch is configured for the reception.

Config File extension_custom.conf:

 

exten => _+X!,1,Noop(Stripping + from start of number)
exten => _+X!,n,Goto(from-internal,${EXTEN:1},1)
exten => h,1,Hangup()

[from-trunk-custom]
exten => _X!,1,NoOp(Caller ID is ${CALLERID(num)})
exten => _X!,n,Set(CALLERID(name)=${CALLERID(num)})
exten => _X!,n,Goto(from-trunk,${EXTEN},1)

[macro-dialout-trunk-predial-hook]
exten => s,1,GotoIf($["${CALLERID(num):0:2}" = "00"]?doublezero)
exten => s,n,GotoIf($["${CALLERID(num):0:1}" = "0"]?onezero)
exten => s,n,MacroExit()
exten => s,n(onezero),Set(CALLERID(num)=49${CALLERID(num):1})
exten => s,n,SIPAddHeader(P-Preferred-Identity:<sip:${CALLERID(num)}@sipconnect.sipgate.de>)
exten => s,n,MacroExit()
exten => s,n(doublezero),Set(CALLERID(num)=${CALLERID(num):2})
exten => s,n,SIPAddHeader(P-Preferred-Identity:<sip:${CALLERID(num)}@sipconnect.sipgate.de>)
exten => s,n,MacroExit()

 

where is the problem :?

 

2 answers

2 accepted

1 vote

The problem is you're posting in the wrong website I think

0 vote

Could you explain which Atlassian product you are having this problem with and how you've configured this inside it?  

It sounds like JIRA or JIRA+Servicedesk, but we really need to know that before we can help you.

We use only asteriskNOW with standard installation.

So what has this got to do with Atlassian products?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

65 views 0 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you