sanjay.rajdev at featherstoneinformatics.com
2007-Nov-29 19:17 UTC
[asterisk-users] Transfering IAX context
Hello Everyone, I have a 2 Asterisk Servers, one in US and another in India. Once someone from US calls, call hit US server and then is forwarded to India which then is answered by someone. i.e. Caller --> US Asterisk Server --> India Asterisk Server --> Employee(India) The Employee in India decides that the call was for Employee in US, so he transfer the call to the employee in US. i.e. Caller --> US Asterisk Server --> India Asterisk Server --> Employee(India) --> India Asterisk Server --> US Asterisk Server --> Employee (US) OR Caller --> US Asterisk Server --> India Asterisk Server --> US Asterisk Server --> Employee (US) (Not sure which explanation is correct as per asterisk working, but hopefully should be the second.) The way this type of communication traverse is that the call has to come to India and the reverted back to US. Is their a way that when a Employee in India transfers back the call to US Asterisk Server, the Indian server should completely removed from the picture. This would save our Bandwidth utilization. i.e. flow becomes :: Caller --> US Asterisk Server --> Employee (US) Regards, Sanjay.
sanjay.rajdev at featherstoneinformatics.com wrote:> Hello Everyone, > > I have a 2 Asterisk Servers, one in US and another in India. > Once someone from US calls, call hit US server and then is forwarded to India which then is answered by someone. > i.e. > Caller --> US Asterisk Server --> India Asterisk Server --> Employee(India) > > > The Employee in India decides that the call was for Employee in US, so he transfer the call to the employee in US. > i.e. > Caller --> US Asterisk Server --> India Asterisk Server --> Employee(India) --> India Asterisk Server --> US Asterisk Server --> Employee (US) > OR > Caller --> US Asterisk Server --> India Asterisk Server --> US Asterisk Server --> Employee (US) > > (Not sure which explanation is correct as per asterisk working, but hopefully should be the second.) > > > The way this type of communication traverse is that the call has to come to India and the reverted back to US. > Is their a way that when a Employee in India transfers back the call to US Asterisk Server, the Indian server should completely removed from the picture. This would save our Bandwidth utilization. > i.e. flow becomes :: > Caller --> US Asterisk Server --> Employee (US) >Usually, yes, the call traffice will get rerouted from one server to another. If you watch your console on the US server you should even be able to see this happen. This can even work in a 3 server setup where server A calls B and then B transfers to C. Server A will try to contact server C directly and if it can, drop the communications between A and B and B and C. Not sure if it works the same way with SIP. -Dave