Skip to main content

LRN lookup using XML UDP

GET 
/XML UDP Request

Uses XML UDP to retrieve the local routing number information (LRN).

Requires IP Authentication to be setup through the portal and associated with LRN under Telco Data.

Send a UDP message with your username and the number you wish to dip to lrnlookup.telnyx.com on port 25201.

For example:

echo -n "<CustomerID>9605a9db-acb7-488c-9fdf-9532ce149e16</CustomerID><QueryNumber>15555555555</QueryNumber>" | nc -4u lrnlookup.telnyx.com 25201

If a number has been ported the response will contain the LRN field, otherwise it will be empty.

Sample response:

<?xml version="1.0"?>
<!DOCTYPE IAP_Msg SYSTEM "IAP_Msg.dtd">
<IAP_Msg>
<CustomerID>9605a9db-acb7-488c-9fdf-9532ce149e16</CustomerID>
<EchoData>
<Transaction_ID></Transaction_ID>
</EchoData>
<IAP_Response>
<Status>OK</Status>
<DR_LRN>
<ReplyCodeD>000</ReplyCodeD>
<PointCode>243.101.000</PointCode>
<LRN>15555555556</LRN>
</DR_LRN>
</IAP_Response>
</IAP_Msg>

Responses

301: SIP 302 redirect

Request samples


curl -L 'https://lrnlookup.telnyx.com/v1.1/XML UDP Request'