1. Brekeke Product Name and version: 2.0.7.2
2. Java version:Latest
3. OS type and the version: Win2k3 Server
4. Your problem:
I have the following dialplan (in this specific order):
Matching:
$request=^INVITE
Deploy:
To=(.+)
$session=com.test.dialplan.plugin.adpfordialplan
$continue=true
Matching:
$request=^INVITE
$dialplan.findtonumber( To )=(.+)
Deploy:
$target="someIP":5060
To=sip:%1@"someIP"
Both the session and the dialplan plugin works very good.
A little brief information is needed to understand my problem:
The session plugin is primarily for accounting. It checks the callers current balance within our system and sets a scheduled timeout for the call according to the user's balance and the dialed destination. I the session plugin I look up the corresponding CallPatern (Destination) and price based on the dialed number - if the session plugin can not determine the destination of the call, hence can not decide how to charge the call, the call is ended.
The dialplan plugin will in some cases change the To field. In some cases the plugin adds some digits in the beginning of the dialed number, because it is need by our service provider.
Now, the problem is when the To field is changed by the dialplan plugin then the session plugin can not look up the number, because the number does not match any of my callpaterns due to the changed to field.
I would like to be able to isolate the the first dialplan rule (session plugin) so that whatever is done later in the dialplan would not affect the session plugin.
I very open to other solutions as well, as long as it is done within the dialplan.
Thanks!
2. Java version:Latest
3. OS type and the version: Win2k3 Server
4. Your problem:
I have the following dialplan (in this specific order):
Matching:
$request=^INVITE
Deploy:
To=(.+)
$session=com.test.dialplan.plugin.adpfordialplan
$continue=true
Matching:
$request=^INVITE
$dialplan.findtonumber( To )=(.+)
Deploy:
$target="someIP":5060
To=sip:%1@"someIP"
Both the session and the dialplan plugin works very good.
A little brief information is needed to understand my problem:
The session plugin is primarily for accounting. It checks the callers current balance within our system and sets a scheduled timeout for the call according to the user's balance and the dialed destination. I the session plugin I look up the corresponding CallPatern (Destination) and price based on the dialed number - if the session plugin can not determine the destination of the call, hence can not decide how to charge the call, the call is ended.
The dialplan plugin will in some cases change the To field. In some cases the plugin adds some digits in the beginning of the dialed number, because it is need by our service provider.
Now, the problem is when the To field is changed by the dialplan plugin then the session plugin can not look up the number, because the number does not match any of my callpaterns due to the changed to field.
I would like to be able to isolate the the first dialplan rule (session plugin) so that whatever is done later in the dialplan would not affect the session plugin.
I very open to other solutions as well, as long as it is done within the dialplan.
Thanks!