# How to call a callpoint after the subscription?

**URL:** <https://dmap-community.ductus.global/t/how-to-call-a-callpoint-after-the-subscription/1161>\
**Category:** CDB and CDB API\
**Created:** [April 11, 2017, 3:09pm UTC](https://dmap-community.ductus.global/t/how-to-call-a-callpoint-after-the-subscription/1161 "2017-04-11T15:09:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruxob](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@ruxob](https://dmap-community.ductus.global/u/ruxob)\
**Post date:** [April 11, 2017, 3:09pm UTC](https://dmap-community.ductus.global/t/how-to-call-a-callpoint-after-the-subscription/1161/1 "2017-04-11T15:09:42Z")

</div>

How to call a callpoint after the subscription ?  
I have list and i want to set a value with mappi\_set\_elem after my subscription.

```
      list ts {
        tailf:callpoint my_callpoint {
          tailf:transaction-hook node; // i want to go in this callpoint after my subscription
          tailf:config "true";
        }
        key ts;
        leaf ts {
          type uint8{
            range 1..31;
            tailf:info "timeslot value;;[1..15,17..31]";
          }
        }
```

---

<div class="post-metadata">

**Author:** ![josephm](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@josephm](https://dmap-community.ductus.global/u/josephm)\
**Post date:** [April 11, 2017, 3:17pm UTC](https://dmap-community.ductus.global/t/how-to-call-a-callpoint-after-the-subscription/1161/3 "2017-04-11T15:17:11Z")

</div>

Hi,

what callpoint?  
question is too generic, please describe bit more what you want to achieve…

b.r.  
joseph

---

<div class="post-metadata">

**Author:** ![ruxob](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@ruxob](https://dmap-community.ductus.global/u/ruxob)\
**Post date:** [April 11, 2017, 3:27pm UTC](https://dmap-community.ductus.global/t/how-to-call-a-callpoint-after-the-subscription/1161/4 "2017-04-11T15:27:49Z")

</div>

I have list and i want to set a value with mappi\_set\_elem after my subscription in my calloint with maapi\_set\_elem

---

<div class="post-metadata">

**Author:** ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)\
**Post date:** [April 11, 2017, 3:41pm UTC](https://dmap-community.ductus.global/t/how-to-call-a-callpoint-after-the-subscription/1161/5 "2017-04-11T15:41:09Z")

</div>

So by “subscription” you are referring to a callback in a data provider that has been registered using a callpoint id?  
I.e. not a CDB subscriber.

---

<div class="post-metadata">

**Author:** ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)\
**Post date:** [April 12, 2017, 4:21am UTC](https://dmap-community.ductus.global/t/how-to-call-a-callpoint-after-the-subscription/1161/6 "2017-04-12T04:21:01Z")

</div>

Didn’t see that you edited your initial post until now… So on how to handle a transaction-hook, see for example  
examples.confd/snmpa/11-different-keys/hook.c
