Internal Name Not Showing on Attended Transfer

Hi,

I am in the process of testing freepbx. One issue I have come across in testing whether P Asserted Headers are working (which does I am pleased to say) is that when making the first internal call as part of an attended transfer the ID on the phone being dialed is being shown as ‘device’ rather than the users extension name.

Here is a portion of the asterisk trace from a test call I have made just now, I generally use Snom phones but this is also happening on X-lite/Bria.

I can see below that the extension name is being sent as “device” rather than the correct extension name.

Executing [s@macro-user-callerid:26] Set(“Local/1001@from-internal-xfer-0fe1;2”, “CALLERID(number)=1003”) in new stack
– Executing [s@macro-user-callerid:27] Set(“Local/1001@from-internal-xfer-0fe1;2”, “CALLERID(name)=device”) in new stack
– Executing [s@macro-user-callerid:28] Set(“Local/1001@from-internal-xfer-0fe1;2”, “CHANNEL(language)=en”) in new stack

Is this a bug in the default dial plan somewhere?

Slightly confused!

Thanks

John

Sorry, should note this is a plain but fully updated FreePBX 2.9 installed from the standard distro last week. Nothing has been changed under the hood from default settings.

I have found that updating the CallerID in extensions.conf solves the problem.

It seems that Extensions CallerIDs are not getting set correctly?

I can manually tweak the .conf file but every time I modify an extension these changes are going to get overwritten?

Please give an example of the change you made. You may have found a bug.

If so we can file a bug report.

http://www.freepbx.org/configuration_files

Here are my notes, believed issue, and resolution - though not exact, probably the same root cause:

Issue:
When setting extension Internal Auto Answer = Intercom, the connected line ID shows "device + " - example: “device 127”.

Troubleshooting:
1)
MySQL
Database: asterisk
Table: sip
keyword: callerid
data: device <127> <— Notice “device” instead of correct Display Name

Erronious data is written to asterisk database when extension is updated in FreePBX.

Resolution:
Update file: \var\www\html\admin\modules\core\functions.inc.php

Line 4347
//Field name was ‘description’, but apparently has been changed to ‘name’

From:
//$sipfields[] = array($account,‘callerid’,$db->escapeSimple((isset($_REQUEST[‘description’]) && $_REQUEST[‘description’])?$_REQUEST[‘description’]." <".$account.’>’:‘device’." <".$account.’>’),$flag++);

To:
$sipfields[] = array($account,‘callerid’,$db->escapeSimple((isset($_REQUEST[‘name’]) && $_REQUEST[‘name’])?$_REQUEST[‘name’]." <".$account.’>’:‘device’." <".$account.’>’),$flag++);

Hope this helps.

This is a huge help. I will open a ticket against this tomorrow.

You are more than welcome to submit the ticket yourself and interact with the developers. There is a link to the v2 Bug/Feature Request at the bottom of the page.

Before we jump into conclusion that this is a bug, please provide a complete log of the call so that we can see where the CallerID is picked up from.
I have seen this in the past where AMPUSER data in astdb was lost or incomplete.

I am off work today so cannot produce a full call trace until Monday. Will post it as soon as I can.

Thank you.

