pycrate icon indicating copy to clipboard operation
pycrate copied to clipboard

send isup message

Open AmroAbdulla opened this issue 3 years ago • 5 comments

how can I work with isup to send iam message to Network mobile ?

AmroAbdulla avatar Jun 21 '22 21:06 AmroAbdulla

Sorry, I am not sure to understand the question. If you want to encode an ISUP IAM message, then, it's a matter of filling the InitialAddress object with your expected values:

In [1]: from pycrate_mobile.ISUP import *                                                                                                                                                                    

In [2]: print(InitialAddress().show())                                                                                                                                                                       
### InitialAddress ###
 <CIC : 0>
 <Type : 1 (Initial address)>
 ### NatureConnectionInd ###
  <spare : 0x0>
  <EchoControlDeviceInd : 0 (incoming echo control device not included)>
  <ContinuityCheckInd : 0 (continuity check not required)>
  <SatelliteInd : 0 (no satellite circuit in the connection)>
 ### ForwardCallInd ###
  <ISDNUserPartPrefInd : 0 (ISDN user part preferred all the way)>
  <ISDNUserPartInd : 0 (ISDN user part not used all the way)>
  <EtoEInfoInd : 0 (no end-to-end information available)>
  <InterworkingInd : 0 (no interworking encountered (Signalling System No. 7 all the way))>
  <EtoEMethodInd : 0 (no end-to-end method available (only link-by-link method available))>
  <InternatCallInd : 0 (call to be treated as a national call)>
  <ReservedNationalUse : 0>
  <spare : 0>
  <SCCPMethodInd : 0 (no indication)>
  <ISDNAccessInd : 0 (originating access non-ISDN)>
 <CallingPartyCat : 0 (calling party's category unknown at this time (national use))>
 <TransmissionMediumReq : 0 (speech)>
 ### Pointers ###
  <Ptr0 : 2>
  <Ptr1 : 0>
 ### CalledPartyNum ###
  <Len : 2>
  ### CalledPartyNum ###
   <OE : 0 (even number of address signals)>
   <NAI : 1 (subscriber number (national use))>
   <INN : 0 (routing to internal network number allowed)>
   <NumPlan : 0 (spare)>
   <spare : 0x0>
   <Num : >
 ### Opt ###

Then, calling the to_bytes() method to encode it into a buffer.

If your question is related to something else, e.g., where you can connect to a telecom routing point, then I can't answer.

p1-bmu avatar Jun 27 '22 09:06 p1-bmu

i have my own telecom routing point but i want to build a sigtran stack(sctp , M2PA , mtp3, isup) and send it to my telecom routing point

AmroAbdulla avatar Jun 30 '22 23:06 AmroAbdulla

So you can use Linux + https://github.com/P1sec/pysctp for SCTP https://github.com/P1sec/pycrate/blob/master/pycrate_mobile/SIGTRAN.py for M2PA and MTP3 https://github.com/P1sec/pycrate/blob/master/pycrate_mobile/ISUP.py for ISUP. Go through the readme and wiki, read the source code eventually. Then you will be able to develop the application you need with Python.

p1-bmu avatar Jul 01 '22 09:07 p1-bmu

where can i find m3ua

AmroAbdulla avatar Jul 02 '22 21:07 AmroAbdulla

https://github.com/P1sec/pycrate/blob/master/pycrate_mobile/SIGTRAN.py

p1-bmu avatar Jul 04 '22 07:07 p1-bmu