<HTML><BODY>Hi Daniel,<br><br>allowed_clis has record for both numbers. <br>Here is an asterisk log when I try to make a call<br>where<br>16665559000 - remote cell phone number<br>19160707077 - Local CID number which should be showed on cell phone<br>1005               - Asterisk internal extension <br><br><br><p class="p1">  == Using SIP RTP TOS bits 184</p><p class="p1">  == Using SIP RTP CoS mark 5</p><p class="p1">    -- Executing [16665559000@from-internal:1] Macro("SIP/1005-00000001", "user-callerid,LIMIT,EXTERNAL,") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:1] Set("SIP/1005-00000001", "TOUCH_MONITOR=1447250237.2") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:2] Set("SIP/1005-00000001", "AMPUSER=1005") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/1005-00000001", "0?report") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/1005-00000001", "1?Set(REALCALLERIDNUM=1005)") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:5] Set("SIP/1005-00000001", "AMPUSER=1005") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/1005-00000001", "0?limit") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:7] Set("SIP/1005-00000001", "AMPUSERCIDNAME=Sergey old cell") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/1005-00000001", "0?report") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:9] Set("SIP/1005-00000001", "AMPUSERCID=1005") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:10] Set("SIP/1005-00000001", "__DIAL_OPTIONS=Ttr") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:11] Set("SIP/1005-00000001", "CALLERID(all)="Sergey old cell" <1005>") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/1005-00000001", "0?limit") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:13] ExecIf("SIP/1005-00000001", "1?Set(GROUP(concurrency_limit)=1005)") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/1005-00000001", "1?continue") in new stack</p><p class="p1">    -- Goto (macro-user-callerid,s,27)</p><p class="p1">    -- Executing [s@macro-user-callerid:27] Set("SIP/1005-00000001", "CALLERID(number)=1005") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:28] Set("SIP/1005-00000001", "CALLERID(name)=Sergey old cell") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:29] Set("SIP/1005-00000001", "CDR(cnum)=1005") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:30] Set("SIP/1005-00000001", "CDR(cnam)=Sergey old cell") in new stack</p><p class="p1">    -- Executing [s@macro-user-callerid:31] Set("SIP/1005-00000001", "CHANNEL(language)=en") in new stack</p><p class="p1">    -- Executing [16665559000@from-internal:2] Gosub("SIP/1005-00000001", "sub-record-check,s,1(out,16665559000,dontcare)") in new stack</p><p class="p1">    -- Executing [s@sub-record-check:1] GotoIf("SIP/1005-00000001", "0?initialized") in new stack</p><p class="p1">    -- Executing [s@sub-record-check:2] Set("SIP/1005-00000001", "__REC_STATUS=INITIALIZED") in new stack</p><p class="p1">    -- Executing [s@sub-record-check:3] Set("SIP/1005-00000001", "NOW=1447250237") in new stack</p><p class="p1">    -- Executing [s@sub-record-check:4] Set("SIP/1005-00000001", "__DAY=11") in new stack</p><p class="p1">    -- Executing [s@sub-record-check:5] Set("SIP/1005-00000001", "__MONTH=11") in new stack</p><p class="p1">    -- Executing [s@sub-record-check:6] Set("SIP/1005-00000001", "__YEAR=2015") in new stack</p><p class="p1">    -- Executing [s@sub-record-check:7] Set("SIP/1005-00000001", "__TIMESTR=20151111-085717") in new stack</p><p class="p1">    -- Executing [s@sub-record-check:8] Set("SIP/1005-00000001", "__FROMEXTEN=1005") in new stack</p><p class="p1">    -- Executing [s@sub-record-check:9] Set("SIP/1005-00000001", "__MON_FMT=wav") in new stack</p><p class="p1">    -- Executing [s@sub-record-check:10] NoOp("SIP/1005-00000001", "Recordings initialized") in new stack</p><p class="p1">    -- Executing [s@sub-record-check:11] ExecIf("SIP/1005-00000001", "0?Set(ARG3=dontcare)") in new stack</p><p class="p1">    -- Executing [s@sub-record-check:12] Set("SIP/1005-00000001", "REC_POLICY_MODE_SAVE=") in new stack</p><p class="p1">    -- Executing [s@sub-record-check:13] ExecIf("SIP/1005-00000001", "0?Set(REC_STATUS=NO)") in new stack</p><p class="p1">    -- Executing [s@sub-record-check:14] GotoIf("SIP/1005-00000001", "3?checkaction") in new stack</p><p class="p1">    -- Goto (sub-record-check,s,17)</p><p class="p1">    -- Executing [s@sub-record-check:17] GotoIf("SIP/1005-00000001", "1?sub-record-check,out,1") in new stack</p><p class="p1">    -- Goto (sub-record-check,out,1)</p><p class="p1">    -- Executing [out@sub-record-check:1] NoOp("SIP/1005-00000001", "Outbound Recording Check from 1005 to 16665559000") in new stack</p><p class="p1">    -- Executing [out@sub-record-check:2] Set("SIP/1005-00000001", "RECMODE=dontcare") in new stack</p><p class="p1">    -- Executing [out@sub-record-check:3] ExecIf("SIP/1005-00000001", "1?Goto(routewins)") in new stack</p><p class="p1">    -- Goto (sub-record-check,out,7)</p><p class="p1">    -- Executing [out@sub-record-check:7] Gosub("SIP/1005-00000001", "recordcheck,1(dontcare,out,16665559000)") in new stack</p><p class="p1">    -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/1005-00000001", "Starting recording check against dontcare") in new stack</p><p class="p1">    -- Executing [recordcheck@sub-record-check:2] Goto("SIP/1005-00000001", "dontcare") in new stack</p><p class="p1">    -- Goto (sub-record-check,recordcheck,3)</p><p class="p1">    -- Executing [recordcheck@sub-record-check:3] Return("SIP/1005-00000001", "") in new stack</p><p class="p1">    -- Executing [out@sub-record-check:8] Return("SIP/1005-00000001", "") in new stack</p><p class="p1">    -- Executing [16665559000@from-internal:3] Set("SIP/1005-00000001", "MOHCLASS=default") in new stack</p><p class="p1">    -- Executing [16665559000@from-internal:4] Set("SIP/1005-00000001", "_NODEST=") in new stack</p><p class="p1">    -- Executing [16665559000@from-internal:5] Macro("SIP/1005-00000001", "dialout-trunk,2,16665559000,,off") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:1] Set("SIP/1005-00000001", "DIAL_TRUNK=2") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/1005-00000001", "0?sub-pincheck,s,1()") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/1005-00000001", "0?disabletrunk,1") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:4] Set("SIP/1005-00000001", "DIAL_NUMBER=16665559000") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:5] Set("SIP/1005-00000001", "DIAL_TRUNK_OPTIONS=Ttr") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:6] Set("SIP/1005-00000001", "OUTBOUND_GROUP=OUT_2") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/1005-00000001", "0?nomax") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/1005-00000001", "0?chanfull") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/1005-00000001", "0?skipoutcid") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:10] Set("SIP/1005-00000001", "DIAL_TRUNK_OPTIONS=Tt") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/1005-00000001", "outbound-callerid,2") in new stack</p><p class="p1">    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/1005-00000001", "0?Set(CALLERPRES(name-pres)=)") in new stack</p><p class="p1">    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/1005-00000001", "0?Set(CALLERPRES(num-pres)=)") in new stack</p><p class="p1">    -- Executing [s@macro-outbound-callerid:3] ExecIf("SIP/1005-00000001", "0?Set(REALCALLERIDNUM=1005)") in new stack</p><p class="p1">    -- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/1005-00000001", "1?normcid") in new stack</p><p class="p1">    -- Goto (macro-outbound-callerid,s,7)</p><p class="p1">    -- Executing [s@macro-outbound-callerid:7] Set("SIP/1005-00000001", "USEROUTCID=19160707077") in new stack</p><p class="p1">    -- Executing [s@macro-outbound-callerid:8] Set("SIP/1005-00000001", "EMERGENCYCID=") in new stack</p><p class="p1">    -- Executing [s@macro-outbound-callerid:9] Set("SIP/1005-00000001", "TRUNKOUTCID=") in new stack</p><p class="p1">    -- Executing [s@macro-outbound-callerid:10] GotoIf("SIP/1005-00000001", "1?trunkcid") in new stack</p><p class="p1">    -- Goto (macro-outbound-callerid,s,15)</p><p class="p1">    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/1005-00000001", "0?Set(CALLERID(all)=)") in new stack</p><p class="p1">    -- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/1005-00000001", "1?Set(CALLERID(all)=19160707077)") in new stack</p><p class="p1">    -- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/1005-00000001", "0?Set(CALLERID(all)=)") in new stack</p><p class="p1">    -- Executing [s@macro-outbound-callerid:18] ExecIf("SIP/1005-00000001", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack</p><p class="p1">    -- Executing [s@macro-outbound-callerid:19] ExecIf("SIP/1005-00000001", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack</p><p class="p1">    -- Executing [s@macro-outbound-callerid:20] Set("SIP/1005-00000001", "CDR(outbound_cnum)=19160707077") in new stack</p><p class="p1">    -- Executing [s@macro-outbound-callerid:21] Set("SIP/1005-00000001", "CDR(outbound_cnam)=") in new stack</p><p class="p1">[2015-11-11 08:57:17] WARNING[1424]: func_cdr.c:352 cdr_write_callback: CDR requires a value (CDR(variable)=value)</p><p class="p1">    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/1005-00000001", "0?sub-flp-2,s,1()") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:13] Set("SIP/1005-00000001", "OUTNUM=16665559000") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:14] Set("SIP/1005-00000001", "custom=PJSIP") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/1005-00000001", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/1005-00000001", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/1005-00000001", "dialout-trunk-predial-hook,") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/1005-00000001", "") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/1005-00000001", "0?bypass,1") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/1005-00000001", "1?Set(CONNECTEDLINE(num,i)=16665559000)") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/1005-00000001", "1?Set(CONNECTEDLINE(name,i)=CID:19160707077)") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:21] ExecIf("SIP/1005-00000001", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)19160707077)") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:22] GotoIf("SIP/1005-00000001", "0?customtrunk") in new stack</p><p class="p1">    -- Executing [s@macro-dialout-trunk:23] Dial("SIP/1005-00000001", "PJSIP/16665559000@Beneffy_242_PJSIP,300,Tt") in new stack</p><p class="p1">    -- Called PJSIP/16665559000@Beneffy_242_PJSIP</p><p class="p1">    -- PJSIP/Beneffy_242_PJSIP-00000001 is making progress passing it to SIP/1005-00000001</p><p class="p1">    -- PJSIP/Beneffy_242_PJSIP-00000001 answered SIP/1005-00000001</p><p class="p1">    -- Channel PJSIP/Beneffy_242_PJSIP-00000001 joined 'simple_bridge' basic-bridge <fb42163f-8634-48b5-905e-c55045d21a1b></p><p class="p1">    -- Channel SIP/1005-00000001 joined 'simple_bridge' basic-bridge <fb42163f-8634-48b5-905e-c55045d21a1b></p><p class="p1">    -- Channel SIP/1005-00000001 left 'simple_bridge' basic-bridge <fb42163f-8634-48b5-905e-c55045d21a1b></p><p class="p1">  == Spawn extension (macro-dialout-trunk, s, 23) exited non-zero on 'SIP/1005-00000001' in macro 'dialout-trunk'</p><p class="p1">  == Spawn extension (from-internal, 16665559000, 5) exited non-zero on 'SIP/1005-00000001'</p><p class="p1">    -- Channel PJSIP/Beneffy_242_PJSIP-00000001 left 'simple_bridge' basic-bridge <fb42163f-8634-48b5-905e-c55045d21a1b></p><p class="p1">    -- Executing [h@from-internal:1] Hangup("SIP/1005-00000001", "") in new stack</p><p class="p1">  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1005-00000001'</p><br><br><br><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">
        Среда, 11 ноября 2015, 15:43 +01:00 от Daniel Grotti <dgrotti@sipwise.com>:<br>
        <br>
        <div id="">
        



    











        
        


        
        
        

        

        
        

        

        
        



