HI, have the same problem. How did you solve it? MT
On Mon, Feb 24, 2014 at 12:27 PM, MK <m...@rhytha.com> wrote: > Sorry if its unclear. We are actually connecting to a external SMPP server > provided by the network operator. We have two short code service numbers. > We are using a single API to get the SMS and route them to the appropriate > workflows. > > Thank you for your suggestion, I tried with %q and %Q but we are getting > the same user number, the url i used is > > group = sms-service > keyword = default > post-url = "http://xxxxxxx/sms/receiver.php?sms=%a&mn=%p&rmn=%q" > > in kannel.conf, but getting the same reciever number but not the SMS short > code service number the SMS is sent to. > > thank you > > -MK > > > > > On Thu, Feb 20, 2014 at 5:56 AM, GMail <mohammedsl...@gmail.com> wrote: > >> If I understood ur question you might want to check %q or %Q in the >> get-url of the smsbox service >> >> *From: *MK >> *Sent: *Wednesday, February 19, 2014 16:17 >> *To: *users@kannel.org >> *Subject: *Find the SMS short code to which the SMS is sent. >> >> >> Hi, >> >> We have setup Kannel and its working fine when we send and recieve >> messages. But we have two short codes 16562 and 16563, we need to do some >> workflow based on which SC the message is sent. Both the SMS land in the >> same port for us, so we are not able to distinguish between the two. >> >> I tried with %P option but its showing our port number (eg.9501), so can >> any one suggest the best way to find out which short code the SMS has been >> sent. I ran a tshark and i can see that the external smpp server is sending >> the short code. >> >> Operation: Submit_sm - resp (0x80000004) >> Result: Ok (0x00000000) Sequence #: 2754 >> Message id.: 518df5cf >> Short Message Peer to Peer, Command: Deliver_sm, Seq: 3942, Len: 187 >> Length: 187 >> Operation: Deliver_sm (0x00000005) >> Sequence #: 3942 Service type: (Default) >> Type of number (originator): International (0x01) >> Numbering plan indicator (originator): ISDN (E163/E164) (0x01) >> Originator address: xxxxx860052 >> Type of number (recipient): National (0x02) >> Numbering plan indicator (recipient): ISDN (E163/E164) (0x01) >> Recipient address: 16562 >> Messaging mode: Default SMSC mode (0x00) ..00 01.. = >> Message type: Short message contains SMSC Delivery Receipt (0x01) 00.. >> .... = GSM features: No specific features selected (0x00) Protocol id.: >> 0x00 Priority level: GSM: None ANSI-136: Bulk IS-95: Normal (0x00) >> Scheduled delivery time: Immediate delivery Validity period: SMSC default >> validity period >> >> thank you >> >> MK >> >> >