If server A is down, request is sent to server B
My request is like :
actionid: 1394553381.47397
action: QueuePause
Interface: SIP/300
Queue: zTest
Paused: false
ProxyKey: xxxxxxx
Server: 127.0.0.1
Astmanproxy logs :
Mar 11 12:01:10: connect_nonb: error 103, closing old fd and grabbing a new one...
Mar 11 12:01:10: [email protected]: Connect failed, Retrying (1) Software caused connection abort [103]
Mar 11 12:01:12: [email protected]: Connect failed, Retrying (1) Connection refused [111]
Mar 11 12:01:12: is_encrypted: 0
Mar 11 12:01:12: Connection received from 127.0.0.1
Mar 11 12:01:12: Set 127.0.0.1 input format to standard
Mar 11 12:01:12: Set 127.0.0.1 output format to standard
Mar 11 12:01:12: calling standard_read...
Mar 11 12:01:12: Returning standard block of 5 lines, res 1
Mar 11 12:01:12: standard_read result = 1
Mar 11 12:01:12: ValidateAction called for fd: 9, outbound
Mar 11 12:01:12: Message validated - no filtering
Mar 11 12:01:12: set destination: 127.0.0.1
Mar 11 12:01:12: writing block to 172.16.0.249
(...)
Config :
host = 127.0.0.1, 5038, ami_user, ami_password, off, off
host = 172.16.0.249, 5038, ami_user, ami_password, off, off
I think that if "Server" is not given in request, it could be OK to send it to the next server if the first one is down, but when "Server" is given, it should return an error, shouldn't it ?
PS : I use the master branch, up to date.
Hi,
I agree with you, but that is part of the code that I've never touched, so I am not sure how easily you will achieve it! For a start it would rely on an ordered list of server hosts so that you have a reliable method of walking the list in a definite order.
Regards, Steve
On 11 March 2014 16:09, joserwan [email protected] wrote:
My request is like :
actionid: 1394553381.47397 action: QueuePause Interface: SIP/300 Queue: zTest Paused: false ProxyKey: xxxxxxx Server: 127.0.0.1
Astmanproxy logs :
Mar 11 12:01:10: connect_nonb: error 103, closing old fd and grabbing a new one... Mar 11 12:01:10: [email protected]: Connect failed, Retrying (1) Software caused connection abort [103] Mar 11 12:01:12: [email protected]: Connect failed, Retrying (1) Connection refused [111] Mar 11 12:01:12: is_encrypted: 0 Mar 11 12:01:12: Connection received from 127.0.0.1 Mar 11 12:01:12: Set 127.0.0.1 input format to standard Mar 11 12:01:12: Set 127.0.0.1 output format to standard Mar 11 12:01:12: calling standard_read... Mar 11 12:01:12: Returning standard block of 5 lines, res 1 Mar 11 12:01:12: standard_read result = 1 Mar 11 12:01:12: ValidateAction called for fd: 9, outbound Mar 11 12:01:12: Message validated - no filtering Mar 11 12:01:12: set destination: 127.0.0.1 Mar 11 12:01:12: writing block to 172.16.0.249 (...)
Config :
host = 127.0.0.1, 5038, ami_user, ami_password, off, off host = 172.16.0.249, 5038, ami_user, ami_password, off, off
I think that if "Server" is not given in request, it could be OK to send it to the next server if the first one is down, but when "Server" is given, it should return an error, shouldn't it ?
Reply to this email directly or view it on GitHubhttps://github.com/davies147/astmanproxy/issues/6 .