You can add a additional parameter called from  which will determine the 
sender of the sms. You'll also note that if you don't specify a sender 
in the http request then global sender is used. Also this value can be 
overridden in the sendsms-user group.  Hope it helps.


Otgonbayar Agvaan wrote:

>I have connected kannel to SMPP.
>
>I want to use several special numbers. I can send from any number. So, now I
>need to receive message on several special numbers and then I need redirect
>these depending on on what number I have recieved.
>When I send from mobile to special number 500 it is loged as following. 
>In the log:
>
>2002-09-23 16:33:21 [4] INFO: Starting to service <enebolgobi> from
><97699117144
>  
>
>>to <500>
>>    
>>
>2002-09-23 16:33:21 [8] DEBUG: HTTP: Opening connection to
>`192.168.2.2:8100' (f
>d=28).
>2002-09-23 16:33:21 [8] DEBUG: HTTP: Sending request:
>2002-09-23 16:33:21 [8] DEBUG: Octet string at 0x80e0ec0:
>2002-09-23 16:33:21 [8] DEBUG:   len:  141
>2002-09-23 16:33:21 [8] DEBUG:   size: 142
>2002-09-23 16:33:21 [8] DEBUG:   immutable: 0
>2002-09-23 16:33:21 [8] DEBUG:   data: 47 45 54 20 2f 72 65 64   GET /red
>2002-09-23 16:33:21 [8] DEBUG:   data: 69 72 65 63 74 6f 72 2f   irector/
>2002-09-23 16:33:21 [8] DEBUG:   data: 72 65 64 69 72 65 63 74   redirect
>2002-09-23 16:33:21 [8] DEBUG:   data: 6f 72 2e 6a 73 70 3f 73   or.jsp?s
>2002-09-23 16:33:21 [8] DEBUG:   data: 65 6e 64 65 72 3d 39 37   ender=97
>2002-09-23 16:33:21 [8] DEBUG:   data: 36 39 39 31 31 37 31 34   69911714
>2002-09-23 16:33:21 [8] DEBUG:   data: 34 26 74 65 78 74 3d 65   4&text=e
>2002-09-23 16:33:21 [8] DEBUG:   data: 6e 65 62 6f 6c 67 6f 62   nebolgob
>2002-09-23 16:33:21 [8] DEBUG:   data: 69 26 72 65 63 65 69 76   i&receiv
>2002-09-23 16:33:21 [8] DEBUG:   data: 65 72 3d 35 35 35 20 48   er=555 H
>2002-09-23 16:33:21 [8] DEBUG:   data: 54 54 50 2f 31 2e 31 0d   TTP/1.1.
>2002-09-23 16:33:21 [8] DEBUG:   data: 0a 48 6f 73 74 3a 20 31   .Host: 1
>2002-09-23 16:33:21 [8] DEBUG:   data: 39 32 2e 31 36 38 2e 32   92.168.2
>2002-09-23 16:33:21 [8] DEBUG:   data: 2e 32 3a 38 31 30 30 0d   .2:8100.
>2002-09-23 16:33:21 [8] DEBUG:   data: 0a 55 73 65 72 2d 41 67   .User-Ag
>2002-09-23 16:33:21 [8] DEBUG:   data: 65 6e 74 3a 20 4b 61 6e   ent: Kan
>2002-09-23 16:33:21 [8] DEBUG:   data: 6e 65 6c 20 31 2e 32 2e   nel 1.2.
>2002-09-23 16:33:21 [8] DEBUG:   data: 30 0d 0a 0d 0a            0....
>2002-09-23 16:33:21 [8] DEBUG: Octet string dump ends.
>
>You notice that message was sent from <97699117144> to <500>
>But in the get-url,  you see a different number 555 which is the
>global-sender in my config.
>
>My get-url is set in config:
>get-url =
>"http://192.168.2.2:8100/redirector/redirector.jsp?sender=%p&text=%a&receive
>r=%P"
>
>As I understand %P is receiver number, so it must be 500 in my case. But I
>see the globel sender number. What is the problem?
>
>Otgo,
>Ub,
>Mgl.
>
>  
>



Reply via email to