Connected to Asterisk 1.8.5.0 currently running on localhost (pid = 3151)
Verbosity is at least 3
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [01158xxxxxx@from-trunk:1] Set(“SIP/Hostcom-00000005”, “__FROM_DID=01158xxxxxx”) in new stack
– Executing [01158xxxxxx@from-trunk:2] Gosub(“SIP/Hostcom-00000005”, “app-blacklist-check,s,1”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“SIP/Hostcom-00000005”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“SIP/Hostcom-00000005”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“SIP/Hostcom-00000005”, “”) in new stack
– Executing [01158xxxxxx@from-trunk:3] ExecIf(“SIP/Hostcom-00000005”, “0 ?Set(CALLERID(name)=01159xxxxxx)”) in new stack
– Executing [01158xxxxxx@from-trunk:4] Ringing(“SIP/Hostcom-00000005”, “”) in new stack
– Executing [01158xxxxxx@from-trunk:5] Set(“SIP/Hostcom-00000005”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
– Executing [01158xxxxxx@from-trunk:6] Set(“SIP/Hostcom-00000005”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [01158xxxxxx@from-trunk:7] Goto(“SIP/Hostcom-00000005”, “ext-group,9000,1”) in new stack
– Goto (ext-group,9000,1)
– Executing [9000@ext-group:1] Macro(“SIP/Hostcom-00000005”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/Hostcom-00000005”, “AMPUSER=01159xxxxxx”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/Hostcom-00000005”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/Hostcom-00000005”, “1?Set(REALCALLERIDNUM=01159xxxxxx)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/Hostcom-00000005”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/Hostcom-00000005”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/Hostcom-00000005”, “1?report”) in new stack
– Goto (macro-user-callerid,s,13)
– Executing [s@macro-user-callerid:13] GotoIf(“SIP/Hostcom-00000005”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:14] Set(“SIP/Hostcom-00000005”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:15] GotoIf(“SIP/Hostcom-00000005”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [s@macro-user-callerid:26] Set(“SIP/Hostcom-00000005”, “CALLERID(number)=01159xxxxxx”) in new stack
– Executing [s@macro-user-callerid:27] Set(“SIP/Hostcom-00000005”, “CALLERID(name)=01159xxxxxx”) in new stack
– Executing [s@macro-user-callerid:28] Set(“SIP/Hostcom-00000005”, “CHANNEL(language)=en”) in new stack
– Executing [9000@ext-group:2] Macro(“SIP/Hostcom-00000005”, “blkvm-setifempty,”) in new stack
– Executing [s@macro-blkvm-setifempty:1] GotoIf(“SIP/Hostcom-00000005”, “1?init”) in new stack
– Goto (macro-blkvm-setifempty,s,4)
– Executing [s@macro-blkvm-setifempty:4] Set(“SIP/Hostcom-00000005”, “__BLKVM_CHANNEL=SIP/Hostcom-00000005”) in new stack
– Executing [s@macro-blkvm-setifempty:5] Set(“SIP/Hostcom-00000005”, “SHARED(BLKVM,SIP/Hostcom-00000005)=TRUE”) in new stack
– Executing [s@macro-blkvm-setifempty:6] Set(“SIP/Hostcom-00000005”, “GOSUB_RETVAL=TRUE”) in new stack
– Executing [s@macro-blkvm-setifempty:7] MacroExit(“SIP/Hostcom-00000005”, “”) in new stack
– Executing [9000@ext-group:3] GotoIf(“SIP/Hostcom-00000005”, “1?skipov”) in new stack
– Goto (ext-group,9000,6)
– Executing [9000@ext-group:6] Set(“SIP/Hostcom-00000005”, “RRNODEST=”) in new stack
– Executing [9000@ext-group:7] Set(“SIP/Hostcom-00000005”, “__NODEST=9000”) in new stack
– Executing [9000@ext-group:8] GosubIf(“SIP/Hostcom-00000005”, “0?sub-rgsetcid,s,1”) in new stack
– Executing [9000@ext-group:9] Set(“SIP/Hostcom-00000005”, “RecordMethod=Group”) in new stack
– Executing [9000@ext-group:10] Macro(“SIP/Hostcom-00000005”, “record-enable,1001,Group”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“SIP/Hostcom-00000005”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] ExecIf(“SIP/Hostcom-00000005”, “0?MacroExit()”) in new stack
– Executing [s@macro-record-enable:5] GotoIf(“SIP/Hostcom-00000005”, “1?Group:OUT”) in new stack
– Goto (macro-record-enable,s,6)
– Executing [s@macro-record-enable:6] Set(“SIP/Hostcom-00000005”, “LOOPCNT=1”) in new stack
– Executing [s@macro-record-enable:7] Set(“SIP/Hostcom-00000005”, “ITER=1”) in new stack
– Executing [s@macro-record-enable:8] GotoIf(“SIP/Hostcom-00000005”, “1?continue”) in new stack
– Goto (macro-record-enable,s,12)
– Executing [s@macro-record-enable:12] Set(“SIP/Hostcom-00000005”, “ITER=2”) in new stack
– Executing [s@macro-record-enable:13] GotoIf(“SIP/Hostcom-00000005”, “0?begin”) in new stack
– Executing [s@macro-record-enable:14] GotoIf(“SIP/Hostcom-00000005”, “0?IN”) in new stack
– Executing [s@macro-record-enable:15] ExecIf(“SIP/Hostcom-00000005”, “1?MacroExit()”) in new stack
– Executing [9000@ext-group:11] Set(“SIP/Hostcom-00000005”, “RingGroupMethod=ringall”) in new stack
– Executing [9000@ext-group:12] Macro(“SIP/Hostcom-00000005”, “dial,20,tr,1001”) in new stack
– Executing [s@macro-dial:1] GotoIf(“SIP/Hostcom-00000005”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing [s@macro-dial:3] AGI(“SIP/Hostcom-00000005”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is ‘01159xxxxxx’ number is '01159xxxxxx’
dialparties.agi: Methodology of ring is ‘ringall’
– dialparties.agi: Added extension 1001 to extension map
– dialparties.agi: Extension 1001 cf is disabled
– dialparties.agi: Extension 1001 do not disturb is disabled
– dialparties.agi: dbset CALLTRACE/1001 to 01159xxxxxx
– dialparties.agi: Filtered ARG3: 1001
– <SIP/Hostcom-00000005>AGI Script dialparties.agi completed, returning 0
– Executing [s@macro-dial:7] Dial(“SIP/Hostcom-00000005”, “SIP/1001,20,trM(auto-blkvm)”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/1001
– SIP/1001-00000006 is ringing
– SIP/1001-00000006 is ringing
– SIP/1001-00000006 is ringing
– SIP/1001-00000006 answered SIP/Hostcom-00000005
– Executing [s@macro-auto-blkvm:1] Set(“SIP/1001-00000006”, “__MACRO_RESULT=”) in new stack
– Executing [s@macro-auto-blkvm:2] Macro(“SIP/1001-00000006”, “blkvm-clr,”) in new stack
– Executing [s@macro-blkvm-clr:1] Set(“SIP/1001-00000006”, “SHARED(BLKVM,SIP/Hostcom-00000005)=”) in new stack
– Executing [s@macro-blkvm-clr:2] Set(“SIP/1001-00000006”, “GOSUB_RETVAL=”) in new stack
– Executing [s@macro-blkvm-clr:3] MacroExit(“SIP/1001-00000006”, “”) in new stack
– Executing [s@macro-auto-blkvm:3] Set(“SIP/1001-00000006”, “MASTER_CHANNEL(CONNECTEDLINE(num))=1001”) in new stack
– Executing [s@macro-auto-blkvm:4] Set(“SIP/1001-00000006”, “MASTER_CHANNEL(CONNECTEDLINE(name))=Test 1”) in new stack
– Started music on hold, class ‘default’, on SIP/Hostcom-00000005
– <SIP/1001-00000006> Playing ‘pbx-transfer.ulaw’ (language ‘en’)
– Executing [1002@from-internal-xfer:1] ExecIf(“Local/1002@from-internal-xfer-13bf;2”, “0?Set(__RINGTIMER=0)”) in new stack
– Executing [1002@from-internal-xfer:2] Macro(“Local/1002@from-internal-xfer-13bf;2”, “exten-vm,novm,1002,0,0,0”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“Local/1002@from-internal-xfer-13bf;2”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“Local/1002@from-internal-xfer-13bf;2”, “AMPUSER=1001”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “1?report”) in new stack
– Goto (macro-user-callerid,s,13)
– Executing [s@macro-user-callerid:13] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:14] Set(“Local/1002@from-internal-xfer-13bf;2”, “__TTL=63”) in new stack
– Executing [s@macro-user-callerid:15] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [s@macro-user-callerid:26] Set(“Local/1002@from-internal-xfer-13bf;2”, “CALLERID(number)=1001”) in new stack
– Executing [s@macro-user-callerid:27] Set(“Local/1002@from-internal-xfer-13bf;2”, “CALLERID(name)=device”) in new stack
– Executing [s@macro-user-callerid:28] Set(“Local/1002@from-internal-xfer-13bf;2”, “CHANNEL(language)=en”) in new stack
– Executing [s@macro-exten-vm:2] Set(“Local/1002@from-internal-xfer-13bf;2”, “RingGroupMethod=none”) in new stack
– Executing [s@macro-exten-vm:3] Set(“Local/1002@from-internal-xfer-13bf;2”, “__EXTTOCALL=1002”) in new stack
– Executing [s@macro-exten-vm:4] Set(“Local/1002@from-internal-xfer-13bf;2”, “__PICKUPMARK=1002”) in new stack
– Executing [s@macro-exten-vm:5] Set(“Local/1002@from-internal-xfer-13bf;2”, “RT=”) in new stack
– Executing [s@macro-exten-vm:6] Macro(“Local/1002@from-internal-xfer-13bf;2”, “record-enable,1002,IN”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] ExecIf(“Local/1002@from-internal-xfer-13bf;2”, “0?MacroExit()”) in new stack
– Executing [s@macro-record-enable:5] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “0?Group:OUT”) in new stack
– Goto (macro-record-enable,s,14)
– Executing [s@macro-record-enable:14] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “1?IN”) in new stack
– Goto (macro-record-enable,s,18)
– Executing [s@macro-record-enable:18] ExecIf(“Local/1002@from-internal-xfer-13bf;2”, “1?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:7] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “11?macrodial”) in new stack
– Goto (macro-exten-vm,s,13)
– Executing [s@macro-exten-vm:13] GosubIf(“Local/1002@from-internal-xfer-13bf;2”, “0?clrheader,1”) in new stack
– Executing [s@macro-exten-vm:14] Macro(“Local/1002@from-internal-xfer-13bf;2”, “dial-one,tr,1002”) in new stack
– Executing [s@macro-dial-one:1] Set(“Local/1002@from-internal-xfer-13bf;2”, “DEXTEN=1002”) in new stack
– Executing [s@macro-dial-one:2] Set(“Local/1002@from-internal-xfer-13bf;2”, “DIALSTATUS_CW=”) in new stack
– Executing [s@macro-dial-one:3] GosubIf(“Local/1002@from-internal-xfer-13bf;2”, “0?screen,1”) in new stack
– Executing [s@macro-dial-one:4] GosubIf(“Local/1002@from-internal-xfer-13bf;2”, “0?cf,1”) in new stack
– Executing [s@macro-dial-one:5] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [s@macro-dial-one:8] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:9] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “0?continue”) in new stack
– Executing [s@macro-dial-one:10] Set(“Local/1002@from-internal-xfer-13bf;2”, “EXTHASCW=ENABLED”) in new stack
– Executing [s@macro-dial-one:11] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,23)
– Executing [s@macro-dial-one:23] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “1?next3:continue”) in new stack
– Goto (macro-dial-one,s,24)
– Executing [s@macro-dial-one:24] ExecIf(“Local/1002@from-internal-xfer-13bf;2”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
– Executing [s@macro-dial-one:25] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:26] GosubIf(“Local/1002@from-internal-xfer-13bf;2”, “1?dstring,1:dlocal,1”) in new stack
– Executing [dstring@macro-dial-one:1] Set(“Local/1002@from-internal-xfer-13bf;2”, “DSTRING=”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“Local/1002@from-internal-xfer-13bf;2”, “DEVICES=1002”) in new stack
– Executing [dstring@macro-dial-one:3] ExecIf(“Local/1002@from-internal-xfer-13bf;2”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:4] ExecIf(“Local/1002@from-internal-xfer-13bf;2”, “0?Set(DEVICES=002)”) in new stack
– Executing [dstring@macro-dial-one:5] Set(“Local/1002@from-internal-xfer-13bf;2”, “LOOPCNT=1”) in new stack
– Executing [dstring@macro-dial-one:6] Set(“Local/1002@from-internal-xfer-13bf;2”, “ITER=1”) in new stack
– Executing [dstring@macro-dial-one:7] Set(“Local/1002@from-internal-xfer-13bf;2”, “THISDIAL=SIP/1002”) in new stack
– Executing [dstring@macro-dial-one:8] GosubIf(“Local/1002@from-internal-xfer-13bf;2”, “1?zap2dahdi,1”) in new stack
– Executing [zap2dahdi@macro-dial-one:1] ExecIf(“Local/1002@from-internal-xfer-13bf;2”, “0?Return()”) in new stack
– Executing [zap2dahdi@macro-dial-one:2] Set(“Local/1002@from-internal-xfer-13bf;2”, “NEWDIAL=”) in new stack
– Executing [zap2dahdi@macro-dial-one:3] Set(“Local/1002@from-internal-xfer-13bf;2”, “LOOPCNT2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:4] Set(“Local/1002@from-internal-xfer-13bf;2”, “ITER2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:5] Set(“Local/1002@from-internal-xfer-13bf;2”, “THISPART2=SIP/1002”) in new stack
– Executing [zap2dahdi@macro-dial-one:6] ExecIf(“Local/1002@from-internal-xfer-13bf;2”, “0?Set(THISPART2=DAHDI/1002)”) in new stack
– Executing [zap2dahdi@macro-dial-one:7] Set(“Local/1002@from-internal-xfer-13bf;2”, “NEWDIAL=SIP/1002&”) in new stack
– Executing [zap2dahdi@macro-dial-one:8] Set(“Local/1002@from-internal-xfer-13bf;2”, “ITER2=2”) in new stack
– Executing [zap2dahdi@macro-dial-one:9] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “0?begin2”) in new stack
– Executing [zap2dahdi@macro-dial-one:10] Set(“Local/1002@from-internal-xfer-13bf;2”, “THISDIAL=SIP/1002”) in new stack
– Executing [zap2dahdi@macro-dial-one:11] Return(“Local/1002@from-internal-xfer-13bf;2”, “”) in new stack
– Executing [dstring@macro-dial-one:9] Set(“Local/1002@from-internal-xfer-13bf;2”, “DSTRING=SIP/1002&”) in new stack
– Executing [dstring@macro-dial-one:10] Set(“Local/1002@from-internal-xfer-13bf;2”, “ITER=2”) in new stack
– Executing [dstring@macro-dial-one:11] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “0?begin”) in new stack
– Executing [dstring@macro-dial-one:12] Set(“Local/1002@from-internal-xfer-13bf;2”, “DSTRING=SIP/1002”) in new stack
– Executing [dstring@macro-dial-one:13] Return(“Local/1002@from-internal-xfer-13bf;2”, “”) in new stack
– Executing [s@macro-dial-one:27] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:28] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “1?skiptrace”) in new stack
– Goto (macro-dial-one,s,30)
– Executing [s@macro-dial-one:30] Set(“Local/1002@from-internal-xfer-13bf;2”, “D_OPTIONS=trM(auto-blkvm)”) in new stack
– Executing [s@macro-dial-one:31] ExecIf(“Local/1002@from-internal-xfer-13bf;2”, “0?SIPAddHeader(Alert-Info: )”) in new stack
– Executing [s@macro-dial-one:32] ExecIf(“Local/1002@from-internal-xfer-13bf;2”, “0?SIPAddHeader()”) in new stack
– Executing [s@macro-dial-one:33] ExecIf(“Local/1002@from-internal-xfer-13bf;2”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [s@macro-dial-one:34] GosubIf(“Local/1002@from-internal-xfer-13bf;2”, “0?qwait,1”) in new stack
– Executing [s@macro-dial-one:35] Set(“Local/1002@from-internal-xfer-13bf;2”, “__CWIGNORE=”) in new stack
– Executing [s@macro-dial-one:36] Set(“Local/1002@from-internal-xfer-13bf;2”, “__KEEPCID=TRUE”) in new stack
– Executing [s@macro-dial-one:37] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “0?usegoto,1”) in new stack
– Executing [s@macro-dial-one:38] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “0?godial”) in new stack
– Executing [s@macro-dial-one:39] Set(“Local/1002@from-internal-xfer-13bf;2”, “CONNECTEDLINE(name,i)=Test 2”) in new stack
– Executing [s@macro-dial-one:40] Set(“Local/1002@from-internal-xfer-13bf;2”, “CONNECTEDLINE(num)=1002”) in new stack
– Executing [s@macro-dial-one:41] Set(“Local/1002@from-internal-xfer-13bf;2”, “D_OPTIONS=trM(auto-blkvm)I”) in new stack
– Executing [s@macro-dial-one:42] Dial(“Local/1002@from-internal-xfer-13bf;2”, “SIP/1002,trM(auto-blkvm)I”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/1002
– Connected line update to Local/1002@from-internal-xfer-13bf;2 prevented.
– Local/1002@from-internal-xfer-13bf;1 is ringing
– SIP/1002-00000007 is ringing
– Local/1002@from-internal-xfer-13bf;1 is ringing
– SIP/1002-00000007 is ringing
– Connected line update to Local/1002@from-internal-xfer-13bf;2 prevented.
– SIP/1002-00000007 answered Local/1002@from-internal-xfer-13bf;2
– Executing [s@macro-auto-blkvm:1] Set(“SIP/1002-00000007”, “__MACRO_RESULT=”) in new stack
– Executing [s@macro-auto-blkvm:2] Macro(“SIP/1002-00000007”, “blkvm-clr,”) in new stack
– Executing [s@macro-blkvm-clr:1] Set(“SIP/1002-00000007”, “SHARED(BLKVM,SIP/Hostcom-00000005)=”) in new stack
– Executing [s@macro-blkvm-clr:2] Set(“SIP/1002-00000007”, “GOSUB_RETVAL=”) in new stack
– Executing [s@macro-blkvm-clr:3] MacroExit(“SIP/1002-00000007”, “”) in new stack
– Executing [s@macro-auto-blkvm:3] Set(“SIP/1002-00000007”, “MASTER_CHANNEL(CONNECTEDLINE(num))=1002”) in new stack
– Executing [s@macro-auto-blkvm:4] Set(“SIP/1002-00000007”, “MASTER_CHANNEL(CONNECTEDLINE(name))=Test 2”) in new stack
– Executing [h@macro-dial:1] Macro(“SIP/1001-00000006”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/1001-00000006”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] Hangup(“SIP/1001-00000006”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on ‘SIP/1001-00000006’ in macro ‘hangupcall’
== Spawn extension (macro-dial, h, 1) exited non-zero on ‘SIP/1001-00000006’
– Stopped music on hold on SIP/Hostcom-00000005
– <Local/1002@from-internal-xfer-13bf;1> Playing ‘beep.ulaw’ (language ‘en’)
– Executing [h@macro-dial:1] Macro(“Transfered/SIP/Hostcom-00000005”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“Transfered/SIP/Hostcom-00000005”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] Hangup(“Transfered/SIP/Hostcom-00000005”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on ‘Transfered/SIP/Hostcom-00000005’ in macro ‘hangupcall’
== Spawn extension (macro-dial, h, 1) exited non-zero on ‘Transfered/SIP/Hostcom-00000005’
== Spawn extension (macro-dial, s, 7) exited non-zero on ‘Transfered/SIP/Hostcom-00000005’ in macro ‘dial’
== Spawn extension (ext-group, 9000, 12) exited non-zero on ‘Transfered/SIP/Hostcom-00000005’
– Executing [h@macro-dial-one:1] Macro(“Local/1002@from-internal-xfer-13bf;2”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“Local/1002@from-internal-xfer-13bf;2”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] Hangup(“Local/1002@from-internal-xfer-13bf;2”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on ‘Local/1002@from-internal-xfer-13bf;2’ in macro ‘hangupcall’
== Spawn extension (macro-dial-one, h, 1) exited non-zero on ‘Local/1002@from-internal-xfer-13bf;2’
== Spawn extension (macro-dial-one, s, 42) exited non-zero on ‘Local/1002@from-internal-xfer-13bf;2’ in macro ‘dial-one’
== Spawn extension (macro-exten-vm, s, 14) exited non-zero on ‘Local/1002@from-internal-xfer-13bf;2’ in macro ‘exten-vm’
== Spawn extension (from-internal-xfer, 1002, 2) exited non-zero on ‘Local/1002@from-internal-xfer-13bf;2’
– Executing [h@macro-dial:1] Macro(“SIP/Hostcom-00000005”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/Hostcom-00000005”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] Hangup(“SIP/Hostcom-00000005”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on ‘SIP/Hostcom-00000005’ in macro ‘hangupcall’
== Spawn extension (macro-dial, h, 1) exited non-zero on ‘SIP/Hostcom-00000005’

Just to note, this is definitely an “out of the box” issue for me. I rebuilt the install this morning from scratch and still have “device” showing as the name of the party transferring the call to the extension, having only setup the trunk, ring group and extensions. Not other changes made.

Below is my sip_additional.conf, if I change the callerid rows manually the names show correctly on the extensions.

type=user
secret=xxxx
context=from-trunk

[1001]
deny=0.0.0.0/0.0.0.0
secret=xxxx
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
trustrpid=yes
sendrpid=pai
type=friend
nat=no
port=5060
qualify=yes
qualifyfreq=60
transport=udp
encryption=no
callgroup=
pickupgroup=
dial=SIP/1001
mailbox=1001@device
permit=0.0.0.0/0.0.0.0
callerid=device <1001>
callcounter=yes
faxdetect=no
cc_monitor_policy=generic

[1002]
deny=0.0.0.0/0.0.0.0
secret=xxxx
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
trustrpid=yes
sendrpid=pai
type=friend
nat=no
port=5060
qualify=yes
qualifyfreq=60
transport=udp
encryption=no
callgroup=
pickupgroup=
dial=SIP/1002
mailbox=1002@device
permit=0.0.0.0/0.0.0.0
callerid=device <1002>
callcounter=yes
faxdetect=no
cc_monitor_policy=generic

[Hostcom]
disallow=all
username=xxxx
type=peer
secret=xxxx
insecure=port,invite
host=xxxx.co.uk
context=from-trunk
allow=ulaw
allow=alaw

Hi,

Just following up on this. Can anyone confirm if this is a bug?

It seems to replace the caller ID with device whenever I edit an extension. If I do a bulk import of extensions the caller ID is correctly set.

Thanks

John

Following up on this again. Does this need listing on the bug tracker? I can’t see this issue on there?

I came across a similar problem a while back;

http://pbxinaflash.com/forum/showthread.php?t=10572

To avoid the edits being wiped every time a reload was done I created a sip_custom_post.conf to hold just the callerid= settings for each extension.

I’ve found bulk exporting and importing the extensions works as well to get round this problem. Will look at your suggestion to use the sip_custom_post.conf file though.

Thanks

Open a bug report on this so it can get corrected. Reporting bugs in a forum usually will not get picked up by the dev team and hence not get resolved.

What’s the latest word on this? I’ve got the same exact problem! I’m still on FreePBX 2.8 but from what I understand this is still an issue even after upgrading to 2.9?

Has someone opened a bug on this yet? If not it will never get resolved.

Yes I’ve opened a bug here.

http://www.freepbx.org/trac/ticket/5374