You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by baMufu <si...@gmail.com> on 2014/06/27 10:50:12 UTC
Re: SMPP How to receive delivery receipt from smsc as producer?
Who would u mind sharing your code on how u managed to get response from the
SMSC. Below is my code.
from("test-jms:queue:test.queue").process(new Processor() {
public void process(Exchange e) {
System.out.println("Received id for exchange:
"+e.getIn().getMessageId());
String body = e.getIn().getBody(String.class);
System.out.println("Received exchange: " +body);
e.getIn().setHeader("CamelSmppRegisteredDelivery",new
Byte("1"));
//e.getIn().setHeader("CamelSmppDestAddr",listNum.pop());
e.getIn().setBody("New Data. This it it. ");
}
}).to("smpp://smppclient1@localhost:2775?password=password&enquireLinkTimer=3000&transactionTimer=5000"
+ "&systemType=producer");
from("smpp://smppclient1@localhost:2775?password=password&enquireLinkTimer=3000&transactionTimer=5000"
+ "&systemType=consumer").to("file://C:/test");
}
});
--
View this message in context: http://camel.465427.n5.nabble.com/SMPP-How-to-receive-delivery-receipt-from-smsc-as-producer-tp4359338p5752938.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: SMPP How to receive delivery receipt from smsc as producer?
Posted by viezz <vi...@gmail.com>.
I'm sorry my phone was broken for a week so i don't receive any emails, and it's been a while since i used camel smpp.
Sent from my iPhone
> On 7 Jul 2014, at 05.15 PM, "baMufu [via Camel]" <ml...@n5.nabble.com> wrote:
>
>
> baMufu wrote
> Who would u mind sharing your code on how u managed to get response from the SMSC. Below is my code.
> from("test-jms:queue:test.queue").process(new Processor() {
>
> public void process(Exchange e) {
>
> System.out.println("Received id for exchange: "+e.getIn().getMessageId());
> String body = e.getIn().getBody(String.class);
> System.out.println("Received exchange: " +body);
> e.getIn().setHeader("CamelSmppRegisteredDelivery",new Byte("1"));
> //e.getIn().setHeader("CamelSmppDestAddr",listNum.pop());
> e.getIn().setBody("New Data. This it it. ");
> }
> }).to("smpp://smppclient1@localhost:2775?password=password&enquireLinkTimer=3000&transactionTimer=5000"
> + "&systemType=producer");
>
> from("smpp://smppclient1@localhost:2775?password=password&enquireLinkTimer=3000&transactionTimer=5000"
> + "&systemType=consumer").to("file://C:/test");
>
> }
>
> });
> The LOOPBACK service of the simulator did the magic.
>
> If you reply to this email, your message will be added to the discussion below:
> http://camel.465427.n5.nabble.com/SMPP-How-to-receive-delivery-receipt-from-smsc-as-producer-tp4359338p5753462.html
> To unsubscribe from SMPP How to receive delivery receipt from smsc as producer?, click here.
> NAML
--
View this message in context: http://camel.465427.n5.nabble.com/SMPP-How-to-receive-delivery-receipt-from-smsc-as-producer-tp4359338p5753463.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: SMPP How to receive delivery receipt from smsc as producer?
Posted by baMufu <si...@gmail.com>.
baMufu wrote
> Who would u mind sharing your code on how u managed to get response from
> the SMSC. Below is my code.
> from("test-jms:queue:test.queue").process(new Processor() {
>
> public void process(Exchange e) {
>
> System.out.println("Received id for exchange:
> "+e.getIn().getMessageId());
> String body = e.getIn().getBody(String.class);
> System.out.println("Received exchange: " +body);
> e.getIn().setHeader("CamelSmppRegisteredDelivery",new
> Byte("1"));
> //e.getIn().setHeader("CamelSmppDestAddr",listNum.pop());
> e.getIn().setBody("New Data. This it it. ");
> }
>
> }).to("smpp://smppclient1@localhost:2775?password=password&enquireLinkTimer=3000&transactionTimer=5000"
> + "&systemType=producer");
>
>
> from("smpp://smppclient1@localhost:2775?password=password&enquireLinkTimer=3000&transactionTimer=5000"
> + "&systemType=consumer").to("file://C:/test");
>
> }
>
> });
The LOOPBACK service of the simulator did the magic.
--
View this message in context: http://camel.465427.n5.nabble.com/SMPP-How-to-receive-delivery-receipt-from-smsc-as-producer-tp4359338p5753462.html
Sent from the Camel - Users mailing list archive at Nabble.com.