PJSIP to PJSIP calls not working

Hi Team

I have installed Freepbx 15 and I am not able to call from PJSIP to PSJIP.

Please help

Thanks
Amardeep

What have you done to troubleshoot? What error messages are you seeing in the console or the logs?

xecuting [recordcheck@sub-record-check:3] Return(“PJSIP/1032-00000005”, “”) in new stack
– Executing [exten@sub-record-check:24] Return(“PJSIP/1032-00000005”, “”) in new stack
– Executing [s@macro-exten-vm:31] Macro(“PJSIP/1032-00000005”, “dial-one,r,1353”) in new stack
– Executing [s@macro-dial-one:1] Set(“PJSIP/1032-00000005”, “DEXTEN=1353”) in new stack
– Executing [s@macro-dial-one:2] Set(“PJSIP/1032-00000005”, “__CRM_SOURCE=1032”) in new stack
– Executing [s@macro-dial-one:3] ExecIf(“PJSIP/1032-00000005”, “0?Set(__EXTTOCALL=1353)”) in new stack
– Executing [s@macro-dial-one:4] Set(“PJSIP/1032-00000005”, “DIALSTATUS_CW=”) in new stack
– Executing [s@macro-dial-one:5] GosubIf(“PJSIP/1032-00000005”, “0?screen,1()”) in new stack
– Executing [s@macro-dial-one:6] GosubIf(“PJSIP/1032-00000005”, “0?cf,1()”) in new stack
– Executing [s@macro-dial-one:7] GotoIf(“PJSIP/1032-00000005”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,10)
– Executing [s@macro-dial-one:10] GotoIf(“PJSIP/1032-00000005”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:11] GotoIf(“PJSIP/1032-00000005”, “0?continue”) in new stack
– Executing [s@macro-dial-one:12] Set(“PJSIP/1032-00000005”, “EXTHASCW=ENABLED”) in new stack
– Executing [s@macro-dial-one:13] GotoIf(“PJSIP/1032-00000005”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,25)
– Executing [s@macro-dial-one:25] GotoIf(“PJSIP/1032-00000005”, “0?next3:continue”) in new stack
– Goto (macro-dial-one,s,27)
– Executing [s@macro-dial-one:27] GotoIf(“PJSIP/1032-00000005”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:28] GosubIf(“PJSIP/1032-00000005”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [dstring@macro-dial-one:1] Set(“PJSIP/1032-00000005”, “DSTRING=”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“PJSIP/1032-00000005”, “DEVICES=”) in new stack
– Executing [dstring@macro-dial-one:3] ExecIf(“PJSIP/1032-00000005”, “1?Return()”) in new stack
– Executing [s@macro-dial-one:29] GotoIf(“PJSIP/1032-00000005”, “1?nodial”) in new stack
– Goto (macro-dial-one,s,61)
– Executing [s@macro-dial-one:61] NoOp(“PJSIP/1032-00000005”, “”) in new stack
– Executing [s@macro-dial-one:62] ExecIf(“PJSIP/1032-00000005”, “1?Set(DIALSTATUS=NOANSWER)”) in new stack
– Executing [s@macro-dial-one:63] NoOp(“PJSIP/1032-00000005”, “Returned from dial-one with nothing to call and DIALSTATUS: NOANSWER”) in new stack
– Executing [s@macro-dial-one:64] MacroExit(“PJSIP/1032-00000005”, “”) in new stack
– Executing [s@macro-exten-vm:32] Set(“PJSIP/1032-00000005”, “SV_DIALSTATUS=NOANSWER”) in new stack
– Executing [s@macro-exten-vm:33] GosubIf(“PJSIP/1032-00000005”, “0?docfu,1()”) in new stack
– Executing [s@macro-exten-vm:34] GosubIf(“PJSIP/1032-00000005”, “0?docfb,1()”) in new stack
– Executing [s@macro-exten-vm:35] Set(“PJSIP/1032-00000005”, “DIALSTATUS=NOANSWER”) in new stack
– Executing [s@macro-exten-vm:36] ExecIf(“PJSIP/1032-00000005”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:37] GotoIf(“PJSIP/1032-00000005”, “1?s-NOANSWER,1”) in new stack
– Goto (macro-exten-vm,s-NOANSWER,1)
– Executing [s-NOANSWER@macro-exten-vm:1] GotoIf(“PJSIP/1032-00000005”, “0?exit,1”) in new stack
– Executing [s-NOANSWER@macro-exten-vm:2] PlayTones(“PJSIP/1032-00000005”, “congestion”) in new stack
– Executing [s-NOANSWER@macro-exten-vm:3] Congestion(“PJSIP/1032-00000005”, “10”) in new stack
== Spawn extension (macro-exten-vm, s-NOANSWER, 3) exited non-zero on ‘PJSIP/1032-00000005’ in macro ‘exten-vm’
== Spawn extension (ext-local, 1353, 3) exited non-zero on ‘PJSIP/1032-00000005’
– Executing [h@ext-local:1] Macro(“PJSIP/1032-00000005”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“PJSIP/1032-00000005”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“PJSIP/1032-00000005”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] Hangup(“PJSIP/1032-00000005”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘PJSIP/1032-00000005’ in macro ‘hangupcall’
== Spawn extension (ext-local, h, 1) exited non-zero on ‘PJSIP/1032-00000005’

Please use the /var/log/asterisk/full file, not a screen scrape. Screen scrapes lack timing information which is important, as the call is showing as not being answered, and if that is happening after the expected time your starting point should be that the call was not answered.

[root@production-pbx ~]# tail -f /var/log/asterisk/full | grep 1309
[2023-05-03 07:45:02] VERBOSE[15858][C-00000016] app_macro.c: Spawn extension (macro-vm, s-NOANSWER, 2) exited non-zero on ‘PJSIP/1309-00000010’ in macro ‘vm’
[2023-05-03 07:45:02] VERBOSE[15858][C-00000016] app_macro.c: Spawn extension (macro-exten-vm, s, 38) exited non-zero on ‘PJSIP/1309-00000010’ in macro ‘exten-vm’
[2023-05-03 07:45:02] VERBOSE[15858][C-00000016] pbx.c: Spawn extension (ext-local, 1607, 3) exited non-zero on ‘PJSIP/1309-00000010’
[2023-05-03 07:45:02] VERBOSE[15858][C-00000016] pbx.c: Executing [h@ext-local:1] Macro(“PJSIP/1309-00000010”, “hangupcall,”) in new stack
[2023-05-03 07:45:02] VERBOSE[15858][C-00000016] pbx.c: Executing [s@macro-hangupcall:1] GotoIf(“PJSIP/1309-00000010”, “1?theend”) in new stack
[2023-05-03 07:45:02] VERBOSE[15858][C-00000016] pbx.c: Executing [s@macro-hangupcall:3] ExecIf(“PJSIP/1309-00000010”, “0?Set(CDR(recordingfile)=)”) in new stack
[2023-05-03 07:45:02] VERBOSE[15858][C-00000016] pbx.c: Executing [s@macro-hangupcall:4] Hangup(“PJSIP/1309-00000010”, “”) in new stack
[2023-05-03 07:45:02] VERBOSE[15858][C-00000016] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘PJSIP/1309-00000010’ in macro ‘hangupcall’
[2023-05-03 07:45:02] VERBOSE[15858][C-00000016] pbx.c: Spawn extension (ext-local, h, 1) exited non-zero on ‘PJSIP/1309-00000010’
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [1309@from-internal:1] GotoIf(“PJSIP/1607-00000011”, “0?ext-local,*1309,1”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [1309@from-internal:2] GotoIf(“PJSIP/1607-00000011”, “1?ext-local,1309,1:followme-check,1309,1”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx_builtins.c: Goto (ext-local,1309,1)
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [1309@ext-local:1] Set(“PJSIP/1607-00000011”, “__RINGTIMER=15”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [1309@ext-local:2] ExecIf(“PJSIP/1607-00000011”, “0?Set(__CWIGNORE=)”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [1309@ext-local:3] Macro(“PJSIP/1607-00000011”, “exten-vm,1309,1309,0,0,0”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s@macro-exten-vm:3] Set(“PJSIP/1607-00000011”, “__EXTTOCALL=1309”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s@macro-exten-vm:4] Set(“PJSIP/1607-00000011”, “__PICKUPMARK=1309”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s@macro-exten-vm:6] ExecIf(“PJSIP/1607-00000011”, “0?Macro(vm,1309,DIRECTDIAL,)”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s@macro-exten-vm:8] ExecIf(“PJSIP/1607-00000011”, “0?Gosub(ext-intercom,nointercom1309,1())”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s@macro-exten-vm:12] ExecIf(“PJSIP/1607-00000011”, “0?Macro(vm,1309,DIRECTDIAL,)”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s@macro-exten-vm:14] ExecIf(“PJSIP/1607-00000011”, “0?Gosub(ext-intercom,nointercom1309,1())”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s@macro-exten-vm:18] ExecIf(“PJSIP/1607-00000011”, “0?Macro(vm,1309,DIRECTDIAL,)”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s@macro-exten-vm:20] ExecIf(“PJSIP/1607-00000011”, “0?Macro(vm,1309,DIRECTDIAL,)”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s@macro-exten-vm:26] ExecIf(“PJSIP/1607-00000011”, “0?Gosub(ext-intercom,nointercom1309,1())”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s@macro-exten-vm:28] ExecIf(“PJSIP/1607-00000011”, “0?Gosub(ext-intercom,nointercom1309,1())”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s@macro-exten-vm:30] Gosub(“PJSIP/1607-00000011”, “sub-record-check,s,1(exten,1309,dontcare)”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [exten@sub-record-check:1] NoOp(“PJSIP/1607-00000011”, “Exten Recording Check between 1607 and 1309”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [exten@sub-record-check:23] Gosub(“PJSIP/1607-00000011”, “recordcheck,1(dontcare,internal,1309)”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s@macro-exten-vm:31] Macro(“PJSIP/1607-00000011”, “dial-one,15,r,1309”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s@macro-dial-one:1] Set(“PJSIP/1607-00000011”, “DEXTEN=1309”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s@macro-dial-one:3] ExecIf(“PJSIP/1607-00000011”, “0?Set(__EXTTOCALL=1309)”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s@macro-exten-vm:38] Macro(“PJSIP/1607-00000011”, “vm,1309,NOANSWER,”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [vmx@macro-vm:1] Set(“PJSIP/1607-00000011”, “__EXTTOCALL=1309”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [vmx@macro-vm:2] Set(“PJSIP/1607-00000011”, “__CRM_VOICEMAIL=1309”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [vmx@macro-vm:3] Set(“PJSIP/1607-00000011”, “MEXTEN=1309”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [vmx@macro-vm:7] Macro(“PJSIP/1607-00000011”, “get-vmcontext,1309”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [vmx@macro-vm:15] NoOp(“PJSIP/1607-00000011”, "Checking if ext 1309 is enabled: ") in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s-NOANSWER@macro-vm:1] Macro(“PJSIP/1607-00000011”, “get-vmcontext,1309”) in new stack
[2023-05-03 07:45:12] VERBOSE[15920][C-00000017] pbx.c: Executing [s-NOANSWER@macro-vm:2] VoiceMail(“PJSIP/1607-00000011”, “1309@default,u”) in new stack
[2023-05-03 07:45:26] VERBOSE[15920][C-00000017] app.c: x=0, open writing: /var/spool/asterisk/voicemail/default/1309/tmp/7By9Ia format: wav, 0x7f57000695c0
[2023-05-03 07:45:29] VERBOSE[15920][C-00000017] pbx.c: Spawn extension (ext-local, 1309, 3) exited non-zero on ‘PJSIP/1607-00000011’

I have restored Backup on this server. If I create new PJSIP ext and calls are working.

There’s no stored dial value which should be something like PJSIP/1353 and since there is no dial value for it to dial, it comes back with nothing to dial. Try editing and updating 1353 and see if that helps.

AS I told , I have restored this Backup from another server so PJSIP not working but If I recreate PJSIP on server then these are working.

Right which means the restore didn’t do everything it should. If you edit/save an existing extensions that was from the backup, it should fix the issue. Have you tried that?

yes… But there are many Extensions… it will take time to update each every time. Because i restore Data weekly

Why are you restoring weekly? That doesn’t make a lot of sense.

Because we make few changes on daily basis on production server so we need to restore Backup on Backup server weekly.

Any Solution if you can provide , Please

You don’t restore to the backup server, you just backup to the backup server. Depending on how your backups are done you either overwrite existing backups, add a new backup file or do incremental backups. The Backup/Restore module does that work for you.

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