Page 1 of 1

Manual dialing phone for 1 call only?

PostPosted: Fri Mar 24, 2023 5:37 pm
by junaidali15
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?

Re: Manual dialing phone for 1 call only?

PostPosted: Mon Mar 27, 2023 4:59 am
by jamiemurray
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.

Re: Manual dialing phone for 1 call only?

PostPosted: Thu Apr 13, 2023 6:16 am
by junaidali15
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?

Re: Manual dialing phone for 1 call only?

PostPosted: Thu Apr 13, 2023 7:19 am
by jamiemurray
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