Author Topic: Callid Vs conn Id  (Read 9555 times)

Offline kamesh

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Callid Vs conn Id
« on: June 11, 2008, 05:22:51 PM »
Need to understand the difference between the callid and the connid. Will the combination of callid and connid guaranteed to be unique across multiple restarts of Tserver?

Thanks
Kamesh

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Callid Vs conn Id
« Reply #1 on: June 11, 2008, 08:03:31 PM »
Hi Kamesh,

CallId - call identifier generated by switch
ConnectionId - call identifier generated by TServer

ConnectionId shouldn't be treated as an unique identifier as it could be reused e.g after restart. Singleness of CallId - not able to confirm it is unique or not as it depends on switch.

R.

Offline persmen

  • Newbie
  • *
  • Posts: 18
  • Karma: 2
  • Kemal KUCUKTASCI
Re: Callid Vs conn Id
« Reply #2 on: June 18, 2008, 01:14:22 PM »
Hi Kamesh,

both of callid and connid pair rotated large numbers. Rotating period can changed pbx to pbx. If you want, you may learn from your pbx guy this technical information.

I think callid and connid pair unique for a long time. (Pratically) But this combined value not always gurantee to unique info for call.

If you think this combination for logging i prefer add datetime value to info.


Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1416
  • Karma: 18
Re: Callid Vs conn Id
« Reply #3 on: June 19, 2008, 01:24:28 PM »
Kamesh,

unless you have millions of calls, ConnID should last you for a very very very very long time. Our CallID is flipping at least 4 times a day on one of the call centers, while I have yet to see a new ConnID.

The cool thing about ConnID is that it is unique multi-site! I do not think that even restarting PBX would reset your ConnID - wasn't one of the parameters it is based  is datetime (and why do I feel like there are way too many "is"?)

Vic

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Callid Vs conn Id
« Reply #4 on: June 19, 2008, 01:50:57 PM »
Vic,

You can see "duplicated" ConnID after restart of TServer in case of having high call volume. I've seen it already...

The same ConnID could be assigned by TServer to consultation call if TServer is configured to do so (option "use-data-from")...

R.

gururajs

  • Guest
Re: Callid Vs conn Id
« Reply #5 on: June 30, 2008, 07:43:00 AM »
I would like to know the maximum connids a call can have.
For ex: If a call is transferred to another agent or conferenced, will the connid of the call
change? or will Tserver attach the same connid to the call?

Offline JGMG

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Callid Vs conn Id
« Reply #6 on: July 18, 2008, 05:27:06 PM »
Hello Kamesh:

[b]Uniqueness:[/b]

Since neither connid or callid are guaranteed to be unique, technically the combination therof is not guaranteed to be unique either.  Connids are unlikely to repeat given that the connid is generally a combination of the timestamp, server-id T-Server option and callid from the switch (precise format varies from T-Server to T-Server I belive)

[b]Number connids/call[/b]

A call will have a primary connid which will survive the life of the call, but it may have many associated Consult connids if there are many two-step transfers or conferences.  I do not believe there is a hard limit to the number of consult connids a call can have during it's lifetime.