Quote:
a2billing.php the call submits on SIP/$(NUMBER)@internetcalls
This should be
SIP/${NUMBER}@internetcalls the parenthesis around the number should be a pair of "braces" or wing brackets.
I prefer to just put "internetcalls" in the IP/HOST field of the Trunk definition in a2billing since all the parameters are specified in the context
a. change type=friend to type=peer
b. depending on how well you know asterisk you should be able to set qualify amd monitor if you can reach the "host/client" and see if it successfully communicates with the service provider server [like ping].
qualify=yes
when you do "sip show peers" in the CLI you should see some time in the monitor column if the device is communicating with the host. if you don't see a time number you are not communicating with the host server
c. When you looked in the call trace did your see
"dial xxxxxx@internetcalls"
make sure you are dialing the right number with the right prefix
d. you can also try:
fromdomain=internetcalls.com