mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 00:22:35 +00:00
gsmopen: indented
This commit is contained in:
parent
1666292025
commit
de019abd21
@ -1668,7 +1668,7 @@ int gsmopen_serial_read_AT(private_t *tech_pvt, int look_for_ack, int timeout_us
|
||||
|
||||
|
||||
#ifdef WANT_GSMLIB
|
||||
try{
|
||||
try {
|
||||
char content2[1000];
|
||||
SMSMessageRef sms;
|
||||
//MessageType messagetype;
|
||||
@ -1684,8 +1684,8 @@ try{
|
||||
if (sms->dataCodingScheme().getAlphabet() == DCS_DEFAULT_ALPHABET) {
|
||||
iso_8859_1_to_utf8(tech_pvt, (char *) sms->userData().c_str(), content2, sizeof(content2));
|
||||
} else if (sms->dataCodingScheme().getAlphabet() == DCS_SIXTEEN_BIT_ALPHABET) {
|
||||
ucs2_to_utf8(tech_pvt, (char *) bufToHex((unsigned char *) sms->userData().data(), sms->userData().length()).c_str(), content2,
|
||||
sizeof(content2));
|
||||
ucs2_to_utf8(tech_pvt, (char *) bufToHex((unsigned char *) sms->userData().data(), sms->userData().length()).c_str(),
|
||||
content2, sizeof(content2));
|
||||
} else {
|
||||
ERRORA("dataCodingScheme not supported=%d\n", GSMOPEN_P_LOG, sms->dataCodingScheme().getAlphabet());
|
||||
|
||||
@ -1714,8 +1714,8 @@ try{
|
||||
//servicecentretimestamp = sms->serviceCentreTimestamp();
|
||||
//sender_recipient_address = sms->address();
|
||||
|
||||
} catch (GsmException &ge)
|
||||
{
|
||||
}
|
||||
catch(GsmException & ge) {
|
||||
ERRORA("GsmException= |||%s|||\n", GSMOPEN_P_LOG, ge.what());
|
||||
}
|
||||
|
||||
@ -2751,7 +2751,7 @@ int gsmopen_sendsms(private_t *tech_pvt, char *dest, char *text)
|
||||
|
||||
if (tech_pvt->no_ucs2 || tech_pvt->sms_pdu_not_supported == 0) {
|
||||
#ifdef WANT_GSMLIB
|
||||
try{
|
||||
try {
|
||||
SMSMessageRef smsMessage;
|
||||
|
||||
memset(mesg_test, '\0', sizeof(mesg_test));
|
||||
@ -2825,8 +2825,8 @@ try{
|
||||
//servicecentretimestamp = sms->serviceCentreTimestamp();
|
||||
//sender_recipient_address = sms->address();
|
||||
#endif // NOTDEF
|
||||
} catch (GsmException &ge)
|
||||
{
|
||||
}
|
||||
catch(GsmException & ge) {
|
||||
ERRORA("GsmException= |||%s|||\n", GSMOPEN_P_LOG, ge.what());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user