I have used send-sms with the script you mentionned and I finally got it working. I have found that if you do not set "preferred-smsc-id" in the "smsc" group it will always load balance between differents smscs. So my configuration is like this :
group = smsc smsc-id = A preferred-smsc-id = A denied-smsc-id = B,C group = smsc smsc-id = B preferred-smsc-id = B denied-smsc-id = A,C group = sendsms-user username = pushA password = passA forced-smsc = A And I use this url : http://<kannelhost>:<sendsmsport>/cgi-bin/sendsms?user=pushA&pass=passA&to=<urlencode(msisdn)>&udh=%06%05%04%0B%84%23%F0&text=%1B%06%01%AE%02%05%6A%00%45%C6%0C%03<urlencode(link)>%00%01%03<urlencode(title)>+%3F%00%01%01 Thank you very much for your help! Arnaud -----Message d'origine----- De : Juan Nin [mailto:[EMAIL PROTECTED] Envoyé : jeudi 15 février 2007 18:37 À : Arnaud de Saint-Alary Cc : [email protected] Objet : Re: RE : RE : Random SMSC used for push waps Here you got Alejandro Guerrieri's PHP way of doing it via sendsms: http://permalink.gmane.org/gmane.comp.mobile.kannel.user/6618 regards, Juan Arnaud de Saint-Alary wrote: >Sending the push wap via the sendsms-user would be a good solution. >But how do you encode the push wap ? Do you have a sample request ? > >Thanks for your help. > > >-----Message d'origine----- >De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Envoyé : jeudi 15 février 2007 17:30 >À : Arnaud de Saint-Alary; [email protected] >Objet : Re: RE : Random SMSC used for push waps > >ummm > >im lost here > >i do send wap push via the sendsms-user :/ > >did you try to use the smsc parameter in the request >after you set the denied-smsc-id ? > >in fact, i had such situation today, >because i had to use the modem smsc, instead the smpp smscs i have > >so after setting the force-smsc, denied-smsc-id and the proper value for the >smsc parameter, >it worked > >in all the smpp smsc groups i sed the denied-smsc-id to the id of the modem >smsc > >and in the request i set the smsc parameter to the name of the modem smsc ... > > >seik > > > > > >On Thu, Feb 15, 2007 at 04:55:12PM -0400, Arnaud de Saint-Alary wrote: > > >>Thank you for your quick replies. >>But I do not have any sendsms-user group as I only send wap push and it >>requires a wap-push-user instead. >>I have tried the denied-smsc-id options but it does not change anything >> >>-----Message d'origine----- >>De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >>Envoyй : jeudi 15 fйvrier 2007 15:44 >>А : Arnaud; [email protected] >>Objet : Re: Random SMSC used for push waps >> >>set several sendsms-user groups and theere set >>default-smsc and >>default-smsc >> >>and, >> >>use denied-smsc-id in the smsc group settings and use smsc parameter in the >>WAP PUSH request >>i.e. ?to={$msisdn}&from={$sender}&smsc=A >> >>smsc-id = A >>denied-smsc-id = C,B >> >>smsc-id = B >>denied-smsc-id = A,C >> >>etc >> >>check the proper names of the parameters in the manual :/ >> >>cheers >> >>seik >> >> >>On Thu, Feb 15, 2007 at 03:08:56PM -0400, Arnaud wrote: >> >> >>> Hi, >>> >>> I have 3 different SMSC connections (group) in my config but I need >>> all my push waps to go through a particular SMSC. >>> >>> I have tried both at the same time: >>> >>> - set a "X-Kannel-SMSC" header with the corresponding smsc id while >>> submitting the request >>> >>> - set the "default-smsc" in "ppg" group >>> >>> - set the "forced-smsc" in the "wap-push-user" >>> >>> >>> But none of it worked. It just keeps picking SMSCs randomly. When it >>> chooses the right SMSC it sends the push wap, but I could not find >>> anyway to make sure Kannel uses this correct SMSC >>> >>> >>> Any help would be really appreciated. >>> >>> Thanks in advance, >>> >>> >>> Arnaud >>> >>> > > > > >
