Quantcast
Channel: FreePBX - FreePBX Community Forums
Viewing all 17587 articles
Browse latest View live

Set x-tennant id in SIP header based on Outbound Caller ID

$
0
0

@tjgertge wrote:

Greetings all,

I’ve searched and not been able to find an example for my use case, so I’m reaching out here to see anyone can provide me some guidance.

We’re using Skyetel as our SIP trunk provider, and would like to take advantage of the tenant system for ease of billing. Now 99% of our customer base is 1 PBX to 1 Customer, so billing is cake. We have a handful of customers that run multiple businesses from one PBX, and would like their billing split out accordingly. Skyetel handles the inbound portion of that swimmingly. In order to track the outbound part, we need to inject x-tenant id into the SIP header on outbound calls.

So in this scenario, my pbx is split between two businesses. Business One (tenant ID business.one) and Business Two (tenant ID business.two). Each business has two separate DIDs.

I need to have it set so when a call originates from one of the DIDs assigned to Business One, x-tenant business.one is inserted into the SIP header. Likewise for Business Two.

I’ve seen one example where they were able to make the caller ID itself as the x-tennant ID. That would work fine if it was a 1:1 DID to tenant scenario. In my case I have multiple DIDs to match to tenants.

Can anyone guide me in the right direction?

Posts: 4

Participants: 1

Read full topic


Calls to a ring group are unable to be picked up

$
0
0

@ClearAl wrote:

I was wondering if anyone had any insight into a weird intermittent issue my new deployment on .180 is having.
PBX Version: 13.0.197.28
PBX Distro: 10.13.66-7
Asterisk Version: 13.29.2

I have 3 DID’s in a hosted free pbx system. I have an old Toshiba PBX forewarding calls into my Free PBX server. They are ringing through to a ring group to Grandstream GXP2170’s. (Firmware Version 1.0.9.121)

Users report sporadic issues where the phone rings but is not able to be picked up. The phone rings like its outbound dialing when they pick up the receiver. The user is unable to answer the call or cancel the call for a solid 45sec.

I have sat in with them and have been unbale to catch the event live to watch the CLI.
I created a test lab that involves another of my hosted servers to forward calls to a test number/ring group and have been unable to replicate it.

Does anyone have any suggestions on what else I can try/look at? I have users giving me a list of every time it happens so I can maybe see some colorations in CDR.

Posts: 3

Participants: 1

Read full topic

PJSIP outbound proxy issue

$
0
0

@semerouk wrote:

Dear all
I’m trying to connect to my trunk provider the provider sent to me the following details :
User name: MY-USER
Pass Word : MY-SUPPER-PASS
Domain : domain.site
pbx IP address : x.x.x.x
Outbound proxy : y.y.y.y:5038
I spent two days trying to connect with trunk with no success .
If any one can help in this i’ll appreciate .
Regards

Posts: 3

Participants: 1

Read full topic

Dialplan hook following execution of caller id superfecta for caller id name announcment

$
0
0

@mitchmitchell wrote:

I am trying to find the right place in FreePBX dialplans to insert a call to an AGI script to send the caller id name to MQTT. I’m using this to announce callers on Alex and Google Home, but right now where I have the script called [from-pstn-custom] the caller id lookups (superfecta etc.) have not yet been performed.

I’ve been tracing down the incoming dialplan execution trying to find a custom hook context I could use to execute the script but there doesn’t seem to be a consistent place to do it for all inbound external calls. I can do it for selected destination end points (like ring groups) but I’d rather have the script called independent of the inbound route selected.

Any recommendations?

Thanks!

Mitch

Posts: 6

Participants: 1

Read full topic

Horizontal Soft Keys Don't Take EPM Settings

$
0
0

@clintonvets wrote:

Hello. I am trying to get the “Hold” key to go away on my S406 and S505 phones. I have tried leaving it blank and substituting it for something else in the “TALK” section in EPM, but it just stays there.
I’d like to have Contacts and Directory available when we pick up the handset to dial, but they don’t appear to be available. Do you have any suggestions? Thank you for reading this.

Posts: 1

Participants: 1

Read full topic

RESOLVED: Notification of IVR option

$
0
0

@BrianCombs wrote:

Hello. Forgive me for not knowing where to put this or how to ask, but can someone help lead me in the correct direction.

I want to setup a system where when a user chooses a specific option on an IVR, I get a notification. The notification can be a variety of things, but email would be my first choice.

I want to prompt the user to opt to receive a text message link to go to our website portal instead of holding for a CSR. If I can get an email, I can have my SMS program send out a text and then I can hang up the call.

Posts: 11

Participants: 1

Read full topic

FreePBX AllowList Caller Module -- to block all but a list of allowed callers

$
0
0

@mitchmitchell wrote:

We’ve been getting lots of spam calls lately so I decided to try and see if I could create a module that would let me block all callers not in a allowed list.

I started with the Blacklist module and essentially reversed the logic so that callers on the list are allowed through and all others blocked or sent to the destination selected. I did change one aspect of the logic so that if a non-allowlisted destination is not defined, the call is allowed to proceed. This prevents shutting down all incoming calls when you first install the module.

I also took care to make sure that the Allowlist module would play well with the Blacklist module. The Blacklist rules come first in the dial plan so if a number is blacklisted it will be blocked regardless of its presence in the whitelist.

The one thing I really wasn’t sure of was how to locate unused feature codes to be sure it wasn’t stomping on some other modules codes – I used one unused on my system but that’s no guarantee for anyone else that tries it.

I put it out on github if anyone is interested. Its self signed so you’ll have to resign the module locally if you decide to try it.

https://github.com/mitchmitchell/allowlist

I don’t have the language skills to update the message translations so they will all be incorrect, and may not even work if the system language is something other than English.

Posts: 24

Participants: 1

Read full topic

Random selection of IVR does not work

$
0
0

@jtuinstra wrote:

Followed the instructions mentioned here: https://community.freepbx.org/t/ivr-random-play-announcement/55312

Just small changes, we only have 2 different IVR’s that need to be randomized. We have an IVR that starts in Dutch and then French and an IVR that starts in French and then Dutch. We want to randomize which language will be heard first. This is a dual language country (Belgium).

We also created these different IVR for opening hours and closing hours. So in total 4 different IVR, 2 for closed hours message and 2 for opening hours. These need to be randomized.

The code in extensions_custom.conf:

[set-random-open]
exten => s,1,Answer
exten => s,n,Goto(ivr-list-op,s,${RAND(1-2)},1)

[ivr-list-op]
exten => s,1,Goto(ivr-5,s,1)
exten => s,2,Goto(ivr-6,s,1)

[set-random-closed]
exten => s,1,Answer
exten => s,n,Goto(ivr-list-cl,s,${RAND(1,2)},1)

[ivr-list-cl]
exten => s,1,Goto(ivr-7,s,1)
exten => s,2,Goto(ivr-8,s,1)

When a call is made and put to this this custom destination, the number gets a busy tone and in the log it says this:

19335[2021-02-14 18:29:30] VERBOSE[160913][C-00000050] pbx_builtins.c: Goto (set-random-closed,s,1)

19336[2021-02-14 18:29:30] VERBOSE[160913][C-00000050] pbx.c: Executing [s@set-random-closed:1] Answer("PJSIP/CM.com_Federation-00000092", "") in new stack

19337[2021-02-14 18:29:30] VERBOSE[160913][C-00000050] pbx.c: Executing [s@set-random-closed:2] Goto("PJSIP/CM.com_Federation-00000092", "ivr-list-closed,s,1932202941,1") in new stack

19338[2021-02-14 18:29:30] VERBOSE[160913][C-00000050] pbx_builtins.c: Goto (ivr-list-closed,s,1932202941)

19339[2021-02-14 18:29:30] VERBOSE[160913][C-00000050] pbx.c: Auto fallthrough, channel 'PJSIP/CM.com_Federation-00000092' status is 'UNKNOWN'

It seems that ${RAND(1,2)} generates a random number of 1932202941 instead of 1 or 2.
No clue how to solve this.

Posts: 3

Participants: 1

Read full topic


SIP header

$
0
0

@semerouk wrote:

Hi all
I’m trying to add sip header in my freepbx i can’t find any GUI element for this .Can any one tell me how to add SIP header ?
Regards

Posts: 2

Participants: 1

Read full topic

Outbound calling borked after asterisk-version-switch

$
0
0

@SterlingPkg wrote:

Running the current pbxact release (PBXact 15.0.17.24) but on Asterisk 15, I decided to upgrade asterisk version (since 15 is eol). Using asterisk-version-switch I jumped to Asterisk 17, updated all available modules and started testing. Inbound calling and endpoint to endpoint calling worked, but outbound calling resulted in route busy errors on both of my trunks (Sipstation and VoipMuch).
Rolling back to 16 or 15 did not restore functionality.

Not sure what’s gone wrong, any help?

