Skip to content

Instantly share code, notes, and snippets.

@valinurovam
Created September 3, 2012 12:24
Show Gist options
  • Save valinurovam/3608958 to your computer and use it in GitHub Desktop.
Save valinurovam/3608958 to your computer and use it in GitHub Desktop.
#tprice{partner_price = PartnerPrice,
system_price = SystemPrice,
manager_price = ManagerPrice,
partner_pay_on_dlr = _PartnerPDLR,
manager_pay_on_dlr = _MangerPDLR,
channel_pay_on_dlr = _ChannelPDLR} = smpp_billing_server:get_price_info({PartnerID, CountryID, ChannelID}),
Status = 1,
emysql:prepare(insert_pdu_stmt, <<"insert into mbstat.smpp_in_pdu values(null, now(), ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)">>),
try
emysql:execute(?DB, insert_pdu_stmt,
[SequenceNumber, Status, PartnerID, ChannelID, CountryID, DestinationAddr, SourceAddr, ShortMessage,
PartnerPrice, PartnerPrice, SystemPrice, SystemPrice, ManagerPrice, ManagerPrice]),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment