Summary: | ASTERISK-06546: When no, or improper CID number is specified by client, CALLERID(num) is set to all numbers within the [context] in sip.conf | ||
Reporter: | James W. Brinkerhoff (jwb) | Labels: | |
Date Opened: | 2006-03-14 12:58:16.000-0600 | Date Closed: | 2011-06-07 14:10:44 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | in sip.conf I have a user like this: [C2142-outbound-3] type=friend secret=123456 nat=yes host=dynamic canreinvite=no context=C2142-outbound-default dtmfmode=rfc2833 qualify=yes accountcode=2142 When the client doesn't specify a caller id number, the CALLERID(num) ends up being 21423 (ie, all the digits from the [context]) I cannot find this behavior documented anywhere... Nor does anyone I've spoken to on #asterisk seem to have any knowledge of it. Bug? I can duplicate this issue without fail on both asterisk 1.2 and possibly also 1.0. | ||
Comments: | By: Olle Johansson (oej) 2006-03-14 14:42:34.000-0600 That's easy to spot. Thank you for reporting this. It's the stupid ast_shrink_phone_number function. It's high time to remove that from the SIP channel. By: James W. Brinkerhoff (jwb) 2006-03-14 14:46:43.000-0600 Or at least document it somewhere... You were the only person in my (admittedly semi-limited) search that had any CLUE about that functionality. A follow up question might be.. How does one provide a callerid string to be used assuming the client does NOT specifiy one (or has an invalid string). I know I can do this with some logic in the dialplan, but...? By: Olle Johansson (oej) 2006-03-14 15:51:42.000-0600 Try setting callerid in the configuration of the device. Check sip.conf.sample for advice on how to do it. There are also dialplan functions for this. "show functions" in the CLI give you help. I consider it a bug and will check into how this can be fixed. By: James W. Brinkerhoff (jwb) 2006-03-14 15:55:53.000-0600 Yes, that will FORCE the CID to something, but I want to allow the client to specifiy the CID, and if non is supplied, fall back to some default. Thank you tho, I'll keep an eye on this bug. By: John Todd (jtodd) 2006-04-20 13:20:34 I'm not sure if I should open another bug on this, but it seems like a related topic. I can't set CALLERID(num) to something that is non-numeric. In other words, if I want to present a SIP URI as a caller ID to the remote party, that doesn't seem possible. Setting the CALLERID(name) doesn't correctly populate the return call value in (for example) Cisco 79xx phones, so it needs to be CALLERID(num) that gets set to a SIP URI. By: John Todd (jtodd) 2006-04-20 13:27:28 Ack. Never mind - looks like my previous comment is a false alarm. While fundamentally true, it is the case that the domain suffix is modified in sip.conf via the 'fromdomain=' line, which was my intention. By: Serge Vecher (serge-v) 2006-05-08 09:15:57 brinkej: did the patch in 6450 fix this for you? By: James W. Brinkerhoff (jwb) 2006-05-08 10:05:08 I'm not available till wed, but I will be sure and test then and report back. By: Serge Vecher (serge-v) 2006-05-16 10:21:12 Ok, we'll presume that this has now been fixed by 6450 since Wednesday has come and gone with no report. If still not fixed, please reopen the bug with new debug please. Thanks. |