Manual dialing phone for 1 call only?

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Manual dialing phone for 1 call only?

Postby junaidali15 » Fri Mar 24, 2023 5:37 pm

So i am using vicidial installed with asterisk 13 at centos 7
I added some carriers and created phone now i am able to dial number directly from phone which is going through carrier withour using web.. but i want to limit simultaneous calls on phone how can i do that and change simultaneous call limits on phone not carrier.. lets say phone is logged on 2 different pcs and i want if 1 phone is on call another cannot dial call?
junaidali15
 
Posts: 9
Joined: Tue Mar 07, 2023 4:12 am

Re: Manual dialing phone for 1 call only?

Postby jamiemurray » Mon Mar 27, 2023 4:59 am

You would need to create a phone template and define the parameter "call-limit"

Note in the template, you will have to include all settings for the phone, including secret (registration password), context, codecs etc.
If you look in /etc/asterisk/sip-vicidial.conf for the extension in question, you could copy what's there for that extension and just add call-limit at the bottom.

Once you've created your phone template, assign the phone to that template and test after the top of the next minute.

Just in case you'll be transferring calls from this extension, call-limit=1 will prevent warm transfers since this would involve a second call.
Last edited by jamiemurray on Thu Apr 13, 2023 7:21 am, edited 1 time in total.
Skype: live:support_71847 | Tel: (US) +1 646 647 8850 (CA) +1 613 900 6456 (MX) +52 55 9990 3550 (UK) +44 1324 285022 (ES) +34 922 937 384
Managed Hosting - No tech skills required | VoIP Termination & DID numbering | https://jmurraysolutions.com
jamiemurray
 
Posts: 172
Joined: Fri Jan 11, 2013 4:12 pm
Location: Tenerife, Canary Islands

Re: Manual dialing phone for 1 call only?

Postby junaidali15 » Thu Apr 13, 2023 6:16 am

jamiemurray wrote:You would need to create a phone template and define the parameter "call-limit"

Note in the template, you will have to include all settings for the phone, including secret (registration password), context, codecs etc.
If you look in /etc/asterisk/extensions-vicidial.conf for the extension in question, you could copy what's there for that extension and just add call-limit at the bottom.

Once you've created your phone template, assign the phone to that template and test after the top of the next minute.

Just in case you'll be transferring calls from this extension, call-limit=1 will prevent warm transfers since this would involve a second call.


i tried using one but after using it its giving me registration error 403.. can you paste any sample template which i can use?
junaidali15
 
Posts: 9
Joined: Tue Mar 07, 2023 4:12 am

Re: Manual dialing phone for 1 call only?

Postby jamiemurray » Thu Apr 13, 2023 7:19 am

Here's an example

Remember that the registration password and phone context on the vicidial admin page will be ignored and it's whatever is in the template that will apply
So registration password will be whatever the "secret" is in the template
and phone context will be whatever the "context" is in the template.

Note you may have to take g729 out if you don't have the codec installed.

Code: Select all
secret=[REGISTRATION PASSWORD]
context=["default" or "defaultlog" or whatever custom dialplan context you have set up for your phones]
type=friend
host=dynamic
disallow=all
allow=g729,alaw,ulaw
call-limit=1
rtcp_mux=yes
directmedia=no
Skype: live:support_71847 | Tel: (US) +1 646 647 8850 (CA) +1 613 900 6456 (MX) +52 55 9990 3550 (UK) +44 1324 285022 (ES) +34 922 937 384
Managed Hosting - No tech skills required | VoIP Termination & DID numbering | https://jmurraysolutions.com
jamiemurray
 
Posts: 172
Joined: Fri Jan 11, 2013 4:12 pm
Location: Tenerife, Canary Islands


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 87 guests