Call mistaking outbound number for extension

Hello!

I’m having a problem with one specific DID, which is supposed to go for outbound calls, it’s giving me this output:

[Aug 8 11:47:17] NOTICE[3608]: chan_sip.c:22825 handle_request_invite: Call from ‘’ (192.168.25.249:7916) to extension ‘2984840391’ rejected because extension not found in context ‘default’.

Now, this number 2984840391 is actually a telephone number, however it’s recognizing as an extension and impeding the call to connect.

This is the only output I get when using this specific DID.

Does anyone have any idea of what could be? I do understand this is extremely vague, but this is all I have;

DID info:

[did-softmarketing]
exten => s,1,NoOp(Contexto DID Softmarketing, encaminha direto alguns ramais)
exten => _2830,1,Goto(did-softmarketing-send,${EXTEN},1)
exten => _2831,1,Goto(did-softmarketing-send,${EXTEN},1)
exten => _2832,1,Goto(did-softmarketing-send,${EXTEN},1)
exten => _2840,1,Goto(did-softmarketing-send,${EXTEN},1)
exten => _3030,1,Goto(did-softmarketing-send,${EXTEN},1) (THIS IS THE ONE BEING USED FOR TEST)
exten => _3037,1,Goto(did-softmarketing-send,${EXTEN},1)
exten => _3110,1,Goto(did-softmarketing-send,${EXTEN},1)
exten => _7575,1,Goto(did-softmarketing-send,${EXTEN},1)
exten => _6750,1,Goto(did-softmarketing-sercomtel,${EXTEN},1)
exten => _0004,1,Goto(did-softmarketing-sercomtel,${EXTEN},1)
exten => _8038,1,Goto(did-softmarketing-sercomtel,${EXTEN},1)

DID configuration:
[did-softmarketing-send]
exten => _X.,1,NoOp(** Encaminhamento para SoftMarketing - ${EXTEN} **)
exten => _X.,n,Dial(SIP/softmarketing/${EXTEN})
exten => _X.,n,Hangup

[softmarketing]
type=peer
host= Correct IP
context=siptrunk
qualify=yes
insecure=port,invite
dtmf=rfc2833
nat=no
disallow=all
allow=g729
allow=alaw
allow=ulaw
canreinvite=no
directmedia=no

The trunk is up when I check on sip show peers, any ideas?

Why have you obfuscated Correct IP, if is a private address (192.168.25.249) as indicated by the log message.

If it isn’t that address, you haven’t provided the part of sip.conf that would match it.

You also haven’t provided the part of extension.conf that would be used for a call that did match you sip.conf fragment.

sip.conf is deprecated, effectively unsupported, and will not be included in Asterisk versions, from next year.

The IP is correct;
The extension.conf part used for a call to match is:

[did-softmarketing-send]
exten => _X.,1,NoOp(** Encaminhamento para SoftMarketing - ${EXTEN} **)
exten => _X.,n,Dial(SIP/softmarketing/${EXTEN})
exten => _X.,n,Hangup

Which sends to the trunk mentioned above

The extensions.conf section that a valid all would match is siptrunk, not the one you have provided here.

As the call is looking for an extension in default, it can’t even have matched softmarketing, which could only really happen if the IP address dd not match Correct IP,

The client IP was actually being sent not as the provided for the trunk, but as the one from their firewall, as suggested by david. All I did was getting a secondary trunk with their firewall IP address and we were good to go

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