[Home]

Summary:ASTERISK-04290: SetCIDNum: CID numbers including dots and spaces are incorrectly parsed by IAX peers
Reporter:alexb (alexb)Labels:
Date Opened:2005-05-26 18:26:20Date Closed:2011-06-07 14:10:41
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:From wiki-Asterisk+Variables:

${CALLERIDNUM}: The current Caller ID number (Note that this is not necessarily numeric as the name would indicate and can legitimately contain the space character. Commands acting on this variable (such as 'GotoIf', for example) should be aware of this).

I'd like to set the caller ID number for IAX calls to our company phone number + 'ext.' + ${CALLERIDNUM}, e.g. "045 12345 ext. 123".

exten => s,1,SetCIDNum(${COMPANY_CID} ext. ${CALLERIDNUM})
exten => s,2,Dial(IAX2/${ARG1}/${ARG2})

As far as I can see in the CDR, it is set correctly at the calling party, but it is received malformed by the called party: "04512345ext123"
All spaces and dots are removed.
Comments:By: Tilghman Lesher (tilghman) 2005-05-26 18:43:02

Use CALLERIDNAME for that, not CALLERIDNUM