[Home]

Summary:ASTERISK-02746: Callier ID Name is lost when calling from SIP channel to Zap channel.
Reporter:zebble (zebble)Labels:
Date Opened:2004-11-05 18:41:44.000-0600Date Closed:2008-01-15 15:23:27.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:The Caller ID Name is lost when calling from a SIP to a Zap channel.  Zap to Zap works, and Zap to SIP works.  I haven't tested any other channel types.
In sip.conf, if I setup caller as follows:
callerid="test phone" <123456>
the phone on the Zap channel will display "123456" <unknown name>.  Using "show channel SIP/???????" shows the Caller ID Number as 12345 and the Caller ID Name as (null).

Debugging the SIP headers shows the following From: line:

From: "123456" <sip:123456@???.???.???.???>;tag=1234567890

A Zap to SIP call shows the correct SIP header:

From: "test phone" <sip:123456@???.???.???.??? ;tag=1234567890

I can also confirm that the Callerid Name is lost through this call stream: SIP -> Asterisk -> IAX2 -> Asterisk -> Zap.
Comments:By: Brian West (bkw918) 2004-11-06 13:13:35.000-0600

you have

callerid="test phone" <123456>

in your sip.conf right?

I can't reproduce this.

bkw

By: Mark Spencer (markster) 2004-11-06 18:20:07.000-0600

Can you show your sip entry?

By: Mark Spencer (markster) 2004-11-06 18:57:08.000-0600

Fixed in CVS if you use type=peer now, too.

By: Russell Bryant (russell) 2004-11-07 13:47:49.000-0600

i'm assuming this only affects head

By: zebble (zebble) 2004-11-12 18:15:32.000-0600

I'm still having the same problem.  This is the first chance I've had to test the changes, and I still get "Out of Area" as the name.  The CallerID number always comes through just fine.

I'm using the latest CVS (Nov. 11, 2004, ~7:00pm).  This was working in our previously running version (CVS approx. Oct 4th, 2004)

Here's one of my sample sip.conf entries:

[000B8201D8D6]
callerid="Spare ATA486" <000>
mailbox=000
nat=yes
context=trusted
disallow=all
allow=iLBC
type=friend
username=000B8201D8D6
host=dynamic
secret=mysecretpassword
canreinvite=no
qualify=yes
dtmfmode=info

By: Mark Spencer (markster) 2004-11-13 11:17:44.000-0600

When you have the call up, show me the result of "show channels" and "show channel <foo>" where "<foo>" is the SIP channel and again when "<foo>" is the zap channel.  Thanks.

By: zebble (zebble) 2004-11-16 17:39:16.000-0600

Mark:

sip.conf:

[000B82004D25]
callerid= "Wade Weppler" <515>
mailbox=515
nat=yes
context=trusted
disallow=all
allow=iLBC
type=friend
username=000B8200E8E7
host=dynamic
secret=mysecret
canreinvite=no
qualify=yes
dtmfmode=info



asterisk*CLI> show channels
       Channel  (Context    Extension    Pri )   State Appl.         Data      
      Zap/15-1  (trusted    s            1   )      Up Bridged Call  SIP/000B82004D25-33c9
SIP/000B82004D25-33c9  (macro-stdexten s            4   )      Up Dial          Zap/15&SIP/000B82004D25|20
2 active channel(s)
asterisk*CLI> show channel Zap/15-1
-- General --
          Name: Zap/15-1
          Type: Zap
      UniqueID: 1100648128.106
     Caller ID: 515
Caller ID Name: (N/A)
   DNID Digits: (N/A)
         State: Up (6)
         Rings: 0
  NativeFormat: 68
   WriteFormat: 64
    ReadFormat: 1024
1st File Descriptor: 21
     Frames in: 569
    Frames out: 636
Time to Hangup: 0
  Elapsed Time: 0h0m0s
--   PBX   --
       Context: trusted
     Extension: s
      Priority: 1
    Call Group: 2
  Pickup Group: 2
   Application: Bridged Call
          Data: SIP/000B82004D25-33c9
         Stack: -1
   Blocking in: ast_waitfor_nandfds
Variables:
BRIDGEPEER=SIP/000B82004D25-33c9

asterisk*CLI> show channel SIP/000B82004D25-33c9
-- General --
          Name: SIP/000B82004D25-33c9
          Type: SIP
      UniqueID: 1100648128.105
     Caller ID: 515
Caller ID Name: (N/A)
   DNID Digits: 515
         State: Up (6)
         Rings: 0
  NativeFormat: 1024
   WriteFormat: 1024
    ReadFormat: 64
1st File Descriptor: 47
     Frames in: 523
    Frames out: 1054
Time to Hangup: 0
  Elapsed Time: 0h0m16s
--   PBX   --
       Context: macro-stdexten
     Extension: s
      Priority: 4
    Call Group: 0
  Pickup Group: 0
   Application: Dial
          Data: Zap/15&SIP/000B82004D25|20
         Stack: 1
   Blocking in: ast_waitfor_nandfds
Variables:
BRIDGEPEER=Zap/15-1
DIALEDPEERNUMBER=000B82004D25
DIALEDPEERNAME=Zap/15-1
CALLEDEXTEN=515
ARG2=Zap/15&SIP/000B82004D25
ARG1=515
MACRO_PRIORITY=1
MACRO_CONTEXT=trusted
MACRO_EXTEN=515
SIPCALLID=75e9e26401155f7f@192.168.223.115
SIPUSERAGENT=Grandstream BT100 1.0.5.16
SIPDOMAIN=asterisk.wwworks-inc.com

By: twisted (twisted) 2004-12-01 01:08:14.000-0600

*pokes markster*

--housekeeping

By: Olle Johansson (oej) 2004-12-13 02:03:18.000-0600

*poke* again...

--housekeeping

By: Mark Spencer (markster) 2004-12-24 04:04:40.000-0600

First check with latest CVS and if this is still a problem I may need to login and look at it.

By: zebble (zebble) 2005-01-03 12:06:59.000-0600

Yup, same problem.  Tested latest CVS (Jan 3, 2005 - 1:00pm EST).  The number is sent, but not the name.

By: twisted (twisted) 2005-01-09 22:38:10.000-0600

Bringing this one back up for attention

By: Mark Spencer (markster) 2005-01-27 23:36:21.000-0600

Fixed in CVS head.

By: Digium Subversion (svnbot) 2008-01-15 15:23:27.000-0600

Repository: asterisk
Revision: 4908

U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r4908 | markster | 2008-01-15 15:23:27 -0600 (Tue, 15 Jan 2008) | 2 lines

Fix CID name when no CID name is supplied (bug ASTERISK-2746)

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

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