Hello david, good morning!
I hope everything is well with you!
I was doing some tests and I had a curious result.
I was testing the possibility of one of our DIDs serving an inbound route that leads to a custom destination, which leads to a custom dialplan so that it speaks the uniqueid of the call (just for testing).
doing some research, I did the test as follows:
I added a macro to extensions_custom.conf:
[custom-protocol]
exten => s,1,SayDigits(${UNIQUEID})
exten => s,2,Hangup
I added a Custom Destination:
Target: custom-protocol,s,1
Description: protocol
I added a Misc Application:
Description: misc-app protocol
Destination: Custom Application protocol
I added an inbound route:
Description: Test Protocol
DID Number +557130348390
Destination: Custom Application protocol
After doing that and calling the number, it “worked”…but it really didn’t.
Analyzing the asterisk logs I can see that the call arrives at FreePBX and is “answered” and plays the digits of the UniqueID, but on my cell phone nothing happens, the call just tries to connect (without giving a ring tone) and hangs up after a few seconds. For my cell phone, it is as if the call is not being answered.
The log says the following when I call:
What could be wrong with these settings?
Do you think anything can be improved for these tests to continue?
PS: I tried to post the log on FreePBX pastebin, but it looks like the site is down