Calls are being routed to the wrong did

Calls are being routed to the wrong did, even though I have the did configure under inbound routes.

Here is the log:
[2019-12-24 16:28:58] VERBOSE[10866][C-0000000b] netsock2.c: Using SIP RTP TOS bits 184
[2019-12-24 16:28:58] VERBOSE[10866][C-0000000b] netsock2.c: Using SIP RTP CoS mark 5
[2019-12-24 16:28:58] VERBOSE[13425][C-0000000b] pbx.c: Executing [3125555555@from-trunk:1] Set(“SIP/from-pstn-0000000d”, “__DIRECTION=INBOUND”) in new stack
[2019-12-24 16:28:58] VERBOSE[13425][C-0000000b] pbx.c: Executing [3125555555@from-trunk:2] Gosub(“SIP/from-pstn-0000000d”, “sub-record-check,s,1(in,3125555555,dontcare)”) in new stack

And for the inbound settings I have:
type=peer
context=from-trunk
insecure=very
canreinvite=yes
host=64.99.88.77
disallow=all
allow=ulaw

Try:
context=from-pstn-toheader
in both the outgoing and incoming settings for the trunk(s).

If no luck, please post:
Trunking provider?
Do you have multiple trunks?
Multiple DIDs on this trunk?
Does the 3125555555 represent the ‘main’ number on your account, an account number or user name, or something else?

2 Likes

That worked, thanks!

1 Like

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