1 Freepbx server 2 IVR for 2 companies

Hello
I have a single freepbx server and 2 companies (in conclusion 2 phone numbers)
I have already set freepbx for one of the companies but I also want to set up for the second company that when calling the client to answer another irv and have other extensions to which other people answer! Can it set? if what if?

If you want to dedicate each numbr to each company, just create 2 different inbound routes, one for each number, and set each destination to the corresponding IVR. You need to specify the DID when you create each inbound route.

1 Like

You will also want the Parking Pro module to give them each their own parking lot and possibly the Extension Routing module to route outbound calls to control which Caller ID its coming from.

FreePBX is not great for multi-tenant. PBXact (commercial freepbx) has all the modules licensed to really setup 2 separate companies on the same without spending too much.

When i put DID number and call on number i get message not in service …

When i put DID number and call on number i get message not in service …an idea of ​​why?

Watch the asterisk console to see what did you are getting. could be 4805551212 14805551212 5551212 etc. it needs to match

DID number is not the same with phone number ? ?

you did should look like if your in the USA 1##########

No, because the phone company can send you as few as 4 digits of your phone number and expect you to deal with it.

From my provider i recive this settings

disallow=all
allow=ulaw&alaw
dtmfmode=rfc2833
host=sip.clickphone.ro
port=5060
fromdomain=sip.clickphone.ro
fromuser=577572
username=577572
insecure=invite,port
type=peer
nat=yes [adaugati aceasta linie daca sunteti in spatele unui router si nu aveti IP public]
qualify=yes
secret=** parola ta **
context=from-trunk

577572:[email protected]

I tried to put 577572 at DID but is not working…

Were i can find DID number ?

In the file /var/log/asterisk/full. There will probably be an entry that says something like “this should have an inbound route defined” (or something). Search the log file for 577572 and see what the phone company is actually sending you.

For 577572 thats all in /var/log/asterisk/full