[Feb 14 18:21:42]     -- <PJSIP/1020-00000002> Playing 'check-number-dial-again.ulaw' (language 'en')
[Feb 14 18:21:42]        > 0x7febb42dea90 -- Strict RTP learning complete - Locking on source address 10.8.0.3:12108
[Feb 14 18:21:46]   == Setting global variable 'SIPDOMAIN' to '10.8.0.1'
[Feb 14 18:21:46]   == Using SIP RTP Audio TOS bits 184
[Feb 14 18:21:46]   == Using SIP RTP Audio TOS bits 184 in TCLASS field.
[Feb 14 18:21:46]   == Using SIP RTP Audio CoS mark 5
[Feb 14 18:21:46]     -- Executing [Outbound#Replaced@from-internal:1] Macro("PJSIP/1020-00000003", "user-callerid,LIMIT") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:1] Set("PJSIP/1020-00000003", "TOUCH_MONITOR=1613348506.71") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:2] Set("PJSIP/1020-00000003", "AMPUSER=1020") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:3] Set("PJSIP/1020-00000003", "HOTDESCKCHAN=1020-00000003") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:4] Set("PJSIP/1020-00000003", "HOTDESKEXTEN=1020") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:5] Set("PJSIP/1020-00000003", "HOTDESKCALL=0") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:6] ExecIf("PJSIP/1020-00000003", "0?Set(HOTDESKCALL=1)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:7] ExecIf("PJSIP/1020-00000003", "0?Set(CALLERID(name)=)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:8] GotoIf("PJSIP/1020-00000003", "0?report") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:9] ExecIf("PJSIP/1020-00000003", "1?Set(REALCALLERIDNUM=1020)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:10] Set("PJSIP/1020-00000003", "AMPUSER=1020") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:11] GotoIf("PJSIP/1020-00000003", "0?limit") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:12] Set("PJSIP/1020-00000003", "AMPUSERCIDNAME=Richard@S") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:13] ExecIf("PJSIP/1020-00000003", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:14] GotoIf("PJSIP/1020-00000003", "0?report") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:15] Set("PJSIP/1020-00000003", "AMPUSERCID=1020") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:16] Set("PJSIP/1020-00000003", "__DIAL_OPTIONS=Ttr") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:17] Set("PJSIP/1020-00000003", "CALLERID(all)="Richard@S" <1020>") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:18] ExecIf("PJSIP/1020-00000003", "0?Set(CUSDIAL=)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:19] ExecIf("PJSIP/1020-00000003", "0?Set(CALLERID(all)="Richard@S" <1020>)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:20] GotoIf("PJSIP/1020-00000003", "0?limit") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:21] ExecIf("PJSIP/1020-00000003", "1?Set(GROUP(concurrency_limit)=1020)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:22] ExecIf("PJSIP/1020-00000003", "0?Set(CHANNEL(language)=)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:23] NoOp("PJSIP/1020-00000003", "Macro Depth is 1") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:24] GotoIf("PJSIP/1020-00000003", "1?report2:macroerror") in new stack
[Feb 14 18:21:46]     -- Goto (macro-user-callerid,s,25)
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:25] GotoIf("PJSIP/1020-00000003", "1?continue") in new stack
[Feb 14 18:21:46]     -- Goto (macro-user-callerid,s,44)
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:44] Set("PJSIP/1020-00000003", "CALLERID(number)=1020") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:45] Set("PJSIP/1020-00000003", "CALLERID(name)=Richard@S") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:46] GotoIf("PJSIP/1020-00000003", "0?cnum") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:47] Set("PJSIP/1020-00000003", "CDR(cnam)=Richard@S") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:48] Set("PJSIP/1020-00000003", "CDR(cnum)=1020") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:49] Set("PJSIP/1020-00000003", "CHANNEL(language)=en") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-user-callerid:50] GosubIf("PJSIP/1020-00000003", "0?app-check-classofservce,s,1()") in new stack
[Feb 14 18:21:46]     -- Executing [Outbound#Replaced@from-internal:2] Set("PJSIP/1020-00000003", "ROUTEUSER=1020") in new stack
[Feb 14 18:21:46]     -- Executing [Outbound#Replaced@from-internal:3] Set("PJSIP/1020-00000003", "ROUTEUSER=1020") in new stack
[Feb 14 18:21:46]     -- Executing [Outbound#Replaced@from-internal:4] GotoIf("PJSIP/1020-00000003", "1?notblind") in new stack
[Feb 14 18:21:46]     -- Goto (from-internal,Outbound#Replaced,7)
[Feb 14 18:21:46]     -- Executing [Outbound#Replaced@from-internal:7] GotoIf("PJSIP/1020-00000003", "1?restrictedroute-d1308a78dfbb97fce72e6f0645f97e2c,Outbound#Replaced,2:outbound-allroutes,Outbound#Replaced,2") in new stack
[Feb 14 18:21:46]     -- Goto (restrictedroute-d1308a78dfbb97fce72e6f0645f97e2c,Outbound#Replaced,2)
[Feb 14 18:21:46]     -- Executing [Outbound#Replaced@restrictedroute-d1308a78dfbb97fce72e6f0645f97e2c:2] Gosub("PJSIP/1020-00000003", "sub-record-check,s,1(out,Outbound#Replaced,dontcare)") in new stack
[Feb 14 18:21:46]     -- Executing [s@sub-record-check:1] GotoIf("PJSIP/1020-00000003", "0?initialized") in new stack
[Feb 14 18:21:46]     -- Executing [s@sub-record-check:2] Set("PJSIP/1020-00000003", "__REC_STATUS=INITIALIZED") in new stack
[Feb 14 18:21:46]     -- Executing [s@sub-record-check:3] Set("PJSIP/1020-00000003", "NOW=1613348506") in new stack
[Feb 14 18:21:46]     -- Executing [s@sub-record-check:4] Set("PJSIP/1020-00000003", "__DAY=14") in new stack
[Feb 14 18:21:46]     -- Executing [s@sub-record-check:5] Set("PJSIP/1020-00000003", "__MONTH=02") in new stack
[Feb 14 18:21:46]     -- Executing [s@sub-record-check:6] Set("PJSIP/1020-00000003", "__YEAR=2021") in new stack
[Feb 14 18:21:46]     -- Executing [s@sub-record-check:7] Set("PJSIP/1020-00000003", "__TIMESTR=20210214-182146") in new stack
[Feb 14 18:21:46]     -- Executing [s@sub-record-check:8] Set("PJSIP/1020-00000003", "__FROMEXTEN=1020") in new stack
[Feb 14 18:21:46]     -- Executing [s@sub-record-check:9] Set("PJSIP/1020-00000003", "__MON_FMT=wav") in new stack
[Feb 14 18:21:46]     -- Executing [s@sub-record-check:10] NoOp("PJSIP/1020-00000003", "Recordings initialized") in new stack
[Feb 14 18:21:46]     -- Executing [s@sub-record-check:11] ExecIf("PJSIP/1020-00000003", "0?Set(ARG3=dontcare)") in new stack
[Feb 14 18:21:46]     -- Executing [s@sub-record-check:12] Set("PJSIP/1020-00000003", "REC_POLICY_MODE_SAVE=") in new stack
[Feb 14 18:21:46]     -- Executing [s@sub-record-check:13] ExecIf("PJSIP/1020-00000003", "0?Set(REC_STATUS=NO)") in new stack
[Feb 14 18:21:46]     -- Executing [s@sub-record-check:14] GotoIf("PJSIP/1020-00000003", "3?checkaction") in new stack
[Feb 14 18:21:46]     -- Goto (sub-record-check,s,17)
[Feb 14 18:21:46]     -- Executing [s@sub-record-check:17] GotoIf("PJSIP/1020-00000003", "1?sub-record-check,out,1") in new stack
[Feb 14 18:21:46]     -- Goto (sub-record-check,out,1)
[Feb 14 18:21:46]     -- Executing [out@sub-record-check:1] NoOp("PJSIP/1020-00000003", "Outbound Recording Check from 1020 to Outbound#Replaced") in new stack
[Feb 14 18:21:46]     -- Executing [out@sub-record-check:2] Set("PJSIP/1020-00000003", "RECMODE=dontcare") in new stack
[Feb 14 18:21:46]     -- Executing [out@sub-record-check:3] ExecIf("PJSIP/1020-00000003", "1?Goto(routewins)") in new stack
[Feb 14 18:21:46]     -- Goto (sub-record-check,out,7)
[Feb 14 18:21:46]     -- Executing [out@sub-record-check:7] Gosub("PJSIP/1020-00000003", "recordcheck,1(dontcare,out,Outbound#Replaced)") in new stack
[Feb 14 18:21:46]     -- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/1020-00000003", "Starting recording check against dontcare") in new stack
[Feb 14 18:21:46]     -- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/1020-00000003", "dontcare") in new stack
[Feb 14 18:21:46]     -- Goto (sub-record-check,recordcheck,3)
[Feb 14 18:21:46]     -- Executing [recordcheck@sub-record-check:3] Return("PJSIP/1020-00000003", "") in new stack
[Feb 14 18:21:46]     -- Executing [out@sub-record-check:8] Return("PJSIP/1020-00000003", "") in new stack
[Feb 14 18:21:46]     -- Executing [Outbound#Replaced@restrictedroute-d1308a78dfbb97fce72e6f0645f97e2c:3] ExecIf("PJSIP/1020-00000003", "0 ?Set(CDR(accountcode)=)") in new stack
[Feb 14 18:21:46]     -- Executing [Outbound#Replaced@restrictedroute-d1308a78dfbb97fce72e6f0645f97e2c:4] Set("PJSIP/1020-00000003", "_ROUTEID=8") in new stack
[Feb 14 18:21:46]     -- Executing [Outbound#Replaced@restrictedroute-d1308a78dfbb97fce72e6f0645f97e2c:5] Set("PJSIP/1020-00000003", "_ROUTENAME=Outbound Route for 1020 US") in new stack
[Feb 14 18:21:46]     -- Executing [Outbound#Replaced@restrictedroute-d1308a78dfbb97fce72e6f0645f97e2c:6] Set("PJSIP/1020-00000003", "MOHCLASS=default") in new stack
[Feb 14 18:21:46]     -- Executing [Outbound#Replaced@restrictedroute-d1308a78dfbb97fce72e6f0645f97e2c:7] ExecIf("PJSIP/1020-00000003", "1?Set(TRUNKCIDOVERRIDE="OutboundCIDReplaced") in new stack
[Feb 14 18:21:46]     -- Executing [Outbound#Replaced@restrictedroute-d1308a78dfbb97fce72e6f0645f97e2c:8] Set("PJSIP/1020-00000003", "_CALLERIDNAMEINTERNAL=Richard@S") in new stack
[Feb 14 18:21:46]     -- Executing [Outbound#Replaced@restrictedroute-d1308a78dfbb97fce72e6f0645f97e2c:9] Set("PJSIP/1020-00000003", "_CALLERIDNUMINTERNAL=1020") in new stack
[Feb 14 18:21:46]     -- Executing [Outbound#Replaced@restrictedroute-d1308a78dfbb97fce72e6f0645f97e2c:10] Set("PJSIP/1020-00000003", "_EMAILNOTIFICATION=FALSE") in new stack
[Feb 14 18:21:46]     -- Executing [Outbound#Replaced@restrictedroute-d1308a78dfbb97fce72e6f0645f97e2c:11] Set("PJSIP/1020-00000003", "_NODEST=") in new stack
[Feb 14 18:21:46]     -- Executing [Outbound#Replaced@restrictedroute-d1308a78dfbb97fce72e6f0645f97e2c:12] Macro("PJSIP/1020-00000003", "dialout-trunk,2,Outbound#Replaced,,off") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:1] Set("PJSIP/1020-00000003", "DIAL_TRUNK=2") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:2] UserEvent("PJSIP/1020-00000003", "zulu-outbound-call,from:1020,to:Outbound#Replaced") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:3] ExecIf("PJSIP/1020-00000003", "0?Set(DIAL_OPTIONS=tr)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:4] GosubIf("PJSIP/1020-00000003", "0?sub-pincheck,s,1()") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:5] ExecIf("PJSIP/1020-00000003", "0?Set(CALLERID(num)=1020)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:6] GotoIf("PJSIP/1020-00000003", "0?disabletrunk,1") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:7] Set("PJSIP/1020-00000003", "DIAL_NUMBER=Outbound#Replaced") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:8] Set("PJSIP/1020-00000003", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:9] Set("PJSIP/1020-00000003", "OUTBOUND_GROUP=OUT_2") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:10] Set("PJSIP/1020-00000003", "DIAL_TRUNK_OPTIONS=T") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:11] GotoIf("PJSIP/1020-00000003", "1?nomax") in new stack
[Feb 14 18:21:46]     -- Goto (macro-dialout-trunk,s,13)
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:13] GotoIf("PJSIP/1020-00000003", "0?skipoutcid") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:14] Macro("PJSIP/1020-00000003", "outbound-callerid,2") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:1] NoOp("PJSIP/1020-00000003", "1020") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:2] NoOp("PJSIP/1020-00000003", "") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:3] NoOp("PJSIP/1020-00000003", "off") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:4] ExecIf("PJSIP/1020-00000003", "0?Set(CALLERPRES(name-pres)=)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:5] ExecIf("PJSIP/1020-00000003", "0?Set(CALLERPRES(num-pres)=)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:6] Set("PJSIP/1020-00000003", "HOTDESCKCHAN=1020-00000003") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:7] Set("PJSIP/1020-00000003", "HOTDESKEXTEN=1020") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:8] Set("PJSIP/1020-00000003", "HOTDESKCALL=0") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:9] ExecIf("PJSIP/1020-00000003", "0?Set(HOTDESKCALL=1)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:10] ExecIf("PJSIP/1020-00000003", "0?Set(CALLERID(name)=)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:11] Set("PJSIP/1020-00000003", "ALLOWTHISROUTE=NO") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:12] ExecIf("PJSIP/1020-00000003", "0?Set(ALLOWTHISROUTE=YES)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:13] ExecIf("PJSIP/1020-00000003", "0?Hangup()") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:14] ExecIf("PJSIP/1020-00000003", "0?Set(REALCALLERIDNUM=1020)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:15] ExecIf("PJSIP/1020-00000003", "0?Set(AMPUSER=1020)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:16] GotoIf("PJSIP/1020-00000003", "1?normcid") in new stack
[Feb 14 18:21:46]     -- Goto (macro-outbound-callerid,s,20)
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:20] Set("PJSIP/1020-00000003", "USEROUTCID=") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:21] Set("PJSIP/1020-00000003", "EMERGENCYCID="OutboundCIDReplaced") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:22] ExecIf("PJSIP/1020-00000003", "0?Set(EMERGENCYCID=)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:23] Set("PJSIP/1020-00000003", "TRUNKOUTCID="OutboundCIDReplaced) in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:24] GotoIf("PJSIP/1020-00000003", "1?trunkcid") in new stack
[Feb 14 18:21:46]     -- Goto (macro-outbound-callerid,s,30)
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:30] ExecIf("PJSIP/1020-00000003", "1?Set(CALLERID(all)="OutboundCIDReplaced)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:31] ExecIf("PJSIP/1020-00000003", "0?Set(CALLERID(all)=)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:32] ExecIf("PJSIP/1020-00000003", "1?Set(CALLERID(all)=OutboundCIDReplaced)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:33] ExecIf("PJSIP/1020-00000003", "0?Set(CALLERID(all)=1020)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:34] ExecIf("PJSIP/1020-00000003", "1?Set(CALLERID(all)=1020)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:35] Set("PJSIP/1020-00000003", "TIOHIDE=no") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:36] ExecIf("PJSIP/1020-00000003", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:37] ExecIf("PJSIP/1020-00000003", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:38] ExecIf("PJSIP/1020-00000003", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:39] ExecIf("PJSIP/1020-00000003", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:40] Set("PJSIP/1020-00000003", "CDR(outbound_cnum)=1020") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-outbound-callerid:41] Set("PJSIP/1020-00000003", "CDR(outbound_cnam)=") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:15] GosubIf("PJSIP/1020-00000003", "0?sub-flp-2,s,1()") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:16] Set("PJSIP/1020-00000003", "OUTNUM=Outbound#Replaced") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:17] Set("PJSIP/1020-00000003", "custom=SIP/fpbx-1-ytan1oSTxCwG") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:18] ExecIf("PJSIP/1020-00000003", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:19] ExecIf("PJSIP/1020-00000003", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:20] Macro("PJSIP/1020-00000003", "dialout-trunk-predial-hook,") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("PJSIP/1020-00000003", "") in new stack
[Feb 14 18:21:46]     -- Executing [s@macro-dialout-trunk:21] GotoIf("PJSIP/1020-00000003", "0?bypass,1") in new stack
[Feb 14 18:21:47]     -- Executing [s@macro-dialout-trunk:22] ExecIf("PJSIP/1020-00000003", "1?Set(CONNECTEDLINE(num,i)=Outbound#Replaced)") in new stack
[Feb 14 18:21:47]     -- Executing [s@macro-dialout-trunk:23] ExecIf("PJSIP/1020-00000003", "1?Set(CONNECTEDLINE(name,i)=CID:1020)") in new stack
[Feb 14 18:21:47]     -- Executing [s@macro-dialout-trunk:24] ExecIf("PJSIP/1020-00000003", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)1020)") in new stack
[Feb 14 18:21:47]     -- Executing [s@macro-dialout-trunk:25] GotoIf("PJSIP/1020-00000003", "0?customtrunk") in new stack
[Feb 14 18:21:47]     -- Executing [s@macro-dialout-trunk:26] ExecIf("PJSIP/1020-00000003", "0?Set(DIAL_TRUNK_OPTIONS=)") in new stack
[Feb 14 18:21:47]     -- Executing [s@macro-dialout-trunk:27] Set("PJSIP/1020-00000003", "HASH(__SIPHEADERS,Alert-Info)=unset") in new stack
[Feb 14 18:21:47]     -- Executing [s@macro-dialout-trunk:28] Dial("PJSIP/1020-00000003", "SIP/fpbx-1-ytan1oSTxCwG/Outbound#Replaced,300,Tb(func-apply-sipheaders^s^1,(2))U(sub-send-obroute-email^Outbound#Replaced^Outbound#Replaced^2^1613348506^^1020)") in new stack
[Feb 14 18:21:47]   == Using SIP RTP TOS bits 184
[Feb 14 18:21:47]   == Using SIP RTP CoS mark 5
[Feb 14 18:21:47]     -- SIP/fpbx-1-ytan1oSTxCwG-00000002 Internal Gosub(func-apply-sipheaders,s,1(2)) start
[Feb 14 18:21:47]     -- Executing [s@func-apply-sipheaders:1] NoOp("SIP/fpbx-1-ytan1oSTxCwG-00000002", "Applying SIP Headers to channel SIP/fpbx-1-ytan1oSTxCwG-00000002") in new stack
[Feb 14 18:21:47]     -- Executing [s@func-apply-sipheaders:2] Set("SIP/fpbx-1-ytan1oSTxCwG-00000002", "TECH=SIP") in new stack
[Feb 14 18:21:47]     -- Executing [s@func-apply-sipheaders:3] Set("SIP/fpbx-1-ytan1oSTxCwG-00000002", "SIPHEADERKEYS=Alert-Info") in new stack
[Feb 14 18:21:47]     -- Executing [s@func-apply-sipheaders:4] While("SIP/fpbx-1-ytan1oSTxCwG-00000002", "1") in new stack
[Feb 14 18:21:47]     -- Executing [s@func-apply-sipheaders:5] Set("SIP/fpbx-1-ytan1oSTxCwG-00000002", "sipheader=unset") in new stack
[Feb 14 18:21:47]     -- Executing [s@func-apply-sipheaders:6] ExecIf("SIP/fpbx-1-ytan1oSTxCwG-00000002", "1?SIPRemoveHeader(Alert-Info:)") in new stack
[Feb 14 18:21:47]     -- Executing [s@func-apply-sipheaders:7] ExecIf("SIP/fpbx-1-ytan1oSTxCwG-00000002", "0?Set(PJSIP_HEADER(remove,Alert-Info)=)") in new stack
[Feb 14 18:21:47]     -- Executing [s@func-apply-sipheaders:8] ExecIf("SIP/fpbx-1-ytan1oSTxCwG-00000002", "0?Set(sipheader=<http://127.0.0.1>;info=unset)") in new stack
[Feb 14 18:21:47]     -- Executing [s@func-apply-sipheaders:9] ExecIf("SIP/fpbx-1-ytan1oSTxCwG-00000002", "0?Set(sipheader=<http://127.0.0.1>unset)") in new stack
[Feb 14 18:21:47]     -- Executing [s@func-apply-sipheaders:10] ExecIf("SIP/fpbx-1-ytan1oSTxCwG-00000002", "0?SIPAddHeader(Alert-Info:unset)") in new stack
[Feb 14 18:21:47]     -- Executing [s@func-apply-sipheaders:11] ExecIf("SIP/fpbx-1-ytan1oSTxCwG-00000002", "0?Set(PJSIP_HEADER(add,Alert-Info)=unset)") in new stack
[Feb 14 18:21:47]     -- Executing [s@func-apply-sipheaders:12] EndWhile("SIP/fpbx-1-ytan1oSTxCwG-00000002", "") in new stack
[Feb 14 18:21:47]     -- Executing [s@func-apply-sipheaders:4] While("SIP/fpbx-1-ytan1oSTxCwG-00000002", "0") in new stack
[Feb 14 18:21:47]     -- Executing [s@func-apply-sipheaders:13] Return("SIP/fpbx-1-ytan1oSTxCwG-00000002", "") in new stack
[Feb 14 18:21:47]   == Spawn extension (from-pstn, Outbound#Replaced, 1) exited non-zero on 'SIP/fpbx-1-ytan1oSTxCwG-00000002'
[Feb 14 18:21:47]     -- SIP/fpbx-1-ytan1oSTxCwG-00000002 Internal Gosub(func-apply-sipheaders,s,1(2)) complete GOSUB_RETVAL=
[Feb 14 18:21:47]     -- Called SIP/fpbx-1-ytan1oSTxCwG/Outbound#Replaced
[Feb 14 18:21:48]     -- SIP/fpbx-1-ytan1oSTxCwG-00000002 redirecting info has changed, passing it to PJSIP/1020-00000003
[Feb 14 18:21:48]     -- SIP/fpbx-1-ytan1oSTxCwG-00000002 is busy
[Feb 14 18:21:48]   == Everyone is busy/congested at this time (1:1/0/0)
[Feb 14 18:21:48]     -- Executing [s@macro-dialout-trunk:29] NoOp("PJSIP/1020-00000003", "Dial failed for some reason with DIALSTATUS = BUSY and HANGUPCAUSE = 19") in new stack
[Feb 14 18:21:48]     -- Executing [s@macro-dialout-trunk:30] GotoIf("PJSIP/1020-00000003", "0?continue,1:s-BUSY,1") in new stack
[Feb 14 18:21:48]     -- Goto (macro-dialout-trunk,s-BUSY,1)
[Feb 14 18:21:48]     -- Executing [s-BUSY@macro-dialout-trunk:1] NoOp("PJSIP/1020-00000003", "Dial failed due to trunk reporting BUSY - giving up") in new stack
[Feb 14 18:21:48]     -- Executing [s-BUSY@macro-dialout-trunk:2] PlayTones("PJSIP/1020-00000003", "busy") in new stack
[Feb 14 18:21:48]     -- Executing [s-BUSY@macro-dialout-trunk:3] Busy("PJSIP/1020-00000003", "20") in new stack
[Feb 14 18:21:48]   == Spawn extension (macro-dialout-trunk, s-BUSY, 3) exited non-zero on 'PJSIP/1020-00000003' in macro 'dialout-trunk'
[Feb 14 18:21:48]   == Spawn extension (restrictedroute-d1308a78dfbb97fce72e6f0645f97e2c, Outbound#Replaced, 12) exited non-zero on 'PJSIP/1020-00000003'
[Feb 14 18:21:48]     -- Executing [h@restrictedroute-d1308a78dfbb97fce72e6f0645f97e2c:1] Hangup("PJSIP/1020-00000003", "") in new stack
[Feb 14 18:21:48]   == Spawn extension (restrictedroute-d1308a78dfbb97fce72e6f0645f97e2c, h, 1) exited non-zero on 'PJSIP/1020-00000003'

Posts: 3

Participants: 1

Read full topic

FreePBX Fraud attack

$
0
0

@djgaidel wrote:

Hi,

Need help checking what happen here. My current setup is Twilio Sip Trunk -> FreePBX

I am using WAN ip in my FreePBX and enabled Firewall and Intruder alert. Someone is registering in my PBX for several hours i haven’t seen logs to which he successfully registered SIP to my PBX. After that he uses all my credits in twilio to spam calls to certain numbers. My PBX is not accessible via other IP except if it pass through my gateway.

  1. What do you think happen here?
  2. How can i prevent this from happening again?

Thankyou

Posts: 9

Participants: 1

Read full topic

UCP Error LOG

$
0
0

@fbedia wrote:

Hello!

I have these error messages in ucp_err.log

2021-02-10 00:21 +01:00: There was an error with MySQL Connection
2021-02-10 08:21 +01:00: { Error: MySQL server has gone away code: 2006 }
2021-02-10 08:21 +01:00: There was an error with MySQL Connection
2021-02-10 16:21 +01:00: { Error: MySQL server has gone away code: 2006 }
2021-02-10 16:21 +01:00: There was an error with MySQL Connection
2021-02-11 00:21 +01:00: { Error: MySQL server has gone away code: 2006 }
2021-02-11 00:21 +01:00: There was an error with MySQL Connection
2021-02-11 08:21 +01:00: { Error: MySQL server has gone away code: 2006 }
2021-02-11 08:21 +01:00: There was an error with MySQL Connection
2021-02-11 16:21 +01:00: { Error: MySQL server has gone away code: 2006 }
2021-02-11 16:21 +01:00: There was an error with MySQL Connection
2021-02-12 00:21 +01:00: { Error: MySQL server has gone away code: 2006 }
2021-02-12 00:21 +01:00: There was an error with MySQL Connection
2021-02-12 08:21 +01:00: { Error: MySQL server has gone away code: 2006 }
2021-02-12 08:21 +01:00: There was an error with MySQL Connection
2021-02-12 16:21 +01:00: { Error: MySQL server has gone away code: 2006 }
2021-02-12 16:21 +01:00: There was an error with MySQL Connection
2021-02-13 00:21 +01:00: { Error: MySQL server has gone away code: 2006 }
2021-02-13 00:21 +01:00: There was an error with MySQL Connection
2021-02-13 08:21 +01:00: { Error: MySQL server has gone away code: 2006 }
2021-02-13 08:21 +01:00: There was an error with MySQL Connection
2021-02-13 16:21 +01:00: { Error: MySQL server has gone away code: 2006 }
2021-02-13 16:21 +01:00: There was an error with MySQL Connection
2021-02-14 00:21 +01:00: { Error: MySQL server has gone away code: 2006 }
2021-02-14 00:21 +01:00: There was an error with MySQL Connection
2021-02-14 08:21 +01:00: { Error: MySQL server has gone away code: 2006 }
2021-02-14 08:21 +01:00: There was an error with MySQL Connection
2021-02-14 16:21 +01:00: { Error: MySQL server has gone away code: 2006 }
2021-02-14 16:21 +01:00: There was an error with MySQL Connection
2021-02-15 00:21 +01:00: { Error: MySQL server has gone away code: 2006 }
2021-02-15 00:21 +01:00: There was an error with MySQL Connection
2021-02-15 08:21 +01:00: { Error: MySQL server has gone away code: 2006 }
2021-02-15 08:21 +01:00: There was an error with MySQL Connection

I see this report, it’s the same as my case: https://issues.freepbx.org/browse/FREEPBX-21594

But it has been months without response … Can anyone help me?

Posts: 2

Participants: 1

Read full topic

How to set up Telnyx Caller ID for inbound calls on FreePBX?

$
0
0

@djr12002 wrote:

Basically the title says it all. Made an account with Telnyx for their Caller ID service. I would like it to work within FreePBX for all of my inbound calls. Can anyone give some advice or information on how to do it?

I have attempted to look over their guides, but there is nothing there for FreePBX. Reached out to support and they said this:

Ah, I see. Unfortunately we’re not familiar with PBXs past the initial configuration interop.

Posts: 11

Participants: 1

Read full topic

Optional Destinations - Always defaults to No Answer

$
0
0

@DR7PBX wrote:

The optional destination under advanced settings for extensions allows for three destinations. One of these is busy. Unfortunately, I haven’t been able to get my extension to use anything except No answer.

Some options I have tried:

  • Get on call 1. As call 2 rolls in, select reject on phone. Caller goes to no answer destination instead of busy.
  • Phone is idle. Call rolls in and it rings. I select reject. Caller goes to no answer destination instead of busy.

Posts: 3

Participants: 1

Read full topic

Encryption for manager.conf

$
0
0

@LTelephony wrote:

Hello together,

i want to setup a PBX which is reachable from the internet.
I already setup everything with IDS and TLS/SRTP, working fine!

But now it comes to TAPI or manager.conf access. I read that i can enable encryption for that here

But how do I do that? I think i have to edit the manager.conf file over console/ssh access right?
But what happens when i install some updates, does the manager.conf gets overwritten than?

Posts: 9

Participants: 1

Read full topic


Freepbx suggest me to run "Fwconsole reload --verbose" when I click on red button "Apply Config"

$
0
0

@mikele83 wrote:

Hi to all,

I’ve uploaded freebox modules but after reboot when I click on the red button “Apply config” the popup appear: “Unknown Error. Please Run: fwconsole reload --verbose”

So I go to console as root and the command success.

But it is annoing because evere time I make one modify through GUI I have to rerun the command in console.

any ideas?

regards.

Posts: 8

Participants: 1

Read full topic

Set up VPN on Yealink T-22P phone

$
0
0

@sgseidel wrote:

FreePBX 15.0.17.24 / Asterisk 16.15.1 / all modules up to date

I am trying to set up VPN on a Yealink T-22P phone to connect remotely to an OpenVPN server on FreePBX using the standard port 1194. The FreePBX server is at 11.22.15.72 (anonomized), and the public IP of the remote Yealink phone is 11.22.23.21 (anonomized). I have set up two Sangoma S500 phones as VPN clients on the same remote network 11.22.23.21 and they work perfectly as VPN clients. Note that I am using a pfSense firewall and port 1194 has been opened to 11.22.23.21 and forwarded to FreePBX.

The T-22P phone was Reset to Factory. Note that I have no problem connecting the T-22P as a remote phone from 11.22.13.21 but it fails when I try to set it up to connect to the OpenVPN server on FreePBX.

I am using this procedure in the link in the FreePBX wiki:

https://wiki.freepbx.org/display/FDT/[How-to]+Set+up+VPN+on+Yealink+Phone

and generate the following files from UCP for the Yealink extension: sysadmin_ca.crt, sysadmin_client1.conf, sysadmin_client109.crt, sysadmin_client109.key, and sysadmin_client109.ovpn.

Here is my vpn.cnf file with the .ca (i.e., sysadmin_ca.crt), .crt (i.e., sysadmin_client109.crt) and .key (i.e., sysadmin_client109.key) info removed:

client
dev tun
proto udp
remote 11.22.15.72
port 5061
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
key-direction 1
cipher AES-128-CBC
auth SHA256
comp-lzo
verb 3

<ca>
-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----
</ca>
<cert>
Certificate:

-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----

-----END PRIVATE KEY-----
</key>

The vpn.cnf file has been tar-red as follows:

tar cvf vpn.cfg.tar vpn.cnf

In the Network==>Advanced menu of the Yealink phone GUI I am able to upload the vpn.cfg.tar file. When I press Confirm, the Yealink phone GUI indicates “Operating Please Wait” which I believe should indicate that the file was successfully uploaded.

Here is a tcpdump of port 1194 (IP address anonomized). Note that ports 40976 and 52272 are the Sangoma S500 phones which are set up to connect with the OpenVPN server on FreePBX. There is no indication that the T-22P is sending out anything over port 1194.

[stewart@freepbx15vb asterisk]$ sudo tcpdump port 1194
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
08:34:40.533376 IP 11-22-23-21.dyn.novuscom.net.52272 > freepbx15vb.openvpn: UDP, length 53
08:34:40.533492 IP freepbx15vb.openvpn > 11-22-23-21.dyn.novuscom.net.52272: UDP, length 53
08:34:44.237803 IP 11-22-23-21.dyn.novuscom.net.40976 > freepbx15vb.openvpn: UDP, length 69
08:34:44.246830 IP 11-22-23-21.dyn.novuscom.net.40976 > freepbx15vb.openvpn: UDP, length 69
08:34:45.257676 IP 11-22-23-21.dyn.novuscom.net.40976 > freepbx15vb.openvpn: UDP, length 69
08:34:45.267826 IP 11-22-23-21.dyn.novuscom.net.40976 > freepbx15vb.openvpn: UDP, length 69
08:34:46.485358 IP 11-22-23-21.dyn.novuscom.net.52272 > freepbx15vb.openvpn: UDP, length 69
08:34:46.493595 IP 11-22-23-21.dyn.novuscom.net.52272 > freepbx15vb.openvpn: UDP, length 69
08:34:47.465923 IP 11-22-23-21.dyn.novuscom.net.52272 > freepbx15vb.openvpn: UDP, length 69
08:34:47.475943 IP 11-22-23-21.dyn.novuscom.net.52272 > freepbx15vb.openvpn: UDP, length 69
08:34:48.672334 IP freepbx15vb.openvpn > 11-22-23-21.dyn.novuscom.net.40976: UDP, length 53
08:34:50.789614 IP freepbx15vb.openvpn > 11-22-23-21.dyn.novuscom.net.52272: UDP, length 53
08:34:56.005310 IP 11-22-23-21.dyn.novuscom.net.40976 > freepbx15vb.openvpn: UDP, length 53
08:34:57.843753 IP 11-22-23-21.dyn.novuscom.net.52272 > freepbx15vb.openvpn: UDP, length 53
08:34:58.999197 IP freepbx15vb.openvpn > 11-22-23-21.dyn.novuscom.net.40976: UDP, length 53
08:35:01.062391 IP freepbx15vb.openvpn > 11-22-23-21.dyn.novuscom.net.52272: UDP, length 53
08:35:04.236986 IP 11-22-23-21.dyn.novuscom.net.40976 > freepbx15vb.openvpn: UDP, length 69
08:35:05.258603 IP 11-22-23-21.dyn.novuscom.net.40976 > freepbx15vb.openvpn: UDP, length 69
08:35:05.268837 IP 11-22-23-21.dyn.novuscom.net.40976 > freepbx15vb.openvpn: UDP, length 69
08:35:06.486154 IP 11-22-23-21.dyn.novuscom.net.52272 > freepbx15vb.openvpn: UDP, length 69
08:35:06.493629 IP 11-22-23-21.dyn.novuscom.net.52272 > freepbx15vb.openvpn: UDP, length 69
08:35:07.464571 IP 11-22-23-21.dyn.novuscom.net.52272 > freepbx15vb.openvpn: UDP, length 69
08:35:07.473915 IP 11-22-23-21.dyn.novuscom.net.52272 > freepbx15vb.openvpn: UDP, length 69
08:35:08.639106 IP freepbx15vb.openvpn > 11-22-23-21.dyn.novuscom.net.40976: UDP, length 53
^C
24 packets captured
26 packets received by filter
0 packets dropped by kernel
[stewart@freepbx15vb asterisk]$

Any suggestions would be appreciated.

Posts: 3

Participants: 1

Read full topic

PJSIP dual phone problem

$
0
0

@threeeye wrote:

I have 2 phones registered with PJSIP (ext 2022)
The 2 phones are not playing well together…
It’s 1 working the other not, or both not working.
Sometimes it just goes directly to Voice Mail…
As I was talking to that ext (when it decided to work), I got this (while still on the phone):

-- Contact 2022/sip:2022@192.168.111.156:5060 is now Unreachable.  RTT: 0.000 msec
-- Contact 2022/sip:2022@192.168.110.67:5060 is now Unreachable.  RTT: 0.000 msec

== Endpoint 2022 is now Unreachable

After that there was no post until we hung up the phone.
Then I tried calling it again, it went directly to Voice Mail (twice - in a space of 5min)
Then it worked again…
Max Contacts is set to 6.

Here is the full log:

[2021-02-15 13:46:09] SECURITY[2289]: res_security_log.c:116 security_event_stasis_cb: SecurityEvent=“SuccessfulAuth”,EventTV=“2021-02-15T13:46:09.538-0500”,Severity=“Informational”,Service=“SIP”,EventVersion=“1”,AccountID=“2022”,SessionID=“0x7fcce8051ec8”,LocalAddress=“IPV4/UDP/192.168.110.2/5160”,RemoteAddress=“IPV4/UDP/192.168.110.20/5160”,UsingPassword=“1”
– Executing [2022@from-internal:1] GotoIf(“SIP/2035-0000bad5”, “1?ext-local,2022,1:followme-check,2022,1”) in new stack
– Goto (ext-local,2022,1)
– Executing [2022@ext-local:1] Set(“SIP/2035-0000bad5”, “__RINGTIMER=25”) in new stack
– Executing [2022@ext-local:2] ExecIf(“SIP/2035-0000bad5”, “0?Set(__CWIGNORE=)”) in new stack
– Executing [2022@ext-local:3] Macro(“SIP/2035-0000bad5”, “exten-vm,2022,2022,0,0,0”) in new stack
– Executing [s@macro-user-callerid:18] ExecIf(“SIP/2035-0000bad5”, “0?Set(CUSDIAL=2022)”) in new stack
– Executing [s@macro-exten-vm:3] Set(“SIP/2035-0000bad5”, “__EXTTOCALL=2022”) in new stack
– Executing [s@macro-exten-vm:4] Set(“SIP/2035-0000bad5”, “__PICKUPMARK=2022”) in new stack
– Executing [s@macro-exten-vm:6] ExecIf(“SIP/2035-0000bad5”, “0?Macro(vm,2022,DIRECTDIAL,)”) in new stack
– Executing [s@macro-exten-vm:8] ExecIf(“SIP/2035-0000bad5”, “0?Gosub(ext-intercom,*802022,1())”) in new stack
– Executing [s@macro-exten-vm:10] ExecIf(“SIP/2035-0000bad5”, “0?ChanSpy(PJSIP/2022,q)”) in new stack
– Executing [s@macro-exten-vm:12] ExecIf(“SIP/2035-0000bad5”, “0?Macro(vm,2022,DIRECTDIAL,)”) in new stack
– Executing [s@macro-exten-vm:14] ExecIf(“SIP/2035-0000bad5”, “0?Gosub(ext-intercom,*802022,1())”) in new stack
– Executing [s@macro-exten-vm:16] ExecIf(“SIP/2035-0000bad5”, “0?ChanSpy(PJSIP/2022,q)”) in new stack
– Executing [s@macro-exten-vm:18] Gosub(“SIP/2035-0000bad5”, “sub-record-check,s,1(exten,2022,dontcare)”) in new stack
– Executing [exten@sub-record-check:1] NoOp(“SIP/2035-0000bad5”, “Exten Recording Check between 2035 and 2022”) in new stack
– Executing [exten@sub-record-check:16] Gosub(“SIP/2035-0000bad5”, “recordcheck,1(dontcare,internal,2022)”) in new stack
– Executing [s@macro-exten-vm:26] Macro(“SIP/2035-0000bad5”, “dial-one,25,Ttr,2022”) in new stack
– Executing [s@macro-dial-one:1] Set(“SIP/2035-0000bad5”, “DEXTEN=2022”) in new stack
– Executing [s@macro-dial-one:2] ExecIf(“SIP/2035-0000bad5”, “0?Set(__EXTTOCALL=2022)”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“SIP/2035-0000bad5”, “DEVICES=2022”) in new stack
– Executing [dstring@macro-dial-one:7] Set(“SIP/2035-0000bad5”, “THISDIAL=PJSIP/2022”) in new stack
– Executing [dstring@macro-dial-one:9] NoOp(“SIP/2035-0000bad5”, “Debug: Found PJSIP Destination PJSIP/2022”) in new stack
– Executing [dstring@macro-dial-one:12] Set(“SIP/2035-0000bad5”, “THISDIAL=PJSIP/2022/sip:2022@192.168.110.67:5060&PJSIP/2022/sip:2022@192.168.111.156:5060”) in new stack
– Executing [dstring@macro-dial-one:15] Set(“SIP/2035-0000bad5”, “DSTRING=PJSIP/2022/sip:2022@192.168.110.67:5060&PJSIP/2022/sip:2022@192.168.111.156:5060&”) in new stack
– Executing [dstring@macro-dial-one:19] Set(“SIP/2035-0000bad5”, “DSTRING=PJSIP/2022/sip:2022@192.168.110.67:5060&PJSIP/2022/sip:2022@192.168.111.156:5060”) in new stack
– Executing [ctset@macro-dial-one:1] Set(“SIP/2035-0000bad5”, “DB(CALLTRACE/2022)=2035”) in new stack
– Executing [s@macro-dial-one:46] Gosub(“SIP/2035-0000bad5”, “sub-presencestate-display,s,1(2022)”) in new stack
– Executing [s@macro-dial-one:48] Set(“SIP/2035-0000bad5”, “CONNECTEDLINE(num)=2022”) in new stack
– Executing [s@macro-dial-one:55] Dial(“SIP/2035-0000bad5”, “PJSIP/2022/sip:2022@192.168.110.67:5060&PJSIP/2022/sip:2022@192.168.111.156:5060,25,Ttrb(func-apply-sipheaders^s^1)”) in new stack
– PJSIP/2022-000010d1 Internal Gosub(func-apply-sipheaders,s,1) start
– Executing [s@func-apply-sipheaders:1] NoOp(“PJSIP/2022-000010d1”, “Applying SIP Headers to channel PJSIP/2022-000010d1”) in new stack
– Executing [s@func-apply-sipheaders:2] Set(“PJSIP/2022-000010d1”, “TECH=PJSIP”) in new stack
– Executing [s@func-apply-sipheaders:3] Set(“PJSIP/2022-000010d1”, “SIPHEADERKEYS=”) in new stack
– Executing [s@func-apply-sipheaders:4] While(“PJSIP/2022-000010d1”, “0”) in new stack
– Executing [s@func-apply-sipheaders:13] Return(“PJSIP/2022-000010d1”, “”) in new stack
== Spawn extension (from-internal, 2022, 1) exited non-zero on ‘PJSIP/2022-000010d1’
– PJSIP/2022-000010d1 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
– PJSIP/2022-000010d2 Internal Gosub(func-apply-sipheaders,s,1) start
– Executing [s@func-apply-sipheaders:1] NoOp(“PJSIP/2022-000010d2”, “Applying SIP Headers to channel PJSIP/2022-000010d2”) in new stack
– Executing [s@func-apply-sipheaders:2] Set(“PJSIP/2022-000010d2”, “TECH=PJSIP”) in new stack
– Executing [s@func-apply-sipheaders:3] Set(“PJSIP/2022-000010d2”, “SIPHEADERKEYS=”) in new stack
– Executing [s@func-apply-sipheaders:4] While(“PJSIP/2022-000010d2”, “0”) in new stack
– Executing [s@func-apply-sipheaders:13] Return(“PJSIP/2022-000010d2”, “”) in new stack
== Spawn extension (from-internal, 2022, 1) exited non-zero on ‘PJSIP/2022-000010d2’
– PJSIP/2022-000010d2 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
– Called PJSIP/2022/sip:2022@192.168.110.67:5060
– Called PJSIP/2022/sip:2022@192.168.111.156:5060
– PJSIP/2022-000010d1 connected line has changed. Saving it until answer for SIP/2035-0000bad5
– PJSIP/2022-000010d2 connected line has changed. Saving it until answer for SIP/2035-0000bad5
– PJSIP/2022-000010d2 is ringing
– PJSIP/2022-000010d1 is ringing
– PJSIP/2022-000010d2 answered SIP/2035-0000bad5
– Channel PJSIP/2022-000010d2 joined ‘simple_bridge’ basic-bridge <332b5fe9-f0ff-47fc-a571-7b6cad75ec73>
[2021-02-15 13:46:25] SECURITY[2289]: res_security_log.c:116 security_event_stasis_cb: SecurityEvent=“ChallengeSent”,EventTV=“2021-02-15T13:46:25.820-0500”,Severity=“Informational”,Service=“PJSIP”,EventVersion=“1”,AccountID=“2022”,SessionID="346f9017-953b0140-3bfacb23-38b4843d@192.168.111.156",LocalAddress=“IPV4/UDP/192.168.110.2/5060”,RemoteAddress=“IPV4/UDP/192.168.111.156/5060”,Challenge=""
[2021-02-15 13:46:25] SECURITY[2289]: res_security_log.c:116 security_event_stasis_cb: SecurityEvent=“SuccessfulAuth”,EventTV=“2021-02-15T13:46:25.826-0500”,Severity=“Informational”,Service=“PJSIP”,EventVersion=“1”,AccountID=“2022”,SessionID="346f9017-953b0140-3bfacb23-38b4843d@192.168.111.156",LocalAddress=“IPV4/UDP/192.168.110.2/5060”,RemoteAddress=“IPV4/UDP/192.168.111.156/5060”,UsingPassword=“1”
– Contact 2022/sip:2022@192.168.111.156:5060 is now Unreachable. RTT: 0.000 msec
– Contact 2022/sip:2022@192.168.110.67:5060 is now Unreachable. RTT: 0.000 msec
== Endpoint 2022 is now Unreachable
– Channel PJSIP/2022-000010d2 left ‘simple_bridge’ basic-bridge <332b5fe9-f0ff-47fc-a571-7b6cad75ec73>
== Spawn extension (ext-local, 2022, 3) exited non-zero on ‘SIP/2035-0000bad5’
– Executing [s@macro-hangupcall:4] NoOp(“SIP/2035-0000bad5”, "PJSIP/2022-000010d2 montior file= ") in new stack
[2021-02-15 13:47:16] SECURITY[2289]: res_security_log.c:116 security_event_stasis_cb: SecurityEvent=“SuccessfulAuth”,EventTV=“2021-02-15T13:47:16.246-0500”,Severity=“Informational”,Service=“SIP”,EventVersion=“1”,AccountID=“2022”,SessionID=“0x7fcce8256828”,LocalAddress=“IPV4/UDP/192.168.110.2/5160”,RemoteAddress=“IPV4/UDP/192.168.111.31/5160”,UsingPassword=“1”
– Executing [2022@from-internal:1] GotoIf(“SIP/2030-0000bad8”, “1?ext-local,2022,1:followme-check,2022,1”) in new stack
– Goto (ext-local,2022,1)
– Executing [2022@ext-local:1] Set(“SIP/2030-0000bad8”, “__RINGTIMER=25”) in new stack
– Executing [2022@ext-local:2] ExecIf(“SIP/2030-0000bad8”, “0?Set(__CWIGNORE=)”) in new stack
– Executing [2022@ext-local:3] Macro(“SIP/2030-0000bad8”, “exten-vm,2022,2022,0,0,0”) in new stack
– Executing [s@macro-user-callerid:18] ExecIf(“SIP/2030-0000bad8”, “0?Set(CUSDIAL=2022)”) in new stack
– Executing [s@macro-exten-vm:3] Set(“SIP/2030-0000bad8”, “__EXTTOCALL=2022”) in new stack
– Executing [s@macro-exten-vm:4] Set(“SIP/2030-0000bad8”, “__PICKUPMARK=2022”) in new stack
– Executing [s@macro-exten-vm:6] ExecIf(“SIP/2030-0000bad8”, “0?Macro(vm,2022,DIRECTDIAL,)”) in new stack
– Executing [s@macro-exten-vm:8] ExecIf(“SIP/2030-0000bad8”, “0?Gosub(ext-intercom,*802022,1())”) in new stack
– Executing [s@macro-exten-vm:10] ExecIf(“SIP/2030-0000bad8”, “0?ChanSpy(PJSIP/2022,q)”) in new stack
– Executing [s@macro-exten-vm:12] ExecIf(“SIP/2030-0000bad8”, “0?Macro(vm,2022,DIRECTDIAL,)”) in new stack
– Executing [s@macro-exten-vm:14] ExecIf(“SIP/2030-0000bad8”, “0?Gosub(ext-intercom,*802022,1())”) in new stack
– Executing [s@macro-exten-vm:16] ExecIf(“SIP/2030-0000bad8”, “0?ChanSpy(PJSIP/2022,q)”) in new stack
– Executing [s@macro-exten-vm:18] Gosub(“SIP/2030-0000bad8”, “sub-record-check,s,1(exten,2022,dontcare)”) in new stack
– Executing [exten@sub-record-check:1] NoOp(“SIP/2030-0000bad8”, “Exten Recording Check between 2030 and 2022”) in new stack
– Executing [exten@sub-record-check:16] Gosub(“SIP/2030-0000bad8”, “recordcheck,1(dontcare,internal,2022)”) in new stack
– Executing [s@macro-exten-vm:26] Macro(“SIP/2030-0000bad8”, “dial-one,25,Ttr,2022”) in new stack
– Executing [s@macro-dial-one:1] Set(“SIP/2030-0000bad8”, “DEXTEN=2022”) in new stack
– Executing [s@macro-dial-one:2] ExecIf(“SIP/2030-0000bad8”, “0?Set(__EXTTOCALL=2022)”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“SIP/2030-0000bad8”, “DEVICES=2022”) in new stack
– Executing [dstring@macro-dial-one:7] Set(“SIP/2030-0000bad8”, “THISDIAL=PJSIP/2022”) in new stack
– Executing [dstring@macro-dial-one:9] NoOp(“SIP/2030-0000bad8”, “Debug: Found PJSIP Destination PJSIP/2022”) in new stack
– Executing [s@macro-exten-vm:33] Macro(“SIP/2030-0000bad8”, “vm,2022,CHANUNAVAIL,”) in new stack
– Executing [vmx@macro-vm:1] Set(“SIP/2030-0000bad8”, “MEXTEN=2022”) in new stack
– Executing [vmx@macro-vm:5] Macro(“SIP/2030-0000bad8”, “get-vmcontext,2022”) in new stack
– Executing [vmx@macro-vm:13] NoOp(“SIP/2030-0000bad8”, "Checking if ext 2022 is enabled: ") in new stack
– Executing [s-CHANUNAVAIL@macro-vm:1] Macro(“SIP/2030-0000bad8”, “get-vmcontext,2022”) in new stack
– Executing [s-CHANUNAVAIL@macro-vm:2] VoiceMail(“SIP/2030-0000bad8”, “2022@default,u”) in new stack
== Spawn extension (ext-local, 2022, 3) exited non-zero on ‘SIP/2030-0000bad8’
[2021-02-15 13:47:32] SECURITY[2289]: res_security_log.c:116 security_event_stasis_cb: SecurityEvent=“SuccessfulAuth”,EventTV=“2021-02-15T13:47:32.919-0500”,Severity=“Informational”,Service=“SIP”,EventVersion=“1”,AccountID=“2022”,SessionID=“0x7fcce8325bb8”,LocalAddress=“IPV4/UDP/192.168.110.2/5160”,RemoteAddress=“IPV4/UDP/192.168.110.20/5160”,UsingPassword=“1”
– Executing [2022@from-internal:1] GotoIf(“SIP/2035-0000badb”, “1?ext-local,2022,1:followme-check,2022,1”) in new stack
– Goto (ext-local,2022,1)
– Executing [2022@ext-local:1] Set(“SIP/2035-0000badb”, “__RINGTIMER=25”) in new stack
– Executing [2022@ext-local:2] ExecIf(“SIP/2035-0000badb”, “0?Set(__CWIGNORE=)”) in new stack
– Executing [2022@ext-local:3] Macro(“SIP/2035-0000badb”, “exten-vm,2022,2022,0,0,0”) in new stack
– Executing [s@macro-user-callerid:18] ExecIf(“SIP/2035-0000badb”, “0?Set(CUSDIAL=2022)”) in new stack
– Executing [s@macro-exten-vm:3] Set(“SIP/2035-0000badb”, “__EXTTOCALL=2022”) in new stack
– Executing [s@macro-exten-vm:4] Set(“SIP/2035-0000badb”, “__PICKUPMARK=2022”) in new stack
– Executing [s@macro-exten-vm:6] ExecIf(“SIP/2035-0000badb”, “0?Macro(vm,2022,DIRECTDIAL,)”) in new stack
– Executing [s@macro-exten-vm:8] ExecIf(“SIP/2035-0000badb”, “0?Gosub(ext-intercom,*802022,1())”) in new stack
– Executing [s@macro-exten-vm:10] ExecIf(“SIP/2035-0000badb”, “0?ChanSpy(PJSIP/2022,q)”) in new stack
– Executing [s@macro-exten-vm:12] ExecIf(“SIP/2035-0000badb”, “0?Macro(vm,2022,DIRECTDIAL,)”) in new stack
– Executing [s@macro-exten-vm:14] ExecIf(“SIP/2035-0000badb”, “0?Gosub(ext-intercom,*802022,1())”) in new stack
– Executing [s@macro-exten-vm:16] ExecIf(“SIP/2035-0000badb”, “0?ChanSpy(PJSIP/2022,q)”) in new stack
– Executing [s@macro-exten-vm:18] Gosub(“SIP/2035-0000badb”, “sub-record-check,s,1(exten,2022,dontcare)”) in new stack
– Executing [exten@sub-record-check:1] NoOp(“SIP/2035-0000badb”, “Exten Recording Check between 2035 and 2022”) in new stack
– Executing [exten@sub-record-check:16] Gosub(“SIP/2035-0000badb”, “recordcheck,1(dontcare,internal,2022)”) in new stack
– Executing [s@macro-exten-vm:26] Macro(“SIP/2035-0000badb”, “dial-one,25,Ttr,2022”) in new stack
– Executing [s@macro-dial-one:1] Set(“SIP/2035-0000badb”, “DEXTEN=2022”) in new stack
– Executing [s@macro-dial-one:2] ExecIf(“SIP/2035-0000badb”, “0?Set(__EXTTOCALL=2022)”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“SIP/2035-0000badb”, “DEVICES=2022”) in new stack
– Executing [dstring@macro-dial-one:7] Set(“SIP/2035-0000badb”, “THISDIAL=PJSIP/2022”) in new stack
– Executing [dstring@macro-dial-one:9] NoOp(“SIP/2035-0000badb”, “Debug: Found PJSIP Destination PJSIP/2022”) in new stack
– Executing [s@macro-exten-vm:33] Macro(“SIP/2035-0000badb”, “vm,2022,CHANUNAVAIL,”) in new stack
– Executing [vmx@macro-vm:1] Set(“SIP/2035-0000badb”, “MEXTEN=2022”) in new stack
– Executing [vmx@macro-vm:5] Macro(“SIP/2035-0000badb”, “get-vmcontext,2022”) in new stack
– Executing [vmx@macro-vm:13] NoOp(“SIP/2035-0000badb”, "Checking if ext 2022 is enabled: ") in new stack
– Executing [s-CHANUNAVAIL@macro-vm:1] Macro(“SIP/2035-0000badb”, “get-vmcontext,2022”) in new stack
– Executing [s-CHANUNAVAIL@macro-vm:2] VoiceMail(“SIP/2035-0000badb”, “2022@default,u”) in new stack
– Contact 2022/sip:2022@192.168.111.156:5060 is now Reachable. RTT: 6.387 msec
== Endpoint 2022 is now Reachable
== Spawn extension (ext-local, 2022, 3) exited non-zero on ‘SIP/2035-0000badb’
– Contact 2022/sip:2022@192.168.110.67:5060 is now Reachable. RTT: 9.045 msec
[2021-02-15 13:49:13] SECURITY[2289]: res_security_log.c:116 security_event_stasis_cb: SecurityEvent=“SuccessfulAuth”,EventTV=“2021-02-15T13:49:13.666-0500”,Severity=“Informational”,Service=“SIP”,EventVersion=“1”,AccountID=“2022”,SessionID=“0x7fcce80da9e8”,LocalAddress=“IPV4/UDP/192.168.110.2/5160”,RemoteAddress=“IPV4/UDP/192.168.110.20/5160”,UsingPassword=“1”
– Executing [2022@from-internal:1] GotoIf(“SIP/2035-0000bade”, “1?ext-local,2022,1:followme-check,2022,1”) in new stack
– Goto (ext-local,2022,1)
– Executing [2022@ext-local:1] Set(“SIP/2035-0000bade”, “__RINGTIMER=25”) in new stack
– Executing [2022@ext-local:2] ExecIf(“SIP/2035-0000bade”, “0?Set(__CWIGNORE=)”) in new stack
– Executing [2022@ext-local:3] Macro(“SIP/2035-0000bade”, “exten-vm,2022,2022,0,0,0”) in new stack
– Executing [s@macro-user-callerid:18] ExecIf(“SIP/2035-0000bade”, “0?Set(CUSDIAL=2022)”) in new stack
– Executing [s@macro-exten-vm:3] Set(“SIP/2035-0000bade”, “__EXTTOCALL=2022”) in new stack
– Executing [s@macro-exten-vm:4] Set(“SIP/2035-0000bade”, “__PICKUPMARK=2022”) in new stack
– Executing [s@macro-exten-vm:6] ExecIf(“SIP/2035-0000bade”, “0?Macro(vm,2022,DIRECTDIAL,)”) in new stack
– Executing [s@macro-exten-vm:8] ExecIf(“SIP/2035-0000bade”, “0?Gosub(ext-intercom,*802022,1())”) in new stack
– Executing [s@macro-exten-vm:10] ExecIf(“SIP/2035-0000bade”, “0?ChanSpy(PJSIP/2022,q)”) in new stack
– Executing [s@macro-exten-vm:12] ExecIf(“SIP/2035-0000bade”, “0?Macro(vm,2022,DIRECTDIAL,)”) in new stack
– Executing [s@macro-exten-vm:14] ExecIf(“SIP/2035-0000bade”, “0?Gosub(ext-intercom,*802022,1())”) in new stack
– Executing [s@macro-exten-vm:16] ExecIf(“SIP/2035-0000bade”, “0?ChanSpy(PJSIP/2022,q)”) in new stack
– Executing [s@macro-exten-vm:18] Gosub(“SIP/2035-0000bade”, “sub-record-check,s,1(exten,2022,dontcare)”) in new stack
– Executing [exten@sub-record-check:1] NoOp(“SIP/2035-0000bade”, “Exten Recording Check between 2035 and 2022”) in new stack
– Executing [exten@sub-record-check:16] Gosub(“SIP/2035-0000bade”, “recordcheck,1(dontcare,internal,2022)”) in new stack
– Executing [s@macro-exten-vm:26] Macro(“SIP/2035-0000bade”, “dial-one,25,Ttr,2022”) in new stack
– Executing [s@macro-dial-one:1] Set(“SIP/2035-0000bade”, “DEXTEN=2022”) in new stack
– Executing [s@macro-dial-one:2] ExecIf(“SIP/2035-0000bade”, “0?Set(__EXTTOCALL=2022)”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“SIP/2035-0000bade”, “DEVICES=2022”) in new stack
– Executing [dstring@macro-dial-one:7] Set(“SIP/2035-0000bade”, “THISDIAL=PJSIP/2022”) in new stack
– Executing [dstring@macro-dial-one:9] NoOp(“SIP/2035-0000bade”, “Debug: Found PJSIP Destination PJSIP/2022”) in new stack
– Executing [dstring@macro-dial-one:12] Set(“SIP/2035-0000bade”, “THISDIAL=PJSIP/2022/sip:2022@192.168.110.67:5060&PJSIP/2022/sip:2022@192.168.111.156:5060”) in new stack
– Executing [dstring@macro-dial-one:15] Set(“SIP/2035-0000bade”, “DSTRING=PJSIP/2022/sip:2022@192.168.110.67:5060&PJSIP/2022/sip:2022@192.168.111.156:5060&”) in new stack
– Executing [dstring@macro-dial-one:19] Set(“SIP/2035-0000bade”, “DSTRING=PJSIP/2022/sip:2022@192.168.110.67:5060&PJSIP/2022/sip:2022@192.168.111.156:5060”) in new stack
– Executing [ctset@macro-dial-one:1] Set(“SIP/2035-0000bade”, “DB(CALLTRACE/2022)=2035”) in new stack
– Executing [s@macro-dial-one:46] Gosub(“SIP/2035-0000bade”, “sub-presencestate-display,s,1(2022)”) in new stack
– Executing [s@macro-dial-one:48] Set(“SIP/2035-0000bade”, “CONNECTEDLINE(num)=2022”) in new stack
– Executing [s@macro-dial-one:55] Dial(“SIP/2035-0000bade”, “PJSIP/2022/sip:2022@192.168.110.67:5060&PJSIP/2022/sip:2022@192.168.111.156:5060,25,Ttrb(func-apply-sipheaders^s^1)”) in new stack
– PJSIP/2022-000010d4 Internal Gosub(func-apply-sipheaders,s,1) start
– Executing [s@func-apply-sipheaders:1] NoOp(“PJSIP/2022-000010d4”, “Applying SIP Headers to channel PJSIP/2022-000010d4”) in new stack
– Executing [s@func-apply-sipheaders:2] Set(“PJSIP/2022-000010d4”, “TECH=PJSIP”) in new stack
– Executing [s@func-apply-sipheaders:3] Set(“PJSIP/2022-000010d4”, “SIPHEADERKEYS=”) in new stack
– Executing [s@func-apply-sipheaders:4] While(“PJSIP/2022-000010d4”, “0”) in new stack
– Executing [s@func-apply-sipheaders:13] Return(“PJSIP/2022-000010d4”, “”) in new stack
== Spawn extension (from-internal, 2022, 1) exited non-zero on ‘PJSIP/2022-000010d4’
– PJSIP/2022-000010d4 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
– PJSIP/2022-000010d5 Internal Gosub(func-apply-sipheaders,s,1) start
– Executing [s@func-apply-sipheaders:1] NoOp(“PJSIP/2022-000010d5”, “Applying SIP Headers to channel PJSIP/2022-000010d5”) in new stack
– Executing [s@func-apply-sipheaders:2] Set(“PJSIP/2022-000010d5”, “TECH=PJSIP”) in new stack
– Executing [s@func-apply-sipheaders:3] Set(“PJSIP/2022-000010d5”, “SIPHEADERKEYS=”) in new stack
– Executing [s@func-apply-sipheaders:4] While(“PJSIP/2022-000010d5”, “0”) in new stack
– Executing [s@func-apply-sipheaders:13] Return(“PJSIP/2022-000010d5”, “”) in new stack
== Spawn extension (from-internal, 2022, 1) exited non-zero on ‘PJSIP/2022-000010d5’
– PJSIP/2022-000010d5 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
– Called PJSIP/2022/sip:2022@192.168.110.67:5060
– Called PJSIP/2022/sip:2022@192.168.111.156:5060
– PJSIP/2022-000010d4 connected line has changed. Saving it until answer for SIP/2035-0000bade
– PJSIP/2022-000010d5 connected line has changed. Saving it until answer for SIP/2035-0000bade
– PJSIP/2022-000010d5 is ringing
– PJSIP/2022-000010d4 is ringing
– PJSIP/2022-000010d5 answered SIP/2035-0000bade
– Channel PJSIP/2022-000010d5 joined ‘simple_bridge’ basic-bridge
– Channel PJSIP/2022-000010d5 left ‘simple_bridge’ basic-bridge
== Spawn extension (ext-local, 2022, 3) exited non-zero on ‘SIP/2035-0000bade’
– Executing [s@macro-hangupcall:4] NoOp(“SIP/2035-0000bade”, "PJSIP/2022-000010d5 montior file= ") in new stack

Thanks for the help

Posts: 3

Participants: 1

Read full topic

SIP SIMPLE Message between PJSIP Extensions with multiple contacts (AORs)

$
0
0

@aratel wrote:

Hello, I use Distro 14 with Asterisk 16.

All my extensions are PJSIP extensions. Today I can send SIP SIMPLE IM message between extensions but only to one AOR contact of the PJSIP extension. If I have multiple phones connected to one extensions (multiple AOR), I can’t arrived to send a this message to all the phones.

My message_context is correctly set for all the PJSIP extension with astsms

With this custom context, it sends the message to the last registered AOR.

[astsms]
exten =&gt; _.,1,NoOp(SMS receiving dialplan invoked)
exten =&gt; _.,n,NoOp(To ${MESSAGE(to)})
exten =&gt; _.,n,NoOp(From ${MESSAGE(from)})
exten =&gt; _.,n,NoOp(Body ${MESSAGE(body)})
exten =&gt; _.,n,Set(ACTUALTO=${CUT(MESSAGE(to),@,1)})
exten =&gt; _.,n,MessageSend(${ACTUALTO},${MESSAGE(from)})
exten =&gt; _.,n,NoOp(Send status is ${MESSAGE_SEND_STATUS})
exten =&gt; _.,n,GotoIf($["${MESSAGE_SEND_STATUS}" != “SUCCESS”]?sendfailedmsg)
exten =&gt; _.,n,Hangup()
;
; Handle failed messaging
exten =&gt; _.,n(sendfailedmsg),Set(MESSAGE(body)="[${STRFTIME(${EPOCH},%d%m%Y-%H:%M:%S)}] Your message to ${EXTEN} has failed. Retry later.")
exten =&gt; _.,n,Set(ME_1=${CUT(MESSAGE(from),&lt;,2)})
exten =&gt; _.,n,Set(ACTUALFROM=${CUT(ME_1,@,1)})
exten =&gt; _.,n,MessageSend(${ACTUALFROM},ServiceCenter)
exten =&gt; _.,n,Hangup()
exten =&gt; _.,n,Hangup()

I have tried this context too :

[astsms]
exten =&gt; s,1,NoOp(Sending message!)
same =&gt; n,NoOp(To ${MESSAGE(to)})
same =&gt; n,NoOp(From ${MESSAGE(from)})
same =&gt; n,NoOp(Body ${MESSAGE(body)})
same =&gt; n,Set(from=${CUT(MESSAGE(from),@,1)})
same =&gt; n,Set(from_domain=${CUT(MESSAGE(from),@,2)})
same =&gt; n,Set(from_domain=${CUT(from_domain,;,1)})
same =&gt; n,Set(from_domain=${CUT(from_domain,&gt;,1)})
same =&gt; n,Set(from_no=${CUT(from,:,2)})
same =&gt; n,Set(to=${CUT(MESSAGE(to),@,1)})
same =&gt; n,Set(to_no=${CUT(to,:,2)})
same =&gt; n,Set(dial=${DB(DEVICE/${to_no}/dial)})
same =&gt; n,Set(tech=${TOLOWER(${CUT(dial,/,1)})})
same =&gt; n,GotoIf($["${tech}" != “pjsip”]?sendmsg)
same =&gt; n,Set(contacts=${PJSIP_AOR(${to_no},contact)})
same =&gt; n,While($["${SET(contact=${SHIFT(contacts,)})}" != “”])
same =&gt; n,Set(contacturi=${PJSIP_CONTACT(${contact},uri)})
same =&gt; n,Set(sipuri=${CUT(contacturi,;,1)})
same =&gt; n,Set(to_no=${CUT(contacturi,@,2)})
same =&gt; n(sendmsg),MessageSend(${tech}:${to_no},sip:${from_no}@${from_domain})
same =&gt; n,NoOp(Send status is ${MESSAGE_SEND_STATUS})
same =&gt; n,GotoIf($[${EXISTS(${contacturi})}]?:end)
same =&gt; n,EndWhile
same =&gt; n(end),HangUp()

But when I send an IM, I have a SIP/2.0 404 Not Found SIP Response

**2021/02/15 21:54:53.938630 XX.XX.XX.XX:8780 -> YY.YY.YY.YY:1485**
SIP/2.0 **404** Not Found
Via: SIP/2.0/UDP 192.168.0.20:1485;rport=1485;received=XX.XX.XX.XX;branch=z9hG4bKBApZ9FbfI2GwNvjv
Call-ID: **28BF83481A8C3765C865DDAAAC987F3C5DB4E5D8**
From: "Charles" &lt;sip:101@domain.fr&gt;;tag=EDF6D3BC5254C0266B1DB6E01E33D0C2
To: &lt;sip:199@domain.fr&gt;;tag=z9hG4bKBApZ9FbfI2GwNvjv
CSeq: 2 MESSAGE
Server: FPBX-14.0.16.4.1(16.15.1)
Content-Length: 0

Do you have any idea ?

Thanks

Posts: 4

Participants: 1

Read full topic

Trunk call issues

$
0
0

@Renoeka wrote:

Hi, I have issue with my outbound calls. I have a pjsip trunk between my freepbx and FXO gateway (TA410). And I am using this trunk for my outbound route. I have not changed any configuration. This has worked. but I do not know why it is not working anymore. Here is the flow of the call when I make an outbound call: https://pastebin.freepbx.org/view/1520b39e
I am getting “all circuits are busy now”. I have tried to configure a new trunk, but I am getting the same error.
Can somebody help me please solving this issue?

regards,
Renoeka

Posts: 1

Participants: 1

Read full topic

Viewing all 17587 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>