<div class="js-helper js-readmsg-msg">
        <style type="text/css"></style>
        <div>
                <base target="_self" href="https://e.mail.ru/">
                
            <div id="style_14472530170000000461_BODY">Hi,<br>
did you add the Alias number in the subscriber's preferences<br>
allowed_clis list ?<br>
<br>
Also, are you sure that asterisk is setting in From header the alias<br>
number you have configured in the system ?<br>
<br>
<br>
--<br>
Daniel Grotti<br>
VoIP Engineer<br>
<br>
<br>
Sipwise GmbH<br>
Europaring F15 | 2345 Brunn am Gebirge, Austria | <a href="http://www.sipwise.com" target="_blank">www.sipwise.com</a><br>
<br>
On 11/11/2015 03:37 PM, Sergey Kharlamov wrote:<br>
> Hi,<br>
> <br>
> I have a subscriber and I add alias to subscriber. Client side PBX is<br>
> asterisk 13. I have add 2 extension on asterisk, one is for main number,<br>
> one is for alias number.<br>
> On each extension I setup proper Outbound CID, but when I call from<br>
> alias number it show Outbound CID of main subscriber. Same thing if I<br>
> call from main number - I see only CID for main number. Is it any<br>
> special settings for it?<br>
> <br>
> <br>
> <br>
> -- <br>
> Sergey Kharlamov<br>
> <br>
> <br>
> _______________________________________________<br>
> Spce-user mailing list<br>
> <a href="/compose?To=Spce%2duser@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>
> <a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br>
> <br>
_______________________________________________<br>
Spce-user mailing list<br>
<a href="/compose?To=Spce%2duser@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>
<a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br>
</div>
            
        
                <base target="_self" href="https://e.mail.ru/">
        </div>

        
</div>


</div>
</blockquote>
<br>
<br>-- <br>Sergey Kharlamov<br></BODY></HTML>