[Spce-user] Need help connecting two call legs

Byran Carlock bcarlock at weitzinvestments.com
Wed Sep 5 18:25:29 EDT 2018


I'm trying to set up SPCE as an SBC in front of an asterisk PBX. SPCE is hosted in AWS, using an elastic IP. The PBX external IP address is static.
Ultimately what we're trying to do is some topology hiding/external authentication for remote employees.
SPCE is proxying the first message to the PBX, which is then responding to the IP address of the SPCE server. How can I connect these two call legs?


Sip messages below:
A.A.A.A = local IP of the remote client
E.E.E.E = External IP of remote client
B.B.B.B = External IP of SPCE
F.F.F.F = Internal IP of SPCE
C.C.C.C = External IP of Asterisk PBX
D.D.D.D = Local IP of Asterisk PBX

MESSAGE sip:proxy at B.B.B.B:5060 SIP/2.0
Via: SIP/2.0/UDP A.A.A.A:48086;rport;branch=z9hG4bKPje20da3af-bbfa-4f5f-8576-aa9a67f9ae63
Max-Forwards: 70
From: <sip:A.A.A.A>;tag=d7f26bf3-4325-4f2e-9f7a-914710bf3648
To: <sip:proxy at B.B.B.B>
Call-ID: 675b407e-e9db-4d4a-91a0-a7aeda22430e
CSeq: 48094 MESSAGE
Accept: text/plain, application/im-iscomposing+xml
User-Agent: Digium Android Softphone 4.1.1 (2fccfc8f)
X-Digium-User-Agent: Digium Android Softphone 4.1.1 (2fccfc8f)
X-Digium-AppServer-RequestType: Preconfig
X-Digium-AppServer-Preconfig-Id: cff0c0b5fcb18d6aa0de7198a8b628e9
X-Digium-Software-Version: 4.1.1 (2fccfc8f)
X-Digium-AppServer-ID: mobileui0000000004
Content-Type: text/plain
Content-Length:   182

-----BEGIN PUBLIC KEY-----
MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAOkfrh4LSlsN8T+pMjgta/udoeNfZZuf
xB1rllXpw9IpUdrdiv80yZSbMfn4TVB1f+5nQ1l6Wtd2GfqSBDfHUqcCAwEAAQ==
-----END PUBLIC KEY-----

SIP/2.0 202 Accepted
Via: SIP/2.0/UDP A.A.A.A:48086;rport=48086;received=E.E.E.E;branch=z9hG4bKPje20da3af-bbfa-4f5f-8576-aa9a67f9ae63
Record-Route: <sip:B.B.B.B:5060;lr;r2=on;ftag=d7f26bf3-4325-4f2e-9f7a-914710bf3648;ngcplb=yes;socket=sip:F.F.F.F:5060>
Record-Route: <sip:127.0.0.1;lr;r2=on;ftag=d7f26bf3-4325-4f2e-9f7a-914710bf3648;ngcplb=yes;socket=sip:F.F.F.F:5060>
Record-Route: <sip:127.0.0.1:5062;lr;ftag=d7f26bf3-4325-4f2e-9f7a-914710bf3648>
Record-Route: <sip:127.0.0.1;lr;r2=on;ftag=d7f26bf3-4325-4f2e-9f7a-914710bf3648;ngcplb=yes;socket=udp:F.F.F.F:5060>
Record-Route: <sip:B.B.B.B;lr;r2=on;ftag=d7f26bf3-4325-4f2e-9f7a-914710bf3648;ngcplb=yes;socket=udp:F.F.F.F:5060>
Call-ID: 675b407e-e9db-4d4a-91a0-a7aeda22430e
From: <sip:A.A.A.A>;tag=d7f26bf3-4325-4f2e-9f7a-914710bf3648
To: <sip:proxy at B.B.B.B>;tag=z9hG4bK05a9.ccb33533ab8341e30d1af421661cfb2d.0
CSeq: 48094 MESSAGE
Server: Asterisk PBX 13.1.0-6.7.rl.1516160751.a9f0643
Content-Length:  0

MESSAGE sip:B.B.B.B:5060 SIP/2.0
Via: SIP/2.0/UDP C.C.C.C:5060;rport;branch=z9hG4bKPj2fd51c14-08a4-4acf-a20a-54f5a68995a7
From: <sip:proxy at D.D.D.D>;tag=64b9fa5e-cbed-4722-9fe7-fa66e8409bdf
To: <sip:B.B.B.B>
Contact: <sip:asterisk at C.C.C.C:5060>
Call-ID: 561ade62-cf86-4ec4-a69b-893cbd1ccfa7
CSeq: 43156 MESSAGE
X-Digium-AppServer-ResponseType: PreconfigResponse
X-Digium-AppServer-Password: vlUVElkrfRKUYJf9XZJGSIom4lnyay05nD7ahI0XcEYJpxxzesVklyf4ISwihWR0/jS2DC3eSk1SM01/78ck9g==
X-Digium-AppServer-Session: 257863567648610286
X-Digium-AppServer-Message-Salt: 9C2D6762E23D49BF
X-Digium-AppServer-Message-Sequence: 0
X-Digium-AppServer-ID: mobileui0000000004
Max-Forwards: 70
User-Agent: Asterisk PBX 13.1.0-6.7.rl.1516160751.a9f0643
Content-Type: text/plain
Content-Length:   600

juefm10Ba9oAtgFnIWMLM5ygJ/2Hm1SmxtWq0olok+TQ0tTLXmOoWQrdTdRn78Zu8Dh/4n31yS15U6Bi4I1mCxurO/7htHPVpP/ycPT1LTwPtxOw4D2gqbEs9dOrCiwgCFw8R4SGUUdSfxvFFydY56qm95N1nMobjuRRyDrbSTBkyhF2uz95Hrw3xu4uJodfAdwxLvwhwKPUEMasDxNPvuYiwkBy8//kZDMgWBxLdgV9kal4BXtJflNOJLvFtWkQe1Sh/Vwe9IxGovl+yQYlIlBY5vLz+8fh3rjgQZLBzsaFO9WMRTTPG+qPsN+VN+BywHkwah+KHpqCrwHcpozJNh0xDMFluPbeEEZ5fVteC4wQyDuEQ6+GVXmUnqx6N1wvlYH8FABA6ZB9GJz4LCFWU4RHKIyySDwNsxt0xIQn4YJ5b//KL1SI/JvvjNApNN5paLhtgrW4/ZkMkvgqHh9qnyQgNP6xCPk/nw8TY8Q9b9lKsfI8rQ78leT8fkFKsPGajDi0MPg1YDspw+b5rPx+j1axM+NX1eEUdwKLZTDmhbHJHNTx8b57/D8ygx/joioPkxZLmdlwyfZfneTA==

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20180905/51176edf/attachment.html>


More information about the Spce-user mailing list