Inbound Sip Call replaces Caller ID with sip trunk info

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Inbound Sip Call replaces Caller ID with sip trunk info

Postby ianteller » Thu Jul 24, 2014 1:55 pm

Hello all, I wrongly diagnosed / explained my issue in a previous post.
What I am doing is transferring from one vicidal system to another. They are registered to each other via a sip connection.
I am currently using the below dialplan entry to send the call:


exten => _977.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _977.,2,Set(CALLERID(num)=${CALLERID(num):-10})
exten => _977.,n,Dial(SIP/${EXTEN:3}@os0101,,tTo)
exten => _977.,n,Hangup

I can see in the CLI that I am sending the correct CALLERID on the way out as seen below:

[Jul 23 12:21:12] -- Executing [192*168*000*005*9774072221000@default:1] Goto("SIP/voipvoip001-00000086", "default,9774072221000,1") in new stack
[Jul 23 12:21:12] -- Goto (default,9774072221000,1)
[Jul 23 12:21:12] -- Executing [9774072221000@default:1] AGI("SIP/voipvoip001-00000086", "agi://127.0.0.1:4577/call_log") in new stack
[Jul 23 12:21:12] -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=CAM001))
[Jul 23 12:21:12] -- <SIP/voipvoip001-00000086>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Jul 23 12:21:12] -- Executing [9774072221000@default:2] Set("SIP/voipvoip001-00000086", "CALLERID(num)=407921xxxx") in new stack
[Jul 23 12:21:12] -- Executing [9774072221000@default:3] Dial("SIP/voipvoip001-00000086", "SIP/4072221000@os0101,,tTo") in new stack
[Jul 23 12:21:12] == Using SIP RTP CoS mark 5
[Jul 23 12:21:12] -- Called SIP/4072221000@os0101
[Jul 23 12:21:12] -- SIP/os0101-00000087 answered SIP/voipvoip001-00000086
[Jul 23 12:21:35] -- Executing [h@default:1] AGI("SIP/voipvoip001-00000086", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----48-----23") in new stack
[Jul 23 12:21:35] -- <SIP/voipvoip001-00000086>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... -48-----23 completed, returning 0
[Jul 23 12:21:35] == Spawn extension (default, 9774072221000, 3) exited non-zero on 'SIP/voipvoip001-00000086'

I am setting the caller ID to 10 digits on the outbound sip transfer. I have the Clean Cid number on my inbound DID set to R10 on the inbound DID.
I can't tell what is happening but the CALLER ID is showing up as V7241242010000000385 (or something similar)
I can see the correct caller id all over the sip debug (407921xxxx) but the agent screen and the database shows V7241242010000000385 in the phone field.
[b]I tried to show the full SIP debug but it wouldn't let me post it.

[/b]
Here is the incoming info


[Jul 24 13:39:09] -- Executing [4072221000@trunkinbound:1] AGI("SIP/reg1-0000004b", "agi-DID_route.agi") in new stack
[Jul 24 13:39:09] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-DID_route.agi
[Jul 24 13:39:09] -- <SIP/reg1-0000004b>AGI Script agi-DID_route.agi completed, returning 0
[Jul 24 13:39:09] -- Executing [99909*2***DID@default:1] Answer("SIP/reg1-0000004b", "") in new stack
[Jul 24 13:39:09] -- Executing [99909*2***DID@default:2] AGI("SIP/reg1-0000004b", "agi-VDAD_ALL_inbound.agi") in new stack
[Jul 24 13:39:09] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
[Jul 24 13:39:10] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jul 24 13:39:10] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jul 24 13:39:10] == Manager 'sendcron' logged on from 127.0.0.1
[Jul 24 13:39:10] -- Executing [192*168*000*024*78600051@default:1] Goto("Local/192*168*000*024*78600051@default-00000031;2", "default,78600051,1") in new stack
[Jul 24 13:39:10] -- Goto (default,78600051,1)
[Jul 24 13:39:10] -- Executing [78600051@default:1] MeetMe("Local/192*168*000*024*78600051@default-00000031;2", "8600051,Fq") in new stack
[Jul 24 13:39:10] > Channel Local/192*168*000*024*78600051@default-00000031;1 was answered.
[Jul 24 13:39:10] -- Executing [83047777777777@vicidial-auto:1] Answer("Local/192*168*000*024*78600051@default-00000031;1", "") in new stack
[Jul 24 13:39:10] -- Executing [83047777777777@vicidial-auto:2] Playback("Local/192*168*000*024*78600051@default-00000031;1", "ding") in new stack
[Jul 24 13:39:10] -- <Local/192*168*000*024*78600051@default-00000031;1> Playing 'ding.gsm' (language 'en')
[Jul 24 13:39:10] -- Executing [83047777777777@vicidial-auto:3] Hangup("Local/192*168*000*024*78600051@default-00000031;1", "") in new stack
[Jul 24 13:39:10] == Spawn extension (vicidial-auto, 83047777777777, 3) exited non-zero on 'Local/192*168*000*024*78600051@default-00000031;1'
[Jul 24 13:39:10] -- Executing [h@vicidial-auto:1] AGI("Local/192*168*000*024*78600051@default-00000031;1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
[Jul 24 13:39:10] -- <Local/192*168*000*024*78600051@default-00000031;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Jul 24 13:39:10] == Spawn extension (default, 78600051, 1) exited non-zero on 'Local/192*168*000*024*78600051@default-00000031;2'
[Jul 24 13:39:10] -- Executing [h@default:1] AGI("Local/192*168*000*024*78600051@default-00000031;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Jul 24 13:39:10] -- <Local/192*168*000*024*78600051@default-00000031;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Jul 24 13:39:11] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jul 24 13:39:11] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jul 24 13:39:11] == Manager 'sendcron' logged off from 127.0.0.1
[Jul 24 13:39:11] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jul 24 13:39:11] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jul 24 13:39:11] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jul 24 13:39:11] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jul 24 13:39:11] -- <SIP/reg1-0000004b>AGI Script agi-VDAD_ALL_inbound.agi completed, returning 0
[Jul 24 13:39:11] -- Executing [192*168*000*024*8600051@default:1] Goto("SIP/reg1-0000004b", "default,8600051,1") in new stack
[Jul 24 13:39:11] -- Goto (default,8600051,1)
[Jul 24 13:39:11] -- Executing [8600051@default:1] MeetMe("SIP/reg1-0000004b", "8600051,F") in new stack
[Jul 24 13:39:34] == Spawn extension (default, 8600051, 1) exited non-zero on 'SIP/reg1-0000004b'
[Jul 24 13:39:34] -- Executing [h@default:1] AGI("SIP/reg1-0000004b", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Jul 24 13:39:34] -- <SIP/reg1-0000004b>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0

