[Spce-user] Alias DID show main CID
Daniel Grotti
dgrotti at sipwise.com
Thu Nov 12 04:29:25 EST 2015
Hi,
could you provide kamailio-proxy.log ?
--
Daniel Grotti
VoIP Engineer
Sipwise GmbH
Europaring F15 | 2345 Brunn am Gebirge, Austria | www.sipwise.com
On 11/11/2015 06:29 PM, Sergey Kharlamov wrote:
> Hi Daniel,
>
> allowed_clis has record for both numbers.
> Here is an asterisk log when I try to make a call
> where
> 16665559000 - remote cell phone number
> 19160707077 - Local CID number which should be showed on cell phone
> 1005 - Asterisk internal extension
>
>
> == Using SIP RTP TOS bits 184
>
> == Using SIP RTP CoS mark 5
>
> -- Executing [16665559000 at from-internal:1]
> Macro("SIP/1005-00000001", "user-callerid,LIMIT,EXTERNAL,") in new stack
>
> -- Executing [s at macro-user-callerid:1] Set("SIP/1005-00000001",
> "TOUCH_MONITOR=1447250237.2") in new stack
>
> -- Executing [s at macro-user-callerid:2] Set("SIP/1005-00000001",
> "AMPUSER=1005") in new stack
>
> -- Executing [s at macro-user-callerid:3] GotoIf("SIP/1005-00000001",
> "0?report") in new stack
>
> -- Executing [s at macro-user-callerid:4] ExecIf("SIP/1005-00000001",
> "1?Set(REALCALLERIDNUM=1005)") in new stack
>
> -- Executing [s at macro-user-callerid:5] Set("SIP/1005-00000001",
> "AMPUSER=1005") in new stack
>
> -- Executing [s at macro-user-callerid:6] GotoIf("SIP/1005-00000001",
> "0?limit") in new stack
>
> -- Executing [s at macro-user-callerid:7] Set("SIP/1005-00000001",
> "AMPUSERCIDNAME=Sergey old cell") in new stack
>
> -- Executing [s at macro-user-callerid:8] GotoIf("SIP/1005-00000001",
> "0?report") in new stack
>
> -- Executing [s at macro-user-callerid:9] Set("SIP/1005-00000001",
> "AMPUSERCID=1005") in new stack
>
> -- Executing [s at macro-user-callerid:10] Set("SIP/1005-00000001",
> "__DIAL_OPTIONS=Ttr") in new stack
>
> -- Executing [s at macro-user-callerid:11] Set("SIP/1005-00000001",
> "CALLERID(all)="Sergey old cell" <1005>") in new stack
>
> -- Executing [s at macro-user-callerid:12] GotoIf("SIP/1005-00000001",
> "0?limit") in new stack
>
> -- Executing [s at macro-user-callerid:13] ExecIf("SIP/1005-00000001",
> "1?Set(GROUP(concurrency_limit)=1005)") in new stack
>
> -- Executing [s at macro-user-callerid:14] GotoIf("SIP/1005-00000001",
> "1?continue") in new stack
>
> -- Goto (macro-user-callerid,s,27)
>
> -- Executing [s at macro-user-callerid:27] Set("SIP/1005-00000001",
> "CALLERID(number)=1005") in new stack
>
> -- Executing [s at macro-user-callerid:28] Set("SIP/1005-00000001",
> "CALLERID(name)=Sergey old cell") in new stack
>
> -- Executing [s at macro-user-callerid:29] Set("SIP/1005-00000001",
> "CDR(cnum)=1005") in new stack
>
> -- Executing [s at macro-user-callerid:30] Set("SIP/1005-00000001",
> "CDR(cnam)=Sergey old cell") in new stack
>
> -- Executing [s at macro-user-callerid:31] Set("SIP/1005-00000001",
> "CHANNEL(language)=en") in new stack
>
> -- Executing [16665559000 at from-internal:2]
> Gosub("SIP/1005-00000001",
> "sub-record-check,s,1(out,16665559000,dontcare)") in new stack
>
> -- Executing [s at sub-record-check:1] GotoIf("SIP/1005-00000001",
> "0?initialized") in new stack
>
> -- Executing [s at sub-record-check:2] Set("SIP/1005-00000001",
> "__REC_STATUS=INITIALIZED") in new stack
>
> -- Executing [s at sub-record-check:3] Set("SIP/1005-00000001",
> "NOW=1447250237") in new stack
>
> -- Executing [s at sub-record-check:4] Set("SIP/1005-00000001",
> "__DAY=11") in new stack
>
> -- Executing [s at sub-record-check:5] Set("SIP/1005-00000001",
> "__MONTH=11") in new stack
>
> -- Executing [s at sub-record-check:6] Set("SIP/1005-00000001",
> "__YEAR=2015") in new stack
>
> -- Executing [s at sub-record-check:7] Set("SIP/1005-00000001",
> "__TIMESTR=20151111-085717") in new stack
>
> -- Executing [s at sub-record-check:8] Set("SIP/1005-00000001",
> "__FROMEXTEN=1005") in new stack
>
> -- Executing [s at sub-record-check:9] Set("SIP/1005-00000001",
> "__MON_FMT=wav") in new stack
>
> -- Executing [s at sub-record-check:10] NoOp("SIP/1005-00000001",
> "Recordings initialized") in new stack
>
> -- Executing [s at sub-record-check:11] ExecIf("SIP/1005-00000001",
> "0?Set(ARG3=dontcare)") in new stack
>
> -- Executing [s at sub-record-check:12] Set("SIP/1005-00000001",
> "REC_POLICY_MODE_SAVE=") in new stack
>
> -- Executing [s at sub-record-check:13] ExecIf("SIP/1005-00000001",
> "0?Set(REC_STATUS=NO)") in new stack
>
> -- Executing [s at sub-record-check:14] GotoIf("SIP/1005-00000001",
> "3?checkaction") in new stack
>
> -- Goto (sub-record-check,s,17)
>
> -- Executing [s at sub-record-check:17] GotoIf("SIP/1005-00000001",
> "1?sub-record-check,out,1") in new stack
>
> -- Goto (sub-record-check,out,1)
>
> -- Executing [out at sub-record-check:1] NoOp("SIP/1005-00000001",
> "Outbound Recording Check from 1005 to 16665559000") in new stack
>
> -- Executing [out at sub-record-check:2] Set("SIP/1005-00000001",
> "RECMODE=dontcare") in new stack
>
> -- Executing [out at sub-record-check:3] ExecIf("SIP/1005-00000001",
> "1?Goto(routewins)") in new stack
>
> -- Goto (sub-record-check,out,7)
>
> -- Executing [out at sub-record-check:7] Gosub("SIP/1005-00000001",
> "recordcheck,1(dontcare,out,16665559000)") in new stack
>
> -- Executing [recordcheck at sub-record-check:1]
> NoOp("SIP/1005-00000001", "Starting recording check against dontcare")
> in new stack
>
> -- Executing [recordcheck at sub-record-check:2]
> Goto("SIP/1005-00000001", "dontcare") in new stack
>
> -- Goto (sub-record-check,recordcheck,3)
>
> -- Executing [recordcheck at sub-record-check:3]
> Return("SIP/1005-00000001", "") in new stack
>
> -- Executing [out at sub-record-check:8] Return("SIP/1005-00000001",
> "") in new stack
>
> -- Executing [16665559000 at from-internal:3] Set("SIP/1005-00000001",
> "MOHCLASS=default") in new stack
>
> -- Executing [16665559000 at from-internal:4] Set("SIP/1005-00000001",
> "_NODEST=") in new stack
>
> -- Executing [16665559000 at from-internal:5]
> Macro("SIP/1005-00000001", "dialout-trunk,2,16665559000,,off") in new stack
>
> -- Executing [s at macro-dialout-trunk:1] Set("SIP/1005-00000001",
> "DIAL_TRUNK=2") in new stack
>
> -- Executing [s at macro-dialout-trunk:2] GosubIf("SIP/1005-00000001",
> "0?sub-pincheck,s,1()") in new stack
>
> -- Executing [s at macro-dialout-trunk:3] GotoIf("SIP/1005-00000001",
> "0?disabletrunk,1") in new stack
>
> -- Executing [s at macro-dialout-trunk:4] Set("SIP/1005-00000001",
> "DIAL_NUMBER=16665559000") in new stack
>
> -- Executing [s at macro-dialout-trunk:5] Set("SIP/1005-00000001",
> "DIAL_TRUNK_OPTIONS=Ttr") in new stack
>
> -- Executing [s at macro-dialout-trunk:6] Set("SIP/1005-00000001",
> "OUTBOUND_GROUP=OUT_2") in new stack
>
> -- Executing [s at macro-dialout-trunk:7] GotoIf("SIP/1005-00000001",
> "0?nomax") in new stack
>
> -- Executing [s at macro-dialout-trunk:8] GotoIf("SIP/1005-00000001",
> "0?chanfull") in new stack
>
> -- Executing [s at macro-dialout-trunk:9] GotoIf("SIP/1005-00000001",
> "0?skipoutcid") in new stack
>
> -- Executing [s at macro-dialout-trunk:10] Set("SIP/1005-00000001",
> "DIAL_TRUNK_OPTIONS=Tt") in new stack
>
> -- Executing [s at macro-dialout-trunk:11] Macro("SIP/1005-00000001",
> "outbound-callerid,2") in new stack
>
> -- Executing [s at macro-outbound-callerid:1]
> ExecIf("SIP/1005-00000001", "0?Set(CALLERPRES(name-pres)=)") in new stack
>
> -- Executing [s at macro-outbound-callerid:2]
> ExecIf("SIP/1005-00000001", "0?Set(CALLERPRES(num-pres)=)") in new stack
>
> -- Executing [s at macro-outbound-callerid:3]
> ExecIf("SIP/1005-00000001", "0?Set(REALCALLERIDNUM=1005)") in new stack
>
> -- Executing [s at macro-outbound-callerid:4]
> GotoIf("SIP/1005-00000001", "1?normcid") in new stack
>
> -- Goto (macro-outbound-callerid,s,7)
>
> -- Executing [s at macro-outbound-callerid:7] Set("SIP/1005-00000001",
> "USEROUTCID=19160707077") in new stack
>
> -- Executing [s at macro-outbound-callerid:8] Set("SIP/1005-00000001",
> "EMERGENCYCID=") in new stack
>
> -- Executing [s at macro-outbound-callerid:9] Set("SIP/1005-00000001",
> "TRUNKOUTCID=") in new stack
>
> -- Executing [s at macro-outbound-callerid:10]
> GotoIf("SIP/1005-00000001", "1?trunkcid") in new stack
>
> -- Goto (macro-outbound-callerid,s,15)
>
> -- Executing [s at macro-outbound-callerid:15]
> ExecIf("SIP/1005-00000001", "0?Set(CALLERID(all)=)") in new stack
>
> -- Executing [s at macro-outbound-callerid:16]
> ExecIf("SIP/1005-00000001", "1?Set(CALLERID(all)=19160707077)") in new stack
>
> -- Executing [s at macro-outbound-callerid:17]
> ExecIf("SIP/1005-00000001", "0?Set(CALLERID(all)=)") in new stack
>
> -- Executing [s at macro-outbound-callerid:18]
> ExecIf("SIP/1005-00000001",
> "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
>
> -- Executing [s at macro-outbound-callerid:19]
> ExecIf("SIP/1005-00000001",
> "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
>
> -- Executing [s at macro-outbound-callerid:20] Set("SIP/1005-00000001",
> "CDR(outbound_cnum)=19160707077") in new stack
>
> -- Executing [s at macro-outbound-callerid:21] Set("SIP/1005-00000001",
> "CDR(outbound_cnam)=") in new stack
>
> [2015-11-11 08:57:17] WARNING[1424]: func_cdr.c:352 cdr_write_callback:
> CDR requires a value (CDR(variable)=value)
>
> -- Executing [s at macro-dialout-trunk:12] GosubIf("SIP/1005-00000001",
> "0?sub-flp-2,s,1()") in new stack
>
> -- Executing [s at macro-dialout-trunk:13] Set("SIP/1005-00000001",
> "OUTNUM=16665559000") in new stack
>
> -- Executing [s at macro-dialout-trunk:14] Set("SIP/1005-00000001",
> "custom=PJSIP") in new stack
>
> -- Executing [s at macro-dialout-trunk:15] ExecIf("SIP/1005-00000001",
> "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
>
> -- Executing [s at macro-dialout-trunk:16] ExecIf("SIP/1005-00000001",
> "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
>
> -- Executing [s at macro-dialout-trunk:17] Macro("SIP/1005-00000001",
> "dialout-trunk-predial-hook,") in new stack
>
> -- Executing [s at macro-dialout-trunk-predial-hook:1]
> MacroExit("SIP/1005-00000001", "") in new stack
>
> -- Executing [s at macro-dialout-trunk:18] GotoIf("SIP/1005-00000001",
> "0?bypass,1") in new stack
>
> -- Executing [s at macro-dialout-trunk:19] ExecIf("SIP/1005-00000001",
> "1?Set(CONNECTEDLINE(num,i)=16665559000)") in new stack
>
> -- Executing [s at macro-dialout-trunk:20] ExecIf("SIP/1005-00000001",
> "1?Set(CONNECTEDLINE(name,i)=CID:19160707077)") in new stack
>
> -- Executing [s at macro-dialout-trunk:21] ExecIf("SIP/1005-00000001",
> "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)19160707077)") in new stack
>
> -- Executing [s at macro-dialout-trunk:22] GotoIf("SIP/1005-00000001",
> "0?customtrunk") in new stack
>
> -- Executing [s at macro-dialout-trunk:23] Dial("SIP/1005-00000001",
> "PJSIP/16665559000 at Beneffy_242_PJSIP,300,Tt") in new stack
>
> -- Called PJSIP/16665559000 at Beneffy_242_PJSIP
>
> -- PJSIP/Beneffy_242_PJSIP-00000001 is making progress passing it to
> SIP/1005-00000001
>
> -- PJSIP/Beneffy_242_PJSIP-00000001 answered SIP/1005-00000001
>
> -- Channel PJSIP/Beneffy_242_PJSIP-00000001 joined 'simple_bridge'
> basic-bridge <fb42163f-8634-48b5-905e-c55045d21a1b>
>
> -- Channel SIP/1005-00000001 joined 'simple_bridge' basic-bridge
> <fb42163f-8634-48b5-905e-c55045d21a1b>
>
> -- Channel SIP/1005-00000001 left 'simple_bridge' basic-bridge
> <fb42163f-8634-48b5-905e-c55045d21a1b>
>
> == Spawn extension (macro-dialout-trunk, s, 23) exited non-zero on
> 'SIP/1005-00000001' in macro 'dialout-trunk'
>
> == Spawn extension (from-internal, 16665559000, 5) exited non-zero on
> 'SIP/1005-00000001'
>
> -- Channel PJSIP/Beneffy_242_PJSIP-00000001 left 'simple_bridge'
> basic-bridge <fb42163f-8634-48b5-905e-c55045d21a1b>
>
> -- Executing [h at from-internal:1] Hangup("SIP/1005-00000001", "") in
> new stack
>
> == Spawn extension (from-internal, h, 1) exited non-zero on
> 'SIP/1005-00000001'
>
>
>
>
> Среда, 11 ноября 2015, 15:43 +01:00 от Daniel Grotti
> <dgrotti at sipwise.com>:
>
> Hi,
> did you add the Alias number in the subscriber's preferences
> allowed_clis list ?
>
> Also, are you sure that asterisk is setting in From header the alias
> number you have configured in the system ?
>
>
> --
> Daniel Grotti
> VoIP Engineer
>
>
> Sipwise GmbH
> Europaring F15 | 2345 Brunn am Gebirge, Austria | www.sipwise.com
> <http://www.sipwise.com>
>
> On 11/11/2015 03:37 PM, Sergey Kharlamov wrote:
> > Hi,
> >
> > I have a subscriber and I add alias to subscriber. Client side PBX is
> > asterisk 13. I have add 2 extension on asterisk, one is for main
> number,
> > one is for alias number.
> > On each extension I setup proper Outbound CID, but when I call from
> > alias number it show Outbound CID of main subscriber. Same thing if I
> > call from main number - I see only CID for main number. Is it any
> > special settings for it?
> >
> >
> >
> > --
> > Sergey Kharlamov
> >
> >
> > _______________________________________________
> > Spce-user mailing list
> > Spce-user at lists.sipwise.com
> </compose?To=Spce%2duser at lists.sipwise.com>
> > https://lists.sipwise.com/listinfo/spce-user
> >
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com </compose?To=Spce%2duser at lists.sipwise.com>
> https://lists.sipwise.com/listinfo/spce-user
>
>
>
> --
> Sergey Kharlamov
More information about the Spce-user
mailing list