[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 1 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 2 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 3 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 4 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 5 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 6 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 7 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 8 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 9 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 10 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 11 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 12 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 13 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 14 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 15 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 16 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 17 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 18 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 19 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 20 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 21 to ext-did-0002
[2018-01-04 18:12:11] VERBOSE[5474] pbx.c: Added extension ‘577572’ priority 22 to ext-did-0002

I put 0002 not working …

Try this instead:

  • Log into the console as ‘root’.
  • Start ‘asterisk -vvvvvvvr’
  • Call your DID.

You should see a call from the ITSP. The DID they are using to contact you will be in that call.

Another method would be to simply add an “ANY/ANY” route (an incoming route with no DID and no CID) so that your incoming calls have a place to land. From there, you should be able to tune your inbound routes to do what you need them to do.

This is the log when i make a call :slight_smile: i not find enything… i tried 151509… bun not working :slight_smile:

So any ideea ?
This is all log :frowning:

Executing [s@from-trunk:1] Set(“SIP/clickphone-0000000b”, “__DIRECTION=INBOUND”) in new stack
– Executing [s@from-trunk:2] Gosub(“SIP/clickphone-0000000b”, “sub-record-check,s,1(in,s,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/clickphone-0000000b”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/clickphone-0000000b”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/clickphone-0000000b”, “NOW=1515099015”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/clickphone-0000000b”, “__DAY=04”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/clickphone-0000000b”, “__MONTH=01”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/clickphone-0000000b”, “__YEAR=2018”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/clickphone-0000000b”, “__TIMESTR=20180104-225015”) in new stack
– Executing [s@sub-record-check:8] Set(“SIP/clickphone-0000000b”, “__FROMEXTEN=unknown”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/clickphone-0000000b”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/clickphone-0000000b”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/clickphone-0000000b”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/clickphone-0000000b”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/clickphone-0000000b”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/clickphone-0000000b”, “2?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/clickphone-0000000b”, “1?sub-record-check,in,1”) in new stack
– Goto (sub-record-check,in,1)
– Executing [in@sub-record-check:1] NoOp(“SIP/clickphone-0000000b”, “Inbound Recording Check to s”) in new stack
– Executing [in@sub-record-check:2] Set(“SIP/clickphone-0000000b”, “FROMEXTEN=unknown”) in new stack
– Executing [in@sub-record-check:3] ExecIf(“SIP/clickphone-0000000b”, “10?Set(FROMEXTEN=0736583299)”) in new stack
– Executing [in@sub-record-check:4] Gosub(“SIP/clickphone-0000000b”, “recordcheck,1(dontcare,in,s)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/clickphone-0000000b”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/clickphone-0000000b”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“SIP/clickphone-0000000b”, “”) in new stack
– Executing [in@sub-record-check:5] Return(“SIP/clickphone-0000000b”, “”) in new stack
– Executing [s@from-trunk:3] Gosub(“SIP/clickphone-0000000b”, “app-blacklist-check,s,1()”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“SIP/clickphone-0000000b”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“SIP/clickphone-0000000b”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“SIP/clickphone-0000000b”, “”) in new stack
– Executing [s@from-trunk:4] ExecIf(“SIP/clickphone-0000000b”, “1?Set(__FROM_DID=s)”) in new stack
– Executing [s@from-trunk:5] Set(“SIP/clickphone-0000000b”, “CDR(did)=s”) in new stack
– Executing [s@from-trunk:6] ExecIf(“SIP/clickphone-0000000b”, “0 ?Set(CALLERID(name)=0736583299)”) in new stack
– Executing [s@from-trunk:7] Set(“SIP/clickphone-0000000b”, “CHANNEL(musicclass)=pclaptopwait”) in new stack
– Executing [s@from-trunk:8] Set(“SIP/clickphone-0000000b”, “__MOHCLASS=pclaptopwait”) in new stack
– Executing [s@from-trunk:9] Set(“SIP/clickphone-0000000b”, “__REVERSAL_REJECT=FALSE”) in new stack
– Executing [s@from-trunk:10] GotoIf(“SIP/clickphone-0000000b”, “1?post-reverse-charge”) in new stack
– Goto (from-trunk,s,12)
– Executing [s@from-trunk:12] NoOp(“SIP/clickphone-0000000b”, “”) in new stack
– Executing [s@from-trunk:13] Set(“SIP/clickphone-0000000b”, “__CALLINGNAMEPRES_SV=allowed_not_screened”) in new stack
– Executing [s@from-trunk:14] Set(“SIP/clickphone-0000000b”, “__CALLINGNUMPRES_SV=allowed_not_screened”) in new stack
– Executing [s@from-trunk:15] Set(“SIP/clickphone-0000000b”, “CALLERID(name-pres)=allowed_not_screened”) in new stack
– Executing [s@from-trunk:16] Set(“SIP/clickphone-0000000b”, “CALLERID(num-pres)=allowed_not_screened”) in new stack
– Executing [s@from-trunk:17] NoOp(“SIP/clickphone-0000000b”, “CallerID Entry Point”) in new stack
– Executing [s@from-trunk:18] Set(“SIP/clickphone-0000000b”, “__CRM_DIRECTION=INBOUND”) in new stack
– Executing [s@from-trunk:19] Set(“SIP/clickphone-0000000b”, “__CRM_SOURCE=0736583299”) in new stack
– Executing [s@from-trunk:20] Set(“SIP/clickphone-0000000b”, “__CRM_LINKEDID=1515099015.11”) in new stack
– Executing [s@from-trunk:21] ExecIf(“SIP/clickphone-0000000b”, “1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [s@from-trunk:22] Goto(“SIP/clickphone-0000000b”, “timeconditions,1,1”) in new stack
– Goto (timeconditions,1,1)
– Executing [1@timeconditions:1] Set(“SIP/clickphone-0000000b”, “DB(TC/1/INUSESTATE)=INUSE”) in new stack
– Executing [1@timeconditions:2] Set(“SIP/clickphone-0000000b”, “DB(TC/1/NOT_INUSESTATE)=NOT_INUSE”) in new stack
– Executing [1@timeconditions:3] NoOp(“SIP/clickphone-0000000b”, “TIMENOW: 22:50,Thu, 4,Jan”) in new stack
– Executing [1@timeconditions:4] NoOp(“SIP/clickphone-0000000b”, “TIMEMATCHED: FALSE”) in new stack
– Executing [1@timeconditions:5] GotoIfTime(“SIP/clickphone-0000000b”, “10:00-19:00,mon-sun,1-31,jan-dec?truestate”) in new stack
– Executing [1@timeconditions:6] GotoIf(“SIP/clickphone-0000000b”, “0?truegoto”) in new stack
– Executing [1@timeconditions:7] ExecIf(“SIP/clickphone-0000000b”, “0?Set(DB(TC/1)=)”) in new stack
– Executing [1@timeconditions:8] Set(“SIP/clickphone-0000000b”, “DEVICE_STATE(Custom:TC1)=INUSE”) in new stack
– Executing [1@timeconditions:9] ExecIf(“SIP/clickphone-0000000b”, “0?Set(DEVICE_STATE(Custom:TCSTICKY)=INUSE)”) in new stack
– Executing [1@timeconditions:10] GotoIf(“SIP/clickphone-0000000b”, “1?app-announcement-1,s,1”) in new stack
– Goto (app-announcement-1,s,1)
– Executing [s@app-announcement-1:1] GotoIf(“SIP/clickphone-0000000b”, “0?begin”) in new stack
– Executing [s@app-announcement-1:2] Answer(“SIP/clickphone-0000000b”, “”) in new stack
– Executing [s@app-announcement-1:3] Wait(“SIP/clickphone-0000000b”, “1”) in new stack
> 0xb4b135e8 – Probation passed - setting RTP source address to 178.62.210.100:46052
– Executing [s@app-announcement-1:4] NoOp(“SIP/clickphone-0000000b”, “Playing announcement In afara programului”) in new stack
– Executing [s@app-announcement-1:5] Set(“SIP/clickphone-0000000b”, “TIMEOUT(response)=1”) in new stack
– Response timeout set to 1.000
– Executing [s@app-announcement-1:6] BackGround(“SIP/clickphone-0000000b”, “custom/program,nm”) in new stack
– <SIP/clickphone-0000000b> Playing ‘custom/program.slin’ (language ‘en’)
– Executing [s@app-announcement-1:7] WaitExten(“SIP/clickphone-0000000b”, “,”) in new stack
– Timeout on SIP/clickphone-0000000b, going to ‘t’
– Executing [t@app-announcement-1:1] Goto(“SIP/clickphone-0000000b”, “app-blackhole,hangup,1”) in new stack
– Goto (app-blackhole,hangup,1)
– Executing [hangup@app-blackhole:1] NoOp(“SIP/clickphone-0000000b”, “Blackhole Dest: Hangup”) in new stack
– Executing [hangup@app-blackhole:2] Hangup(“SIP/clickphone-0000000b”, “”) in new stack
== Spawn extension (app-blackhole, hangup, 2) exited non-zero on ‘SIP/clickphone-0000000b’
– SIP/clickphone-0000000b Internal Gosub(crm-hangup,s,1) start
– Executing [s@crm-hangup:1] NoOp(“SIP/clickphone-0000000b”, “Sending Hangup to CRM”) in new stack
– Executing [s@crm-hangup:2] NoOp(“SIP/clickphone-0000000b”, “HANGUP CAUSE: 16”) in new stack
– Executing [s@crm-hangup:3] ExecIf(“SIP/clickphone-0000000b”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [s@crm-hangup:4] NoOp(“SIP/clickphone-0000000b”, “MASTER CHANNEL: 1515099015.11 = 1515099015.11”) in new stack
– Executing [s@crm-hangup:5] GotoIf(“SIP/clickphone-0000000b”, “0?return”) in new stack
– Executing [s@crm-hangup:6] Set(“SIP/clickphone-0000000b”, “__CRM_HANGUP=1”) in new stack
– Executing [s@crm-hangup:7] AGI(“SIP/clickphone-0000000b”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <SIP/clickphone-0000000b>AGI Script sangomacrm.agi completed, returning 0
– Executing [s@crm-hangup:8] Return(“SIP/clickphone-0000000b”, “”) in new stack
== Spawn extension (app-blackhole, hangup, 2) exited non-zero on ‘SIP/clickphone-0000000b’
– SIP/clickphone-0000000b Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
[2018-01-04 22:51:23] NOTICE[7384]: res_pjsip/pjsip_distributor.c:649 log_failed_request: Request ‘INVITE’ from ‘“1005” sip:[email protected]’ failed for ‘188.165.238.9:5074’ (callid: 5bb5a8b1ee5c77489c789c52511574d3) - No matching endpoint found

It looks like that’s your DID.

You have a bunch of other problems you need to solve.

If you aren’t using an extension 1005, someone is trying to connect to your system and log in as 1005. If you are using an extension 1005, then you are pointing the connection at the wrong SIP Channel driver (PJ-SIP instead of Chan-SIP).

Is the number form i call :slight_smile:

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