[Home]

Summary:ASTERISK-14843: When no callerid is recieved, cannot override callerid
Reporter:Mark Murawski (kobaz)Labels:
Date Opened:2009-09-16 17:20:57Date Closed:2009-11-03 09:45:57.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_dahdi
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) debug
Description:Dialplan:
 _233X => {
   Wait(.75);
   NoOp(CALL FROM: ${CALLERID(name)} <${CALLERID(num)}> To: ${EXTEN});

   Set(CALLERID(name)=foo);
   NoOp(${STRFTIME(,,%s)} -- CallerID: ${CALLERID(name)});
   Dial(SIP/209);
 }

Asterisk Log with no callerid:
[Sep 16 18:05:45] VERBOSE[23198] logger.c:     -- Executing [2331@trunkhandler_incoming:2] NoOp("DAHDI/6-1", "CALL FROM:  <> To: 2331") in new stack
[Sep 16 18:05:45] VERBOSE[23198] logger.c:     -- Executing [2331@trunkhandler_incoming:3] Set("DAHDI/6-1", "CALLERID(name)=foo") in new stack
[Sep 16 18:05:45] VERBOSE[23198] logger.c:     -- Executing [2331@trunkhandler_incoming:4] NoOp("DAHDI/6-1", "1253138745 -- CallerID: foo") in new stack
[Sep 16 18:05:45] VERBOSE[23198] logger.c:     -- Executing [2331@trunkhandler_incoming:5] Dial("DAHDI/6-1", "SIP/209") in new stack


Log with receiving callerid:
[Sep 16 18:07:25] VERBOSE[23198] logger.c:     -- Executing [2331@trunkhandler_incoming:2] NoOp("DAHDI/7-1", "CALL FROM: SMITH <5181239000> To: 2331") in new stack
[Sep 16 18:07:25] VERBOSE[23198] logger.c:     -- Executing [2331@trunkhandler_incoming:3] Set("DAHDI/7-1", "CALLERID(name)=foo") in new stack
[Sep 16 18:07:25] VERBOSE[23198] logger.c:     -- Executing [2331@trunkhandler_incoming:4] NoOp("DAHDI/7-1", "1253138845 -- CallerID: foo") in new stack
[Sep 16 18:07:25] VERBOSE[23198] logger.c:     -- Executing [2331@trunkhandler_incoming:5] Dial("DAHDI/7-1", "SIP/209") in new stack


If I get a callerid name, I can set it to anything I want, and the phone will get it.
Without a callerid name, It doesn't matter what I set the callerid to, the phone at SIP/209, will *always* see Unknown/Unknown as the callerid.
Comments:By: Mark Murawski (kobaz) 2009-09-16 18:22:09

I'll get a sip debug in the morning

By: Leif Madsen (lmadsen) 2009-09-17 14:40:04

The sip debug, sip history, and asterisk console output will be required to move this forward. Thanks!

By: Leif Madsen (lmadsen) 2009-09-17 14:40:40

Additionally, can you provide which version this started to happen in? If not a previous version, then let me know so I can mark this as a regression if necessary.

By: Mark Murawski (kobaz) 2009-09-18 13:59:33

I'm not sure what version this started happening in... It seems like all of 1.6.0

uploaded debug log

By: Mark Murawski (kobaz) 2009-09-18 14:13:01

the callerid is being set to 'foo'

the sip header has privacy=full for some reason... other than that it looks okay

By: Digium Subversion (svnbot) 2009-11-03 09:41:39.000-0600

Repository: asterisk
Revision: 227166

U   branches/1.4/channels/chan_sip.c

------------------------------------------------------------------------
r227166 | file | 2009-11-03 09:41:38 -0600 (Tue, 03 Nov 2009) | 5 lines

Fix a bug where an RPID header could be generated with a blank username in the URI.

(closes issue ASTERISK-14843)
Reported by: kobaz

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=227166

By: Digium Subversion (svnbot) 2009-11-03 09:42:30.000-0600

Repository: asterisk
Revision: 227167

_U  trunk/

------------------------------------------------------------------------
r227167 | file | 2009-11-03 09:42:30 -0600 (Tue, 03 Nov 2009) | 12 lines

Merged revisions 227166 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
 r227166 | file | 2009-11-03 11:36:16 -0400 (Tue, 03 Nov 2009) | 5 lines
 
 Fix a bug where an RPID header could be generated with a blank username in the URI.
 
 (closes issue ASTERISK-14843)
 Reported by: kobaz
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=227167

By: Digium Subversion (svnbot) 2009-11-03 09:43:20.000-0600

Repository: asterisk
Revision: 227168

_U  branches/1.6.0/
U   branches/1.6.0/channels/chan_sip.c

------------------------------------------------------------------------
r227168 | file | 2009-11-03 09:43:20 -0600 (Tue, 03 Nov 2009) | 19 lines

Merged revisions 227167 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
 r227167 | file | 2009-11-03 11:37:08 -0400 (Tue, 03 Nov 2009) | 12 lines
 
 Merged revisions 227166 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4
 
 ........
   r227166 | file | 2009-11-03 11:36:16 -0400 (Tue, 03 Nov 2009) | 5 lines
   
   Fix a bug where an RPID header could be generated with a blank username in the URI.
   
   (closes issue ASTERISK-14843)
   Reported by: kobaz
 ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=227168

By: Digium Subversion (svnbot) 2009-11-03 09:44:19.000-0600

Repository: asterisk
Revision: 227169

_U  branches/1.6.1/
U   branches/1.6.1/channels/chan_sip.c

------------------------------------------------------------------------
r227169 | file | 2009-11-03 09:44:19 -0600 (Tue, 03 Nov 2009) | 19 lines

Merged revisions 227167 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
 r227167 | file | 2009-11-03 11:37:08 -0400 (Tue, 03 Nov 2009) | 12 lines
 
 Merged revisions 227166 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4
 
 ........
   r227166 | file | 2009-11-03 11:36:16 -0400 (Tue, 03 Nov 2009) | 5 lines
   
   Fix a bug where an RPID header could be generated with a blank username in the URI.
   
   (closes issue ASTERISK-14843)
   Reported by: kobaz
 ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=227169

By: Digium Subversion (svnbot) 2009-11-03 09:45:56.000-0600

Repository: asterisk
Revision: 227170

_U  branches/1.6.2/
U   branches/1.6.2/channels/chan_sip.c

------------------------------------------------------------------------
r227170 | file | 2009-11-03 09:45:56 -0600 (Tue, 03 Nov 2009) | 19 lines

Merged revisions 227167 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
 r227167 | file | 2009-11-03 11:37:08 -0400 (Tue, 03 Nov 2009) | 12 lines
 
 Merged revisions 227166 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4
 
 ........
   r227166 | file | 2009-11-03 11:36:16 -0400 (Tue, 03 Nov 2009) | 5 lines
   
   Fix a bug where an RPID header could be generated with a blank username in the URI.
   
   (closes issue ASTERISK-14843)
   Reported by: kobaz
 ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=227170