1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Network Caller ID (NCID)

Discussion in 'TiVo Underground' started by jlc, May 21, 2003.

  1. unclemoosh

    unclemoosh I Wish I knew Then..

    368
    0
    Sep 11, 2004
    Gulf South
    We have joy!

    I put a Netgear DS104 in the system and can now get the sip packets on the Tivo.

    My setup:
    Internet --> Cable Modem --> WRT54GS --> DS104--> VOIP Gateway & Tivo
    |--> Computers and other Tivos​

    I have two setups working. One is with a cable provider and another location using Hughesnet. This is one thing Hughesnet doesn't screw up.

    I do have one problem in both locations. The time shown in the cidcall.log is not adjusted for my timezone, CDT. I guess Vonage sends out the the time at GMT and the VOIP device adjusts it.

    So, all times shown in CIDRSS are 5 hours off. Is this a TWP issue, sip2ncid or ncid?
    Or, is there a setting that I have failed to set?

    Thanks for the great work!
     
  2. unclemoosh

    unclemoosh I Wish I knew Then..

    368
    0
    Sep 11, 2004
    Gulf South
    One other issue I have noticed besides the uncorrected time. When using sip2ncid there are 3 - 4 entries in the cidcall.log per call. In looking at the sip2ncid.log, the same goes there.

    I guess Vonage sends the info a few times...
     
  3. djl25

    djl25 C64 hacker

    95
    0
    May 26, 2005
    Providence, RI
    To correct the timezone problem you need to set TZ. You can start sip2ncid like so:
    TZ=EST5EDT,M3.2.0,M11.1.0 /hacks/ncid/sbin/sip2ncid

    (Above is Eastern time, obviously)


    If you're getting multiple entries, make sure you're not still receiving info from your modem. If you want to keep it plugged in but receive CID from sip you'll need to add the line set noserial = 1 to ncidd.conf.




     
  4. jlc

    jlc New Member

    149
    0
    Jun 18, 2002
    near...
    Vonage uses different systems to send SIP packets and some send the information multiple times. I am in the process of testing a new version of sip2ncid that has a new parse routine to ignore data send more than once. Could you email me, at sourceforge.net, your sip2ncid.log file with verbose set to 3? I would like to see the SIP packets sent to you for a call with no answer and a call that was answered.
     
  5. jebradl

    jebradl New Member

    21
    0
    Oct 28, 2004
    I have an asterisk based server (PBX in a Flash at 192.168.0.40) home phone network with 3 SIP phones, each with extensions at port 5060. I'm using ncid 0.69 on the tivo. When I try 'sip2ncid -t', I get the following returned:

    Test mode
    Processed config file: /var/hack/etc/ncid/sip2ncid.conf
    Verbose level: 3
    Network Interface: eth0
    Filter: host 192.168.0.40 and port 5060 and udp

    When 'sip2ncid -T' is run, I get a scrolling page of:
    Packet number xxxx:
    Protocol: TCP
    ad infinitum.

    When I call an extension that uses port 5060, I don't get any indication that it recognizes any info is being sent. The asterisk server, phones, and tivo, are all inside the router (an asus router running openwrt).
    POTS line-->DSL modem-->router-->Asterisk server-->
    POE Switch-->2 SIP phones and hub-->3rd SIP phone

    The enabled lines in ncidd.conf are:
    send cidlog
    send cidinfo
    set noserial = 1

    The enabled lines in sip2ncid.conf are:
    set siphost = 192.168.0.40
    set sipport = 5060

    What other information do I need to report to help get the tivo enabled to report callerid info for the SIP phones?
     
  6. unclemoosh

    unclemoosh I Wish I knew Then..

    368
    0
    Sep 11, 2004
    Gulf South
    I am no expert, but I do have NCID working on my Tivo's. Two observations:

    1) Upgrade to version 0.70
    2) Try putting a hub and connecting your asterisk server and your Tivo running sip2ncid to the hub. I had to do this to make the sip packets available to my Tivo. Depending on your router, you may be able to mirror your asterisk server port to your Tivo port to accomplish this.

    Also, I didn't enable any lines in my sip2ncid.conf file.

    Hope this helps.
     
  7. jlc

    jlc New Member

    149
    0
    Jun 18, 2002
    near...
    It is best if you do not set the siphost line in sip2ncid.conf. Comment it out and sip2ncid should receive SIP packets. I have been changing sip2ncid to work better with Asterisk, and the log files I received show it working with a filter of "port 5060 and udp". If this does not work, you can try the suggestion of unclemoosh, but you still should not set siphost.

    The sip2ncid in NCID version 0.69 may not decode the caller id from Asterisk SIP packets, and the sip2ncid in NCID version 0.70 will indicate multiple calls for every one received. You should upgrade to NCID 0.70 and get the latest beta version of sip2ncid. A current beta will be available until the next release:
    Code:
    wget ncid.sourceforge.net/sip2ncid-tivos2-beta.tar.gz
    Anyone that is getting multiple CID entries with sip2ncid or receiving SIP packets with no CID entries should try the beta. If you still have problems, email the sip2ncid.log file, at verbose 3, to me at sourceforge. The log file should contain at least 2 calls, one with a hangup before answer and one with a hangup after answer.
     
  8. jebradl

    jebradl New Member

    21
    0
    Oct 28, 2004
    I'm finally at home long enough to make the changes and try things. I have upgraded to 0.70 along with the beta sip2ncid, as well as commenting out the sip host line.
    With 'sip2ncid -T' I continue to get continuous scrolling of packets (I only saw tcp packets, not udp).

    'sip2ncid -l' results in
    eth0 : No description available
    any : Pseudo-device that captures on all interfaces
    lo : Loopback device

    'sip2ncid -t' results in
    Test mode
    Processed config file: /var/hack/etc/ncid/sip2ncid.conf
    Verbose level: 3
    Network Interface: eth0
    Filter: port 5060 and udp

    ncidd.conf
    set verbose = 3
    send cidlog
    send cidinfo
    set noserial = 1

    sip2ncid.conf
    set verbose = 3
    set sipport = 5060

    sip2ncid.log showed only (the redundant info has been cut)
    Started: 05/23/2008 04:36
    Server: sip2ncid 0.8pre9 (NCID 0.70)
    Processed config file: /var/hack/etc/ncid/sip2ncid.conf
    Verbose level: 3
    NCID server at localhost:3333
    Wrote pid 3088 in pidfile: /var/run/sip2ncid.pid
    Network Interface: eth0
    Filter: port 5060 and udp

    Any other suggestions?
     
  9. unclemoosh

    unclemoosh I Wish I knew Then..

    368
    0
    Sep 11, 2004
    Gulf South
    See my post above about mirroring your port or putting in a hub. It appears that your router is probably not sending the sip packets to your Tivo. I had to use the hub because my Linksys router did not have a mirroring function.
     
  10. jebradl

    jebradl New Member

    21
    0
    Oct 28, 2004

    Actually there are a couple of hubs. And two of the phones are connected to the hubs. I was trying to abbreviate the description somewhat and didn't show the tivos, but the corrected discription is
    POTS line-->DSL modem-->wifi router1-->Asterisk server-->
    POE Switch-->(2 SIP phones and hub1-->3rd SIP phone and Tivo)
    ...AND.......-->(wifi router2-->Tivo)

    Both routers are hardwired together, router1 is the gateway. Both tivos are hardwired to their router or hub (USB100TX adapters). Since the phones (2 Grandstream GXP2000's, and an Aastra 57iCT (a wonderful SIP phone!) are receiving the SIP info to receive and place calls, I can't see how the Tivo isn't receiving the same information.
     
  11. jebradl

    jebradl New Member

    21
    0
    Oct 28, 2004
    It looks like I still didn't describe it correctly. It should be

    POTS line-->DSL modem-->wifi router1(gateway)-->
    POE Switch-->(Asterisk Server) AND (SIP phone1) AND (SIP phone2) AND (hub1-->SIP phone3 and Tivo) AND (wifi router2-->Tivo)

    The routers (1-Asus WL500GP and 2-Linksys WRT54GL) are both using openwrt Kamakaze firmware.
     
  12. jlc

    jlc New Member

    149
    0
    Jun 18, 2002
    near...
    Which TiVo are you trying to get sip2ncid to work on? I would guess you are trying it on the TiVo connected to the wifi router. If so, I would expect it to work on the TiVo connected to hub1.

    Since you are using "PBX in a flash", you could compile sip2ncid to run on it also. Since it is using CentOS 5.x it is possible a Fedora or Ubuntu binary will work on it. If you want to try that, email me at sourceforge and I will email you a sip2ncid binary to try.
     
  13. jebradl

    jebradl New Member

    21
    0
    Oct 28, 2004
    Wrong guess. I've been trying to get the tivo connected to the hub (which also has a SIP phone connected).

    As for installing sip2ncid on the PIAF server, I've been having dependency problems. As soon as I get a chance to locate and install the other rpm's, I'll look at that. I'm also looking at modification of the dialplan in Asterisk to send the callerid info. I can echo text to the tivo with nc from the Asterisk server, so it should work.

    Does sip2ncid function as a server, or just feed sip info to ncidd? (Or, in other words, do they have to reside on the same machine?)
     
  14. jlc

    jlc New Member

    149
    0
    Jun 18, 2002
    near...
    I call sip2ncid a gateway. It takes SIP input and transforms it into ncidd input. It does not have to reside on the same computer with ncidd. That is why I suggested you put sip2ncid on your PIAF server.
     
  15. unclemoosh

    unclemoosh I Wish I knew Then..

    368
    0
    Sep 11, 2004
    Gulf South
    I gotta tell you that I don't know jack about the Asterisk server and sip phones. But if the server is what interfaces your phones to the outside world, then I believe that your Tivo running sip2ncid should be on a hub with your server, so that it can see the same info your server is seeing. Apparently your server does something to the info it sends and receives from your phones to allow them to talk to the outside world.

    Or, maybe I don't have any idea how your system works and should let someone else try to help :(
     
  16. unclemoosh

    unclemoosh I Wish I knew Then..

    368
    0
    Sep 11, 2004
    Gulf South
    Tried the latest sip2ncid beta and it looks like it solved the problem at my other place. I'll try it in the city next week to make sure it still works there.

    Thanks for your efforts!!!:up:
     
  17. jebradl

    jebradl New Member

    21
    0
    Oct 28, 2004
    I'm finding that I don't know much, either. One thing that I didn't list in my diagram is the POTS telephone connection to the Asterisk server. I am not using any of the VOIP telephony providers. I'm receiving a POTS signal through a card in the server, which then distributes the call to the appropriate SIP phone within my home network. They are SIP phones, and they all work correctly, and they are receiving a SIP signal, but I somehow can't seem to pick up that signal with sip2ncid. I received a linux binary from jlc, and ran it on my server, and had no luck there, either. It showed activity with the -T switch, but none when monitoring port 5060, which is what the phones default to. I was hoping to get something working on the tivo so that I didn't have to mess with the Asterisk dialplan. I have pretty much given up with sip2ncid, but I did find a way to send the info to the tivo using nc(netcat), so I now have functioning callerid.
     
  18. BTUx9

    BTUx9 back?

    1,596
    0
    Nov 13, 2003
    Rockport, MA
    if incoming calls are all through a POTS line connected directly to the server, I doubt the packets sip2ncid is interested in are ever even created as SIP packets.
     
  19. jebradl

    jebradl New Member

    21
    0
    Oct 28, 2004
    Since the phones are all SIP phones, I'm not sure why you would think that the packets sent to them by the server would be of no interest to sip2ncid. Let me repeat, they are SIP phones. Only the server connects to the POTS line.
     
  20. BTUx9

    BTUx9 back?

    1,596
    0
    Nov 13, 2003
    Rockport, MA
    I was under the impression that the packets that were used for CID info were those coming IN to the server... if that isn't the case, then ignore my previous comment.
     

Share This Page