2011-09-13  Stipe Tolj  <stolj at kannel.org>
    * gw/smsc/smsc_http.c: fixed double hex encoding for system type 'kannel'
      and 'no-sep = yes'. Due that we manipulate the msg->sms.[udh|msg]data
      directly, and the msg is re-queued in case of a HTTP call failure we get
      perform the hex encoding again, which results in a truncated content.
      We need to perform the transcoding on a copy and keep the original.
      Thanks to Paulo Correia <paulo.correia at go4mobility dot com>.
      [Msg-Id: <4E6F3FF5.9000009@go4mobility.com>]


git-svn-id: https://svn.kannel.org/gateway/trunk@4925 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
    *  doc/userguide/userguide.xml, gw/smsc/smsc_smpp.c, gwlib/cfg.def: applied
       patch that allows setting of esm_class in SMPP module.
       Thanks to Alan McNatty <alan at catalyst.net.nz> for the patch.

git-svn-id: https://svn.kannel.org/gateway/trunk@4926 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
    * gw/smsc/smsc_at.c: fixed double reencoding issue when message retried
      again after the failure.

git-svn-id: https://svn.kannel.org/gateway/trunk@4927 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
2011-10-06  Stipe Tolj  <stolj at kannel.org>
    * gw/smsc/smsc_http.c: fix default DLR storing behaviour for 'generic' type.
      We shall always store the DLR temp data in a successful transmission,
      even if no 'generic-foreign-id-regex' is given. If it is given, then we
      try to regex scan it and use it for the DLR temp data, if not, then store
      our own UUID as reference ID of the message. This ensures generic behaves
      the same way as type kannel.


git-svn-id: https://svn.kannel.org/gateway/trunk@4928 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
* fixed changelog conflict

git-svn-id: https://svn.kannel.org/gateway/trunk@4929 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
    * gw/smsbox.c: fixed double charset processing for POST requests.
      This fixes #615.

git-svn-id: https://svn.kannel.org/gateway/trunk@4930 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
    * gw/smsbox.c:: Set charset to UTF-8 for POST requests.
      This fixes #614.
      Thanks Anders B for the patch.

git-svn-id: https://svn.kannel.org/gateway/trunk@4931 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
    * gw/smsc/smsc_smpp.c: fixed encoding of LATIN1 messages.
      This fixes #613.
      Thanks to Anders B for this patch.

git-svn-id: https://svn.kannel.org/gateway/trunk@4932 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
2011-10-11  Stipe Tolj  <stolj at kannel.org>
    * gw/smsc/smsc_smpp.c: moved .foreign_id injection from dlr_add() to the
      submit_sm_resp PDU handling code, otherwise we would ONLY see foreign IDs
      in the access-log IF DLR have been requested. Now we see them in any case.
    * gw/dlr.c: remove .foreign_id injection code in dlr_add(), due that this is
      the wrong place to do it. If the user didn't request a DLR, we still want
      to pickup the foreign ID and use it, at least in the access-log i.e.


git-svn-id: https://svn.kannel.org/gateway/trunk@4933 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
2011-10-11  Stipe Tolj  <stolj at kannel.org>
    * gw/smsc/smsc_smpp.c: moved .foreign_id injection from dlr_add() to the
      submit_sm_resp PDU handling code, otherwise we would ONLY see foreign IDs
      in the access-log IF DLR have been requested. Now we see them in any case.
    * gw/dlr.c: remove .foreign_id injection code in dlr_add(), due that this is
      the wrong place to do it. If the user didn't request a DLR, we still want
      to pickup the foreign ID and use it, at least in the access-log i.e.


git-svn-id: https://svn.kannel.org/gateway/trunk@4934 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
    * gwlib/log.[ch], gwlib/utils.[ch]: extracted backtrace output into extra
      function. Added fatal signal handler in order to be able to trace segfaults.

git-svn-id: https://svn.kannel.org/gateway/trunk@4935 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
2011-10-13  Stipe Tolj  <stolj at kannel.org>
    * configure[.in]: need to test for <sys/ucontext.h>, tbough it is defined 
      in IEEE Std 1003.1-2001/Cor 2-2004 it is not fully portable, i.e. OpenBSD
      and Cygwin lack the functionality.
    * gw-config.h.in: add HAVE_UCONTEXT macro.
    * gw/shared.c: add header include to fix implicite declaration warning. NLC.
    * gwlib/utils.c: include <sys/ucontext.h> only if the system has user 
      context support, fix minor compiler warning. 


git-svn-id: https://svn.kannel.org/gateway/trunk@4936 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
    * wmlscript/wsgram.y: fixed compilation error.

git-svn-id: https://svn.kannel.org/gateway/trunk@4937 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
Revert "2011-10-11  Stipe Tolj  <stolj at kannel.org>"

This reverts commit ae19e2cfd94937fddc23d5e8e1053c10a1c41d31.

git-svn-id: https://svn.kannel.org/gateway/trunk@4938 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
    * reverted commited that moved .foreign_id injection from dlr_add() because
      it breaks other SMSC module as SMPP.
Revert "2011-10-11  Stipe Tolj  <stolj at kannel.org>"

This reverts commit dd2b717336ca2d01528d6038e669a8f4b77bba30.

Conflicts:

	ChangeLog

git-svn-id: https://svn.kannel.org/gateway/trunk@4939 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
    * gwlib/octstr.c, gwlib/octstr.c.debug: fixed segfault on some systems where
      long overflow occurs. This fixes #623.
      Thanks to Lutalo Joseph Willrich for patch.

git-svn-id: https://svn.kannel.org/gateway/trunk@4940 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
2012-01-07 Andreas FInk <afink at smsrelay.com> 
    * gw/smsc/smsc_http.c: added new parameter for DLR named dlr-err which can
      contain a network error code which is parsed the same way the err: field
      in SMPP delivery reports are parsed.
    * configure.in
      Added support for MacOS X 10.7 Lion SDK




git-svn-id: https://svn.kannel.org/gateway/trunk@4941 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
reverted modified file by error and typo



git-svn-id: https://svn.kannel.org/gateway/trunk@4942 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
2011-01-07  Stipe Tolj  <stolj at kannel.org>
    * gw/smsc/smsc_http.c: slight code change from Andrea's previous commit. We
      don't need to allocate more variables on the stack as we have a temp 
      Ocstr* already. NLC.


git-svn-id: https://svn.kannel.org/gateway/trunk@4943 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d
fix for metadata on http for dlr-err parameter



git-svn-id: https://svn.kannel.org/gateway/trunk@4944 a7d65f57-29cd-40c9-b71e-ebca51ad1b1d