Hello list,
I'm using Kamailio to balance SIP request between two Asterisk. I have a problem with Parking calls using Asterisk Application. When a user parking a call, some times can't pick up parked call because the call to pick up the Call go to the other Asterisk.
I'm using the 1 algorithm "hash over from URI" without success.
Any hint?
You're going to have to figure out some way to tell Kamailio where the parked call is, or keep the parked calls on one Asterisk server specially for that purpose.
On Apr 25, 2024, at 4:17 PM, Social Boh via sr-users sr-users@lists.kamailio.org wrote:
Hello list,
I'm using Kamailio to balance SIP request between two Asterisk. I have a problem with Parking calls using Asterisk Application. When a user parking a call, some times can't pick up parked call because the call to pick up the Call go to the other Asterisk.
I'm using the 1 algorithm "hash over from URI" without success.
Any hint?
--
I'm SoCIaL, MayBe
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
On Thu, 25 Apr 2024, at 21:17, Social Boh via sr-users wrote:
Hello list,
I'm using Kamailio to balance SIP request between two Asterisk. I have a problem with Parking calls using Asterisk Application. When a user parking a call, some times can't pick up parked call because the call to pick up the Call go to the other Asterisk.
I'm using the 1 algorithm "hash over from URI" without success.
This is an Asterisk limitation/frustration really. Queues, Parking and Conferences need to run on the same server instance. So for a particular "tenant", for it to work you need to ensure that all parking for this tenant is directed to the same server. This also applies to any conference or queue.
If your individual endpoints can be recognised as being the same "tenant", try hashing over that tenant string and they will all get directed to the same server.
If the above is not possible, but maybe the number being dialled is 1:1 with the server (parking lot in your example) then you could hash over the $tU and achieve the same result.
In a nutshell, you need to find some common way that you can identify calls that should be grouped together, and then hash over that.
Hope this helps.
-Barry
Any hint?
--
I'm SoCIaL, MayBe
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
Thank's all for your replies.
The problem is I can't find a pattern to do this. The Asterisk configuration is multitenant using chan_sip Channel. The customers parking the calls using the transfer sipphone button and pick up using BLF or calling the parking slot.
Each tenant have first 5 digits identifies him and then 3 digits more identifies each endpoint.
I tried using hash from URI and other configurations without success.
Regards
--- I'm SoCIaL, MayBe
El 25/04/2024 a las 3:44 p. m., Barry Flanagan escribió:
On Thu, 25 Apr 2024, at 21:17, Social Boh via sr-users wrote:
Hello list,
I'm using Kamailio to balance SIP request between two Asterisk. I have a problem with Parking calls using Asterisk Application. When a user parking a call, some times can't pick up parked call because the call to pick up the Call go to the other Asterisk.
I'm using the 1 algorithm "hash over from URI" without success.
This is an Asterisk limitation/frustration really. Queues, Parking and Conferences need to run on the same server instance. So for a particular "tenant", for it to work you need to ensure that all parking for this tenant is directed to the same server. This also applies to any conference or queue.
If your individual endpoints can be recognised as being the same "tenant", try hashing over that tenant string and they will all get directed to the same server.
If the above is not possible, but maybe the number being dialled is 1:1 with the server (parking lot in your example) then you could hash over the $tU and achieve the same result.
In a nutshell, you need to find some common way that you can identify calls that should be grouped together, and then hash over that.
Hope this helps.
-Barry
Any hint?
--
I'm SoCIaL, MayBe
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
26 Apr 2024 19:14:53 Social Boh via sr-users sr-users@lists.kamailio.org:
Thank's all for your replies.
The problem is I can't find a pattern to do this. The Asterisk configuration is multitenant using chan_sip Channel. The customers parking the calls using the transfer sipphone button and pick up using BLF or calling the parking slot.
Each tenant have first 5 digits identifies him and then 3 digits more identifies each endpoint.
You need to split out the 5 digit tenant string, set a variable and hash on that.
Have a look at the Transformations docs - like **{s.substr,offset,length}**
-Barry
I tried using hash from URI and other configurations without success.
Regards
I'm SoCIaL, MayBe
El 25/04/2024 a las 3:44 p. m., Barry Flanagan escribió:
On Thu, 25 Apr 2024, at 21:17, Social Boh via sr-users wrote:
Hello list,
I'm using Kamailio to balance SIP request between two Asterisk. I have a problem with Parking calls using Asterisk Application. When a user parking a call, some times can't pick up parked call because the call to pick up the Call go to the other Asterisk.
I'm using the 1 algorithm "hash over from URI" without success.
This is an Asterisk limitation/frustration really. Queues, Parking and Conferences need to run on the same server instance. So for a particular "tenant", for it to work you need to ensure that all parking for this tenant is directed to the same server. This also applies to any conference or queue.
If your individual endpoints can be recognised as being the same "tenant", try hashing over that tenant string and they will all get directed to the same server.
If the above is not possible, but maybe the number being dialled is 1:1 with the server (parking lot in your example) then you could hash over the $tU and achieve the same result.
In a nutshell, you need to find some common way that you can identify calls that should be grouped together, and then hash over that.
Hope this helps.
-Barry
Any hint?
I'm SoCIaL, MayBe
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
-Barry Flanagan
In addition to the other comments, you will have the same issue with conference rooms, if you support that.
On Thu, Apr 25, 2024 at 4:45 PM Social Boh via sr-users < sr-users@lists.kamailio.org> wrote:
Hello list,
I'm using Kamailio to balance SIP request between two Asterisk. I have a problem with Parking calls using Asterisk Application. When a user parking a call, some times can't pick up parked call because the call to pick up the Call go to the other Asterisk.
I'm using the 1 algorithm "hash over from URI" without success.
Any hint?
--
I'm SoCIaL, MayBe
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: