SOLVED Asterisk mistakes call from extension as anonymous

sirdotcom

Member
Joined
Mar 20, 2010
Messages
150
Reaction score
25
Hi,
I'm having an odd problem that only effects the latest Centos AND Ubuntu Incredible 13-13.10. With two different hardpones, I get this when trying to call the demo. But when I use a softphone, it works fine. I can't figure out what's making it turn around and think the call is from-external.

Code:
-- Executing [3366@from-internal:1] Set("SIP/701-00000000", "MyDomain=192.168.2.175") in new stack
    -- Executing [3366@from-internal:2] NoOp("SIP/701-00000000", "SIPDOMAIN: mydomain.net") in new stack
    -- Executing [3366@from-internal:3] GotoIf("SIP/701-00000000", "1?FoundDomain") in new stack
    -- Goto (from-internal,3366,6)
    -- Executing [3366@from-internal:6] GotoIf("SIP/701-00000000", "0?OutAllRoutes") in new stack
    -- Executing [3366@from-internal:7] Macro("SIP/701-00000000", "uridial,[email protected]") in new stack
    -- Executing [s@macro-uridial:1] Set("SIP/701-00000000", "[email protected]") in new stack
    -- Executing [s@macro-uridial:2] Set("SIP/701-00000000", "CALLERID(number)=") in new stack
    -- Executing [s@macro-uridial:3] ExecIf("SIP/701-00000000", "1?Set(CALLERID(number)=Anonymous)") in new stack
    -- Executing [s@macro-uridial:4] NoOp("SIP/701-00000000", "Called SIP URI: [email protected]") in new stack
    -- Executing [s@macro-uridial:5] NoOp("SIP/701-00000000", "Calling From  : "701" <Anonymous> ?^?^?") in new stack
    -- Executing [s@macro-uridial:6] Dial("SIP/701-00000000", "SIP/[email protected],60,tr") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
       > 0x7f2dec04f760 -- Strict RTP learning after remote address set to: 127.0.0.1:17256
    -- Called SIP/[email protected]
    -- Executing [3366@from-sip-external:1] NoOp("SIP/127.0.0.1-00000002", "Received incoming SIP connection from unknown peer to 3366") in new stack
    -- Executing [3366@from-sip-external:2] Set("SIP/127.0.0.1-00000002", "DID=3366") in new stack
    -- Executing [3366@from-sip-external:3] Goto("SIP/127.0.0.1-00000002", "s,1") in new stack
    -- Goto (from-sip-external,s,1)
    -- Executing [s@from-sip-external:1] GotoIf("SIP/127.0.0.1-00000002", "1?setlanguage:checkanon") in new stack
    -- Goto (from-sip-external,s,2)
    -- Executing [s@from-sip-external:2] Set("SIP/127.0.0.1-00000002", "CHANNEL(language)=en") in new stack
    -- Executing [s@from-sip-external:3] GotoIf("SIP/127.0.0.1-00000002", "1?noanonymous") in new stack
    -- Goto (from-sip-external,s,5)
    -- Executing [s@from-sip-external:5] Set("SIP/127.0.0.1-00000002", "TIMEOUT(absolute)=15") in new stack
    -- Channel will hangup at 2019-04-03 13:21:21.489 EDT.
    -- Executing [s@from-sip-external:6] Log("SIP/127.0.0.1-00000002", "WARNING,"Rejecting unknown SIP connection from 127.0.0.1"") in new stack
[2019-04-03 13:21:06] WARNING[7514][C-00000001]: Ext. s:6 @ from-sip-external: "Rejecting unknown SIP connection from 127.0.0.1"

The phone registers normally. Has anyone had problems like this? This is the first time an Incredible PBX has done this,

Thanks,
Steve
 

tbrummell

Guru
Joined
Jan 8, 2011
Messages
1,275
Reaction score
339
I don't know what you got going on, but my test call to *43 (Echo Test) does not look like that. I have no 'macro-uridial' entries. I notice your "MyDomain" and "SIPDOMAIN" entries are different than mine when I do a test call.
Code:
[2019-04-04 07:20:11] VERBOSE[27764][C-0000000e] pbx.c: Executing [*43@from-internal:1] Set("SIP/212-0000001a", "MyDomain=") in new stack
[2019-04-04 07:20:11] VERBOSE[27764][C-0000000e] pbx.c: Executing [*43@from-internal:2] NoOp("SIP/212-0000001a", "SIPDOMAIN: my.FQDN.domaint") in new stack
[2019-04-04 07:20:11] VERBOSE[27764][C-0000000e] pbx.c: Executing [*43@from-internal:3] GotoIf("SIP/212-0000001a", "0?FoundDomain") in new stack
[2019-04-04 07:20:11] VERBOSE[27764][C-0000000e] pbx.c: Executing [*43@from-internal:4] Set("SIP/212-0000001a", "MyDomain=") in new stack
[2019-04-04 07:20:11] VERBOSE[27764][C-0000000e] pbx.c: Executing [*43@from-internal:5] Set("SIP/212-0000001a", "SIPDOMAIN=") in new stack
[2019-04-04 07:20:11] VERBOSE[27764][C-0000000e] pbx.c: Executing [*43@from-internal:6] GotoIf("SIP/212-0000001a", "1?OutAllRoutes") in new stack
[2019-04-04 07:20:11] VERBOSE[27764][C-0000000e] pbx_builtins.c: Goto (from-internal,*43,8)

Are you dialing the call as a SIP URI?

Are you just using IPBX, or have you set up Kamilio and all of the other things Ward has posted in the past few weeks?
 

Eliad

Active Member
Joined
Aug 13, 2017
Messages
619
Reaction score
127
Hi,
I'm having an odd problem that only effects the latest Centos AND Ubuntu Incredible 13-13.10. With two different hardpones, I get this when trying to call the demo. But when I use a softphone, it works fine. I can't figure out what's making it turn around and think the call is from-external.

Code:
-- Executing [3366@from-internal:1] Set("SIP/701-00000000", "MyDomain=192.168.2.175") in new stack
    -- Executing [3366@from-internal:2] NoOp("SIP/701-00000000", "SIPDOMAIN: mydomain.net") in new stack
    -- Executing [3366@from-internal:3] GotoIf("SIP/701-00000000", "1?FoundDomain") in new stack
    -- Goto (from-internal,3366,6)
    -- Executing [3366@from-internal:6] GotoIf("SIP/701-00000000", "0?OutAllRoutes") in new stack
    -- Executing [3366@from-internal:7] Macro("SIP/701-00000000", "uridial,[email protected]") in new stack
    -- Executing [s@macro-uridial:1] Set("SIP/701-00000000", "[email protected]") in new stack
    -- Executing [s@macro-uridial:2] Set("SIP/701-00000000", "CALLERID(number)=") in new stack
    -- Executing [s@macro-uridial:3] ExecIf("SIP/701-00000000", "1?Set(CALLERID(number)=Anonymous)") in new stack
    -- Executing [s@macro-uridial:4] NoOp("SIP/701-00000000", "Called SIP URI: [email protected]") in new stack
    -- Executing [s@macro-uridial:5] NoOp("SIP/701-00000000", "Calling From  : "701" <Anonymous> ?^?^?") in new stack
    -- Executing [s@macro-uridial:6] Dial("SIP/701-00000000", "SIP/[email protected],60,tr") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
       > 0x7f2dec04f760 -- Strict RTP learning after remote address set to: 127.0.0.1:17256
    -- Called SIP/[email protected]
    -- Executing [3366@from-sip-external:1] NoOp("SIP/127.0.0.1-00000002", "Received incoming SIP connection from unknown peer to 3366") in new stack
    -- Executing [3366@from-sip-external:2] Set("SIP/127.0.0.1-00000002", "DID=3366") in new stack
    -- Executing [3366@from-sip-external:3] Goto("SIP/127.0.0.1-00000002", "s,1") in new stack
    -- Goto (from-sip-external,s,1)
    -- Executing [s@from-sip-external:1] GotoIf("SIP/127.0.0.1-00000002", "1?setlanguage:checkanon") in new stack
    -- Goto (from-sip-external,s,2)
    -- Executing [s@from-sip-external:2] Set("SIP/127.0.0.1-00000002", "CHANNEL(language)=en") in new stack
    -- Executing [s@from-sip-external:3] GotoIf("SIP/127.0.0.1-00000002", "1?noanonymous") in new stack
    -- Goto (from-sip-external,s,5)
    -- Executing [s@from-sip-external:5] Set("SIP/127.0.0.1-00000002", "TIMEOUT(absolute)=15") in new stack
    -- Channel will hangup at 2019-04-03 13:21:21.489 EDT.
    -- Executing [s@from-sip-external:6] Log("SIP/127.0.0.1-00000002", "WARNING,"Rejecting unknown SIP connection from 127.0.0.1"") in new stack
[2019-04-03 13:21:06] WARNING[7514][C-00000001]: Ext. s:6 @ from-sip-external: "Rejecting unknown SIP connection from 127.0.0.1"

The phone registers normally. Has anyone had problems like this? This is the first time an Incredible PBX has done this,

Thanks,
Steve
I had a similar problem for a local server install. I solved by using an older Centos IncrediblePBX installation script. Is your install in the cloud or local? Apparently cloud install does not give problems according to another user following the thread No outgoing calls.
 

sirdotcom

Member
Joined
Mar 20, 2010
Messages
150
Reaction score
25
Hi,

I'm just using basic IPBX "out-of-the-box". And I'm just dialing 3-3-6-6 to access the Demo IVR. What's so odd is that it works normally with a softphone.

I don't know what you got going on, but my test call to *43 (Echo Test) does not look like that. I have no 'macro-uridial' entries. I notice your "MyDomain" and "SIPDOMAIN" entries are different than mine when I do a test call.
Code:
[2019-04-04 07:20:11] VERBOSE[27764][C-0000000e] pbx.c: Executing [*43@from-internal:1] Set("SIP/212-0000001a", "MyDomain=") in new stack
[2019-04-04 07:20:11] VERBOSE[27764][C-0000000e] pbx.c: Executing [*43@from-internal:2] NoOp("SIP/212-0000001a", "SIPDOMAIN: my.FQDN.domaint") in new stack
[2019-04-04 07:20:11] VERBOSE[27764][C-0000000e] pbx.c: Executing [*43@from-internal:3] GotoIf("SIP/212-0000001a", "0?FoundDomain") in new stack
[2019-04-04 07:20:11] VERBOSE[27764][C-0000000e] pbx.c: Executing [*43@from-internal:4] Set("SIP/212-0000001a", "MyDomain=") in new stack
[2019-04-04 07:20:11] VERBOSE[27764][C-0000000e] pbx.c: Executing [*43@from-internal:5] Set("SIP/212-0000001a", "SIPDOMAIN=") in new stack
[2019-04-04 07:20:11] VERBOSE[27764][C-0000000e] pbx.c: Executing [*43@from-internal:6] GotoIf("SIP/212-0000001a", "1?OutAllRoutes") in new stack
[2019-04-04 07:20:11] VERBOSE[27764][C-0000000e] pbx_builtins.c: Goto (from-internal,*43,8)

Are you dialing the call as a SIP URI?

Are you just using IPBX, or have you set up Kamilio and all of the other things Ward has posted in the past few weeks?
 

sirdotcom

Member
Joined
Mar 20, 2010
Messages
150
Reaction score
25
Hi,
I am using a cloud install. The odd thing is that this doesn't happen with softphones, only the two hardphones I've tried (which are all on the same home network, and seen by IPBX as an allowed IP.)

I had a similar problem for a local server install. I solved by using an older Centos IncrediblePBX installation script. Is your install in the cloud or local? Apparently cloud install does not give problems according to another user following the thread No outgoing calls.
 

stoneman68

New Member
Joined
Apr 4, 2019
Messages
4
Reaction score
0
Same problem here. Softphones can call one another. Softphones can call my Polycom and Grandstream phones. But, Polycom & Grandstream phones can't call anyone, including *43 and 3366.

When the phones try to make a call to other devices on the LAN, the CLI shows:
Ext. s:6 @ from-sip-external: "Rejecting unknown SIP connection from 172.16.xxx.xxx"
(where 172.16.xxx.xxx is the PBX's LAN ip address)

As a noob, I haven't set up any trunks to the outside world yet.

Incredible PBX 13.0.195.28
 

Eliad

Active Member
Joined
Aug 13, 2017
Messages
619
Reaction score
127
Same problem here. Softphones can call one another. Softphones can call my Polycom and Grandstream phones. But, Polycom & Grandstream phones can't call anyone, including *43 and 3366.

When the phones try to make a call to other devices on the LAN, the CLI shows:
Ext. s:6 @ from-sip-external: "Rejecting unknown SIP connection from 172.16.xxx.xxx"
(where 172.16.xxx.xxx is the PBX's LAN ip address)

As a noob, I haven't set up any trunks to the outside world yet.

Incredible PBX 13.0.195.28
I tried Yealink T21 and same problem, cant make outgoing calls when using the latest IncrediblePBX install script. Yate softphone does dial out.
I am a true NOOB,, what linux command you used to get this error log?
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Yeah. The SIP URI mod is just causing too many issues for some folks. We're going to disable it by default moving forward. But here's how to disable it:
Code:
sed -i '\:// BEGIN SIP URI Mod1:,\:// END SIP URI Mod1:d' /etc/asterisk/extensions_custom.conf
asterisk -rx "dialplan reload"
 

stoneman68

New Member
Joined
Apr 4, 2019
Messages
4
Reaction score
0
I tried Yealink T21 and same problem, cant make outgoing calls when using the latest IncrediblePBX install script. Yate softphone does dial out.
I am a true NOOB,, what linux command you used to get this error log?

Hello fellow noob. From the linux prompt, I use this to access the Asterisk CLI (command line interface).
asterisk -rvv
The -rvv is somewhat verbose. -rvvv would be even more verbose.

When I make calls, the CLI spits out a bunch of stuff, including the "Rejecting unknown SIP connection from 172.16.xxx.xxx"
 

stoneman68

New Member
Joined
Apr 4, 2019
Messages
4
Reaction score
0
I tried Yealink T21 and same problem, cant make outgoing calls when using the latest IncrediblePBX install script. Yate softphone does dial out.
I am a true NOOB,, what linux command you used to get this error log?

Hello fellow noob. From the linux prompt, I use this to access the Asterisk CLI (command line interface).
asterisk -rvv
The -rvv is somewhat verbose. -rvvv would be even more verbose.

When I make calls, the CLI spits out a bunch of stuff, including the "Rejecting unknown SIP connection from 172.16.xxx.xxx"
Yeah. The SIP URI mod is just causing too many issues for some folks. We're going to disable it by default moving forward. But here's how to disable it:
Code:
sed -i '\:// BEGIN SIP URI Mod1:,\:// END SIP URI Mod1:d' /etc/asterisk/extensions_custom.conf
asterisk -rx "dialplan reload"

Fixed! That did it for me. Thanks Ward and Dr. K!
 

jreming

Member
Joined
Mar 27, 2019
Messages
75
Reaction score
19
Yeah. The SIP URI mod is just causing too many issues for some folks. We're going to disable it by default moving forward. But here's how to disable it:
Code:
sed -i '\:// BEGIN SIP URI Mod1:,\:// END SIP URI Mod1:d' /etc/asterisk/extensions_custom.conf
asterisk -rx "dialplan reload"


Glad I wasn't going crazy, noticed the only time I could dial from inside was when I set the outbound proxy to my servers external fqdn/ip.

Now I just need to figure out why yate stopping initiating the MoH/On Hold

Thanks
 

stanjohn

Not quite right
Joined
Apr 18, 2011
Messages
144
Reaction score
22
Same problem soft phone make and receive calls fine, hard wire phones receive only. Removed sip uri mod1 and checked in nano
extensions_custom.conf it is gone, reload dial plan no joy.

Why are my custom unistim phones limited in making outbound calls ?



2388
 

Attachments

  • Annotation 2019-08-02 130008.jpg
    Annotation 2019-08-02 130008.jpg
    43.2 KB · Views: 4
Last edited:

stanjohn

Not quite right
Joined
Apr 18, 2011
Messages
144
Reaction score
22
context=from-internal
extension=line
in unistim.conf
fixed problem, think different versions of asterisk have different defaults as this file was from ver 15
 
Last edited:

Members online

No members online now.

Forum statistics

Threads
25,782
Messages
167,509
Members
19,202
Latest member
pbxnewguy
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top