Disable outbound calls from softphone

Hi Team ,
We are using own application for call integrated with asterisk .
Some of them dial sip from soft phone.
How to disable the dial option from soft phone manually . pls help

Thanks in advance

Easiest way would be to disable the call rights within Asterisk for the clients which should have restricted rights. You may achieve this by either configuring different contexts for different clients or - when eg using AMI Originate - by inspecting the Event-Source (eg as IP-Address) and associating the call-rights to the Event-Source.
Disabling any functionality by dialrules or other things in the clients may work but will always depend on the clients You’re using.

Hi abw1oim ,
We are using pami for call oringate .
Can you pls tell me which config have to change im not expert in php . Cont get you

our aim is to disable dial outbound calls option via soft phone .

As Olaf suggested you can implement by configuring different contexts…

Create a context which you will point your device to call through. So when anyone tries to call directly from the device they will hear a message… for example.

; not auth message for any calls through a phone with this context
exten => _X!,1,Answer()
exten => _X!,n,Wait(1)
exten => _X!,n,Playback(not-auth-pstn)
exten => _X!,n,Hangup()
(From within this context you may also want to add in numbers that you allow to be rung, like emergency services, etc)

Then create a context that you will use in your AMI origination. Which can only be used if you are making a call through your application.

exten => _X!,1,Dial(${carrier}/${EXTEN},30,Tor)
exten => _X!,n,Hangup()

Thank you @ progressaurus