I tried to show the full SIP debug but it wouldn't let me post it.

I appreciate any and all suggestions!
Thanks,
Ian
Two separate 3 server Vicidial systems with 2 Quad Core Xenon Processors (3.0 GHz & 32 GB ram)
ViciBox5.x86_64-5.0.3.iso cluster install |3 servers DB/WEB/TEL| VICIDIAL VERSION: 2.8-439a BUILD: 140515-1610 | Asterisk 2.8b0.5 | SVN: 2115
ianteller
 
Posts: 9
Joined: Thu Jun 05, 2014 11:25 pm

Re: Inbound Sip Call replaces Caller ID with sip trunk info

Postby geoff3dmg » Fri Jul 25, 2014 3:07 am

You need to set the CALLERID name if you want to override the VXXXX. eg.

Code: Select all
exten => _977.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _977.,n,Set(CALLERID(num)=${CALLERID(num):-10})
exten => _977.,n,Set(CALLERID(name)=${CALLERID(num)})
exten => _977.,n,Dial(SIP/${EXTEN:3}@os0101,,tTo)
exten => _977.,n,Hangup


http://www.voip-info.org/wiki/view/Setting+Callerid
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

SOLVED: Inbound Sip Call replaces Caller ID with sip trunk i

Postby ianteller » Fri Jul 25, 2014 1:27 pm

Thanks geoff3dmg!!! That solved the problem! I wrongly assumed that the agent screen was displaying the CALLERID(num) as the Phone field. The phone field displays the CALLERID(name) and the dial plan change you suggested solved the problem.

Thanks,
Ian
Two separate 3 server Vicidial systems with 2 Quad Core Xenon Processors (3.0 GHz & 32 GB ram)
ViciBox5.x86_64-5.0.3.iso cluster install |3 servers DB/WEB/TEL| VICIDIAL VERSION: 2.8-439a BUILD: 140515-1610 | Asterisk 2.8b0.5 | SVN: 2115
ianteller
 
Posts: 9
Joined: Thu Jun 05, 2014 11:25 pm


Return to Support

Who is online

Users browsing this forum: Bing [Bot] and 98 guests