[asterisk-users] Changing the Caller ID
Shad Mortazavi
Shad.Mortazavi at nexusmgmt.com
Tue Jun 12 08:57:06 CDT 2007
Dear Group,
I have a scenario where I would like to change the caller ID based on
the number dialled;
For example;
;Outbound UK and London Calls
exten=>_8.,1,Set(CALLERIDNAME=0207100XXXX)
exten=>_8.,2,Dial(SIP/${EXTEN:1}@esms-out,30,r)
exten=>_80039.,1,Set(CALLERIDNAME=0039024070XXXX)
exten=>_8.,2,Dial(SIP/${EXTEN:1}@esms-out,30,r)
exten=>_80034.,1,Set(CALLERIDNAME=003491187XXXX)
exten=>_8.,2,Dial(SIP/${EXTEN:1}@esms-out,30,r)
exten=>_80049.,1,Set(CALLERIDNAME=0049891214XXXX)
exten=>_8.,2,Dial(SIP/${EXTEN:1}@esms-out,30,r)
So for anything outside the Madrid, Milan, Munich extensions I would
like to use the generic UK number or have a pieced of logic that goes;
exten=>_800.,1,Set(CALLERIDNAME=440207100XXXX)
exten=>_800.,2,Dial(SIP/${EXTEN:1}@esms-out,30,r)
Unfortunately this does not work, every time I dial I get
CALLERIDNAME=0207100XXXX.
What am I missing?
Many Thanks
Shad Mortazavi
--------------------
n|m Nexus Management
More information about the asterisk-users
mailing list