How to prepped trunk name to caller ID

nepyyvoda
Posts: 3
Member Since:
2009-11-13

Hi Everyone,

I was trying to find an answer for this on internet but no luck, hopefully somebody here will able to help me.

Basically I want to add trunk name to caller ID name based on which trunk it is received.

Not sure if the following is correct:

[from-trunk-custom]
exten => s,1,Noop (adding Trunk name)
exten => s,n,Set(CALLERID(name)="Trunk1 "${CALLERID(name)})
in my case it follows by #include -> from-internal

And also if this correct, where shell I put it?

I was trying to do this with IAX2 trunk but for me trunk stop working when change
context=from-internal
to
context=from-trunk-custom

Thank you for your help in advance.

Yuriy

PS: I'm using TB CE 2.8, fully updated.