How to get the location of the caller? I want to route the calls to asterisk server located in different locations? When User1 is in state A, the call should go the asterisk serverA. When the same user moves to stateZ, the call should go to the asterisk serverZ. How to acheive this requirement?
On Tuesday 21 May 2024 at 10:09:27, prathibhab via Asterisk Community wrote:
How to get the location of the caller? I want to route the calls to
asterisk server located in different locations? When User1 is in state A,
the call should go the asterisk serverA. When the same user moves to
stateZ, the call should go to the asterisk serverZ. How to acheive this
requirement?
I assume you’re talking about North America here by your use of the word
“state”, so I would start with something such as (this is just one example):
and use that as the basis for deciding “if someone calls from here, I need to
route them to there” (I have no idea how many “there” locations you have).
I’m not entirely sure what you mean by “when the user moves to state Z” - if
you’re talking about mobile (GSM / “cell”) phones then you have no chance of
finding out where they are.
Assuming you’re talking about geographic area codes, then personally I’d be
inclined to do this using an ODBC lookup, passing in the caller’s area code,
and getting back from the DB query the name of the server you want to pass
that call onto.
This would mean you have a pretty efficient lookup process, it can be
centralised across all your Asterisk servers (including as a distributed /
replicated database), and it’s competely dynamic - any changes in the DB will
be immediately reflected in functionality.
Antony.
–
I love deadlines. I love the whooshing noise they make as they go by.
-
Douglas Noel Adams
Please reply to the list; please *don't* CC me.
India also has states, and that would be consistent with the OPs name. The same principle applies, but with a different area code database.
In, for example the UK, you can’t even tell the home area (or the current operator). I don’t know whether India works that way. (GSM should be in quotes, as it has, largely, been retired.)
I am talking about data calls.
Nor are we.
On Tuesday 21 May 2024 at 11:42:53, prathibhab via Asterisk Community wrote:
I am not talking about data calls.
I’m not entirely sure what you mean by that, but I was talking about “normal
phone calls where a person dials a number using a landline telephone and that
call then comes in to one of your Asterisk servers”.
Antony.
–
If you ask a Yorkshireman whether he knows the German word for “egg”,
don’t be surprised if he just smiles and says “Aye”.
Please reply to the list;
please *don't* CC me.
It was a typo. I am talking about data calls.
On Tuesday 21 May 2024 at 12:14:59, prathibhab via Asterisk Community wrote:
It was a typo. I am talking about data calls.
Please define precisely what you mean by that.
Antony.
–
It may not seem obvious, but (6 x 5 + 5) x 5 - 55 equals 5!
Please reply to the list;
please *don't* CC me.
It is about browser to browser calls based on WebRTC.
On Tuesday 21 May 2024 at 12:42:38, prathibhab via Asterisk Community wrote:
It is about browser to browser calls based on WebRTC.
In that case you need some sort of GeoIP database, but beyond that, I have no
idea how to do this sort of thing, and specifically not in Asterisk.
Hopefully someone else can help.
Antony.
–
I bought a book on memory techniques, but I’ve forgotten where I put it.
Please reply to the list;
please *don't* CC me.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.