[asterisk-dev] IAX2 OSP support - issue 8531

Di-Shi Sun di-shi at transnexus.com
Fri Apr 13 18:06:46 MST 2007


Hi Tilghman,

Asterisk does not do the OSP token compressing. The OSP servers do it. The procedure is like this:
1. Configre the destination info on the OPS servers. The info includes destination protocol. It may be SIP, H323, or IAX.
2. When Asterisk (in fact, the app_osplookup application) sends a OSP AuthReq message to request route info and authorization, if the OSP servers find the destination is a IAX device, the OSP servers return an OSP token in IAX compact format in an OSP AuthRsp mesage. If the destination is a H323 device, the OSP servers return an OSP Token in XML format.
3. The app_osplookup application understands both OSP token formats. The channel drivers only pass the OSP tokens to the app_osplookup application, do nothing else.

This is a IAX format encoded OSP token sample. Size is 512.
MIIBegYJKoZIhvcNAQcCoIIBazCCAWcCAQExDjAMBggqhkiG9w0CBQUAMIGnBgkqhkiG9w0BBwGggZkEgZZWPTEKcj0xOTcyCmM9NDA0NTI2NjA2MQpDPTQwNDUyNjYwNjIKaT1HSFVwTmdwNFpYVmE2STV6dGNHRFNRPT0KYT0yMDA2LTEyLTA1VDE1OjE0OjQ4Wgp1PTIwMDYtMTItMDVUMTU6MjQ6NDhaCkk9NTAwMzI3NjAwNzE2MTU2MTQ2MQpBPTE0NDAwCm49MQpzPQpVPXMxgacwgaQCAQEwQDA7MSUwIwYDVQQDExxvc3B0ZXN0c2VydmVyLnRyYW5zbmV4dXMuY29tMRIwEAYDVQQKEwlPU1BTZXJ2ZXICAQEwDAYIKoZIhvcNAgUFADANBgkqhkiG9w0BAQEFAARA70Ep2G6G3AR/tofrMrbV0QAG0bBVt2OUetAd7Tg2ZCG6fTEcDs7LNpJwCygot3u9w0yNbvA01R9FRHtjuH9HeQ==

This is a XML format encoded OSP token sample. Size is 1392.
MIIEDgYJKoZIhvcNAQcCoIID/zCCA/sCAQExDjAMBggqhkiG9w0CBQUAMIIB0gYJKoZIhvcNAQcBoIIBwwSCAb88P3htbCB2ZXJzaW9uPScxLjAnPz48VG9rZW5JbmZvIHJhbmRvbT0nMjExNjknPj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uY29tMRIwEAYDVQQKEwlPU1BTZXJ2ZXICAQEwDAYIKoZIhvcNAgUFADANBgkqhkiG9w0BAQEFAARAQOXSPPTPn4b9dD8O0Ja8JPBj9aqyLjWC43SvLGmtEc5mFW7RD+jnaW1zTHcdzrB+WzqlJpuAaGwk5mckZnpglw==

Regards,

Di-Shi Sun.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20070413/34fc05b7/attachment.htm


More information about the asterisk-dev mailing list