Hi guys,
Great to meet many of you this week at VON and looking forward to getting together again soon.
We have a question about the gateway aspect which is part of the LCR module. We are needing to route to various carriers which the module handles great, but we are trying to figure out if there is an elegant way to handle the situation where a carrier provides us with multiple proxies. For instance if carrier A provides proxy1 and proxy2, carrier B etc.... When we get the AVP back which will be our stack to do serial forking the sequence is dependent on the proxy response (or lack of response)
For instance if we get a 400 error back from either proxy there isn't much use in trying the other proxy we need to more along to a completely different carrier. For 500 errors or time outs will continue on using the same carrier. The obvious ways to do this: to abandon the gateway aspect all together and just build logic which we could use to process what would appear to be a multi demential array instead of single diminutional array. I'm just writing to see if there is a nice out of the box way to handle this scenario, also if not, is this something which developers would be interested in having added to the module?
Cheers
Miles Scruggs Wide Ideas | Operations | miles.scruggs@wideideas.com | 509.525.6522 ext 4880
Hi Miles,
It was nice meeting you at VoN.
With respect to your question, there are a few options. First option would be to mess with the avp. As soon as you get a reply back that should discard the entire gateway group, remove all the remaining gateway (belonging to that particular group) from the avp before calling next_gw(). The second option would be to create a new function: next_gw_group().
This is just the top of my head (so there might be some details that needs to be worked out).
On the other hand, there is a new module called carrierroute: http://www.openser.org/docs/modules/1.3.x/carrierroute.html Check this module out. It may provide some extra flexibility.
Regards, Ovidiu Sas
On 11/2/07, Miles Scruggs miles.scruggs@wideideas.com wrote:
Hi guys,
Great to meet many of you this week at VON and looking forward to getting together again soon.
We have a question about the gateway aspect which is part of the LCR module. We are needing to route to various carriers which the module handles great, but we are trying to figure out if there is an elegant way to handle the situation where a carrier provides us with multiple proxies. For instance if carrier A provides proxy1 and proxy2, carrier B etc.... When we get the AVP back which will be our stack to do serial forking the sequence is dependent on the proxy response (or lack of response)
For instance if we get a 400 error back from either proxy there isn't much use in trying the other proxy we need to more along to a completely different carrier. For 500 errors or time outs will continue on using the same carrier. The obvious ways to do this: to abandon the gateway aspect all together and just build logic which we could use to process what would appear to be a multi demential array instead of single diminutional array. I'm just writing to see if there is a nice out of the box way to handle this scenario, also if not, is this something which developers would be interested in having added to the module?
Cheers
Miles Scruggs Wide Ideas | Operations | miles.scruggs@wideideas.com | 509.525.6522 ext 4880
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users