Using a grandstream FXO getting a forbidden error

I am setting up a Grandstream FXO adapter to work with my freepbx system.
But when I try calling out I get a forbidden. I see this in the log:
[2019-07-07 11:57:05] VERBOSE[14374][C-00001c87] app_dial.c: Called SIP/700/1848XXXXXXXXX@GXW4104-1

Where 700 is my trunk name and the 1848 is the number I am dialing. I believe the issue is because I have that info after the @. But I am not sure how that got there

Thank you

Post your trunk settings (mask username and secret).

Current settings are

type=friend
qualify=yes
username=700
secret=XXXXX
host=XX.XXX.XXX.XX
nat=yes
context=from-trunk
dtmfmode=rfc2833
canreinvite=no
disallow=all
allow=ulaw
port=5060

I had tried originally without it having the host=ip address but then it wasn’t registering and i was getting a
Cause 20 - Subscriber absent error

Thank you

Username and trunk name should be the same, and should only be numbers, not letters.

If the GXW is set to register to the PBX, you should have
host=dynamic
and remove the port= line.

Make sure that the Grandstream is registering to the correct port on the PBX (5160, or whatever you changed Bind Port to).

If the Grandstream doesn’t show registered, debug that first, before trying to make calls.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.