Thanks. After I have extracted it, how will I pass it on the application? On Thu, Nov 19, 2015 at 11:04 PM, Lamasuta, Franck, Vodafone Automotive < franck.lamas...@vodafonetelematics.com> wrote:
> Hi Hamza, > > > > In your specific case, I think you should set this to retrieve the message > id from the XML response: > > *generic-foreign-id-regex = > "<response_text>Successful:([0-9]+)</response_text>"* > > > > Regards, > > Franck > > > > > > *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of * > ha...@aeon.pk > *Sent:* Wednesday, November 18, 2015 1:02 PM > *To:* kannel users > *Subject:* Parsing DLR from HTTP SMSC > > > > Hi, > > > > I am hitting an HTTP SMSC with this configuration: > > > > group = smsc > smsc = http > smsc-id = abc > system-type = generic > port = 13001 > send-url = "http://XXX" > status-success-regex = "Successful" > status-permfail-regex = "Invalid" > status-tempfail-regex = "Expired" > generic-foreign-id-regex = "<id>(.+)</id>" > generic-param-from = "phoneNumber" > generic-param-to = "shortCode" > generic-message-sent = "Message sent with ID: %I" > generic-status-sent = 200 > generic-status-error = 404 > > > > And getting following response in XML: > > > > <response_to_browser> > > <response_id>0</response_id> > > <response_text>Successful:2482493</response_text> > > </response_to_browser> > > > > Can someone tell me how to pick up DLR from this response via any config > parameter? Is this number 2482493 the DLR ID? How will I map it to my > request? > > > > Thanks, > > Hamza > > > This message and any files or documents attached are strictly confidential > or otherwise legally protected. It is intended only for the individual or > entity named. If you are not the named addressee or have received this > email in error, please inform the sender immediately, delete it from your > system and do not copy or disclose it or its contents or use it for any > purpose. Please also note that transmission cannot be guaranteed to be > secure or error-free. >