I am having an asterisk server installed with Version 16, And also have a SIP Trunk from Telecom operator.
I am using call files to make outgoing calls. But presently when am making the call using call file am not getting SIP response or hangup cause. But the same SIP response is getting from the operator.
Below is my call file:
Channel: SIP/out/1234567899
Context: testV
Extension: s
Priority: 1
Am getting the SIP Response from the Telecom operator in the SIP set debug. But i need that SIP response like 486,200,603 in asterisk variable for the failed calls.
Hai Satish, if i use local then again i need to add an dialplan for the same again based on the operator. Is there any other option .
When my call fails, the call result is stored in ${REASON} variable. I am using this in “failed” extension to get the reason of failure. I am getting the following results:
0 - Failed (not busy or congested)
1 - Hung up
3 - Ring timeout
5 - Busy
8 - Congestion
The above results are not sufficient for analysis. I want the detailed release cause of the call like ISDN cause or something with more details of why the call failed.
When I am using ${HANGUPCAUSE} I am always getting the result as “0”.
Yes you’ll have to add some dialplan and if you are using different providers, pass the provider name in a variable and use it to dialout.
AFAIK, I won’t have much control over call if you don’t use local channel here
But this will increase the server load. like example if am making 1000 calls, in asterisk it will create extra 1000 more channel, which will increase the server load.
By default the local channel tries to optimize itself out of the callpath so I don’t see that will increase server load significantly.
However I suggest to test it on your server for 1000 calls and see how much it affects the server load.