Commit Graph

19 Commits

Author SHA1 Message Date
Harald Welte ce41e7f2a9 TCO needs to know the PID of the user to deliver incoming BEGIN
If TCO detects an incoming BEGIN, it starts tcap_transaction_sup
which in turn start dha_fsm and ism_fsm, who both need to know
to whom to send the new components

We nw send those to the Pid that was set by the user using
gen_server:call(TCOpid, set_usap).  This is most likely not the right
approach, as most apps will probably want to create a new process for
each dialogue.  Needs improvement later.
2013-06-08 09:04:02 +02:00
Harald Welte db99b66859 TCO: fix generation of incoming tcap_transaction_sup tree
This moves the 'server' side of the TCAP code to generate a proper
tcap_transaction_sup sub-tree on an incoming BEGIN
2013-06-08 09:02:50 +02:00
Harald Welte d98371a2f4 TCAP TCO Server: Use 'TR' module to encode Abort 2013-06-07 23:15:42 +02:00
Harald Welte 250b36f2d8 TCO: make sure transaciton IDs are always converted from binary to int 2012-01-31 20:43:17 +01:00
Harald Welte 556e14a07f TCO: Fix ets lookup when receiving END transaction 2012-01-30 22:55:13 +01:00
Harald Welte 9bdce61410 TCO: Pass only Pid, not complete From tuple as Usap PID to DHA 2012-01-30 21:12:23 +01:00
Harald Welte 8adb719ce5 TCO: correctly parse/decode incoming transaciton IDs to resolve TSM 2012-01-30 19:47:24 +01:00
Harald Welte fd392388e9 TCO: fix interpretation of incoming TPDUs
It's sufficient to call the asn1 decoder on TCMessage, we don't need
to call it again for begin/continue/end
2012-01-30 01:50:30 +01:00
Harald Welte 05f7778a81 TCO/TCU: Make sure to start all supervisors on INVOKE
This introduces a new 'call' from the TC-User to TCO, which creates
the equired transaction_sup, dialogues_sup, dha_fsm and tsm_fsm _before_
the TC-INVOKE component will be passed into the new DHA fsm.

Once the TCO actually receives the TR-BEGIN, it will not start the
transaction supervisor, but merely look it up based on the TR-user
provided transaction ID.
2012-01-29 20:07:38 +01:00
Harald Welte dbb39e1776 Fxi the way that TCO starts transaction_sup and tsm_fsm in local-out-begin 2011-12-18 21:45:49 +01:00
Harald Welte f42d43b9f4 TCO: export the new_tid() function 2011-12-17 19:11:32 +01:00
Harald Welte fb5de0e5cc rename ets 'transaction' table to 'tcap_transaction'
the ets namespace is global, so weshould prefix it with the name tcap to
avoid collisions with other applications.
2011-12-15 11:33:17 +01:00
Harald Welte 665aacb35b TCO server: make sure argument list for behaviour module is a list 2011-12-13 19:19:47 +01:00
Harald Welte 6b363e580e first attempt at implementing the TCO and ISM parts 2011-10-18 20:22:36 +02:00
Harald Welte e5a830d607 tcap_tco_server: Fix ASN.1 encode of TR-UNI.req
Handle the return value of the asn1 encoder, considering its use of
iolists as well as the {ok, ...} return tuple
2011-10-15 21:48:43 +02:00
Vance Shipley f6478299b4 Merge branch 'master' of git.osmocom.org:erlang/signerl 2011-03-30 16:21:33 -04:00
Vance Shipley 021bf72700 changed to a BSD Revised form of open source license 2011-03-30 16:17:07 -04:00
Harald Welte f84c5914cf various small fixes to make the TCAP code build at all 2011-03-28 00:08:19 +02:00
Vance Shipley 2c7a40e5ba Initial import of TCAP project from Motivity. 2011-03-07 23:57:05 +01:00