USSD gateway sample application for HTTP protocol

656 views
Skip to first unread message

sokha

unread,
Oct 17, 2011, 11:58:07 PM10/17/11
to mobicents-public
Dear All,

Is there any sample http application for ussd ? i have read ussd
gateway document but there is no info on parameters or field for
working with ussd gateway via http protocol.

or are their any spec or doc for http application ?


Regards,
sokha

Amit Bhayani

unread,
Oct 18, 2011, 2:37:02 AM10/18/11
to mobicent...@googlegroups.com
Hi Sokha,

For every new request USSD GW sends HTTP POST with XML payload (same as SIP payload). The Application (be it servlet, asp or any 3rd party application) which consumes http request should parse this XML and send back http-response with response Payload

Amit. 

sokha

unread,
Oct 18, 2011, 3:38:04 AM10/18/11
to mobicents-public
Hi Amit,

yes, I did some test but I do not know what is response format.
can you point me to where i can find the detail format?


Regards,
sokha

Bartosz Baranowski

unread,
Oct 18, 2011, 3:40:57 AM10/18/11
to mobicent...@googlegroups.com
http://mobicents.googlecode.com/svn/trunk/servers/jain-slee/examples/ussd/
Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.

sokha

unread,
Oct 18, 2011, 6:04:58 AM10/18/11
to mobicents-public
Dear Bartosz ,

Thanks for the link, I have looked at the example document however
still could not figure out.

could you or anyone give me log from a working SIP ussd application?
as i still can't get the SIP USSD example working.

//-----
//below is request from ussd gateway
//-----
POST / HTTP/1.1
Accept: text/xml
Transfer-Encoding: chunked
Content-Type: text/xml
Content-Encoding: utf-8
Host: 192.168.53.225:80
Connection: Keep-Alive

121

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><request
xmlns="http://mobicents.org/ussd"><invokeId>1</invokeId><dialogId>0</
dialogId><msisdn>31628838002</msisdn><ussdString>*123#</
ussdString><ussdCoding>15</ussdCoding><result>false</
result><lastResult>false</lastResult></request>

0

/// below i have construct response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response xmlns="http://mobicents.org/ussd">
<invokeId>1</invokeId><dialogId>0</dialogId><msisdn>31628838002</
msisdn>
<ussdString>welcome to my menu</ussdString>
<ussdCoding>15</ussdCoding>
<result>false</result>
<lastResult>false</lastResult>
</response>

///
it does display on simulator but i can't make next request






Regards,
sokha

On Oct 18, 2:40 pm, Bartosz Baranowski <baran...@gmail.com> wrote:
> http://mobicents.googlecode.com/svn/trunk/servers/jain-slee/examples/...
Reply all
Reply to author
Forward
0 new messages