[asterisk-tech] Telkom PRI CLI/CID

Karl Camilleri karl at camilleri.za.net
Fri Sep 20 10:14:30 SAST 2013


Hi,


Try setting the caller ID with format 31XXXXXXX, just fixed a PRI external
caller ID issue this morning.

Regards,
Karl


On Fri, Sep 20, 2013 at 10:13 AM, Karl Camilleri <karl at camilleri.za.net>wrote:

> Try setting the caller ID with format 31XXXXXXX, just fixed a PRI external
> caller
>
>
> On Fri, Sep 20, 2013 at 9:10 AM, Michael Walton <mike at farsouthnet.com>wrote:
>
>>  Hi again Stephan
>>
>> And a another thing: see chan_dahdi.conf, below is a snippet from the
>> sample config. We leave pridialplan set to unknown, but you may want to try
>> national or international.
>>
>> Mike
>>
>> ;pridialplan=unknown
>> ;prilocaldialplan=national
>> ;
>> ; pridialplan may be also set at dialtime, by prefixing the dialled
>> number with
>> ; one of the following letters:
>> ; U - Unknown
>> ; I - International
>> ; N - National
>> ; L - Local (Net Specific)
>> ; S - Subscriber
>> ; V - Abbreviated
>> ; R - Reserved (should probably never be used but is included for
>> completeness)
>> ;
>> ; Additionally, you may also set the following NPI bits (also by
>> prefixing the
>> ; dialled string with one of the following letters):
>> ; u - Unknown
>> ; e - E.163/E.164 (ISDN/telephony)
>> ; x - X.121 (Data)
>> ; f - F.69 (Telex)
>> ; n - National
>> ; p - Private
>> ; r - Reserved (should probably never be used but is included for
>> completeness)
>> ;
>> ; You may also set the prilocaldialplan in the same way, but by prefixing
>> the
>> ; Caller*ID Number, rather than the dialled number.  Please note that
>> telcos
>> ; which require this kind of additional manipulation of the TON/NPI are
>> *rare*.
>> ; Most telco PRIs will work fine simply by setting pridialplan to unknown
>> or
>> ; dynamic.
>> ;
>> ;
>> ; PRI caller ID prefixes based on the given TON/NPI (dialplan)
>> ; This is especially needed for EuroISDN E1-PRIs
>> ;
>> ; None of the prefix settings can be changed on reload.
>> ;
>> ; sample 1 for Germany
>> ;internationalprefix = 00
>> ;nationalprefix = 0
>> ;localprefix = 0711
>> ;privateprefix = 07115678
>> ;unknownprefix =
>> ;
>> ; sample 2 for Germany
>> ;internationalprefix = +
>> ;nationalprefix = +49
>> ;localprefix = +49711
>> ;privateprefix = +497115678
>> ;unknownprefix =
>> ;
>>
>> On 09/20/2013 08:52 AM, Stephan Hartzenberg wrote:
>>
>>  Hi Michael,****
>>
>> ** **
>>
>> That was my thinking as well, but seems that FreePBX is not doing this
>> (using FreePBX distro). I have set the CID on the extension using the XXXX
>> string as well as the 10 digit string, but still when we dial out the
>> default CID is displayed.****
>>
>> ** **
>>
>> Snip from the logs:****
>>
>> ** **
>>
>> == Using SIP RTP TOS bits 184****
>>
>>   == Using SIP RTP CoS mark 5****
>>
>>     -- Executing [0827487314 at from-internal:1] Macro("SIP/5010-00000069",
>> "user-callerid,LIMIT,") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:1] Set("SIP/5010-00000069",
>> "TOUCH_MONITOR=1379659858.254") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:2] Set("SIP/5010-00000069",
>> "AMPUSER=5010") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:3] GotoIf("SIP/5010-00000069",
>> "0?report") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:4] ExecIf("SIP/5010-00000069",
>> "1?Set(REALCALLERIDNUM=5010)") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:5] Set("SIP/5010-00000069",
>> "AMPUSER=5010") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:6] Set("SIP/5010-00000069",
>> "AMPUSERCIDNAME=Stephan Hartzenberg") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:7] GotoIf("SIP/5010-00000069",
>> "0?report") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:8] Set("SIP/5010-00000069",
>> "AMPUSERCID=5010") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:9] Set("SIP/5010-00000069",
>> "__DIAL_OPTIONS=tr") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:10] Set("SIP/5010-00000069",
>> "CALLERID(all)="Stephan Hartzenberg" <5010>") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:11] GotoIf("SIP/5010-00000069",
>> "0?limit") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:12] ExecIf("SIP/5010-00000069",
>> "1?Set(GROUP(concurrency_limit)=5010)") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:13] GosubIf("SIP/5010-00000069",
>> "7?sub-ccss,s,1(from-internal,0827487314)") in new stack****
>>
>>     -- Executing [s at sub-ccss:1] ExecIf("SIP/5010-00000069",
>> "0?Return()") in new stack****
>>
>>     -- Executing [s at sub-ccss:2] Set("SIP/5010-00000069",
>> "CCSS_SETUP=TRUE") in new stack****
>>
>>     -- Executing [s at sub-ccss:3] GosubIf("SIP/5010-00000069",
>> "0?monitor_config,1(from-internal,0827487314):monitor_default,1(from-internal,0827487314)")
>> in new stack****
>>
>>     -- Executing [monitor_default at sub-ccss:1]
>> GotoIf("SIP/5010-00000069", "0?is_exten") in new stack****
>>
>>     -- Executing [monitor_default at sub-ccss:2]
>> StackPop("SIP/5010-00000069", "") in new stack****
>>
>>     -- Executing [monitor_default at sub-ccss:3]
>> Return("SIP/5010-00000069", "FALSE") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:14] ExecIf("SIP/5010-00000069",
>> "0?Set(CHANNEL(language)=)") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:15] GotoIf("SIP/5010-00000069",
>> "1?continue") in new stack****
>>
>>     -- Goto (macro-user-callerid,s,28)****
>>
>>     -- Executing [s at macro-user-callerid:28] Set("SIP/5010-00000069",
>> "CALLERID(number)=5010") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:29] Set("SIP/5010-00000069",
>> "CALLERID(name)=Stephan Hartzenberg") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:30] Set("SIP/5010-00000069",
>> "CDR(cnum)=5010") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:31] Set("SIP/5010-00000069",
>> "CDR(cnam)=Stephan Hartzenberg") in new stack****
>>
>>     -- Executing [s at macro-user-callerid:32] Set("SIP/5010-00000069",
>> "CHANNEL(language)=en") in new stack****
>>
>>     -- Executing [0827487314 at from-internal:2] Set("SIP/5010-00000069",
>> "MOHCLASS=default") in new stack****
>>
>>     -- Executing [0827487314 at from-internal:3] Set("SIP/5010-00000069",
>> "_NODEST=") in new stack****
>>
>>     -- Executing [0827487314 at from-internal:4] Gosub("SIP/5010-00000069",
>> "sub-record-check,s,1(out,0827487314,)") in new stack****
>>
>>     -- Executing [s at sub-record-check:1] Set("SIP/5010-00000069",
>> "REC_POLICY_MODE_SAVE=") in new stack****
>>
>>     -- Executing [s at sub-record-check:2] GotoIf("SIP/5010-00000069",
>> "1?check") in new stack****
>>
>>     -- Goto (sub-record-check,s,7)****
>>
>>     -- Executing [s at sub-record-check:7] Set("SIP/5010-00000069",
>> "__MON_FMT=wav") in new stack****
>>
>>     -- Executing [s at sub-record-check:8] GotoIf("SIP/5010-00000069",
>> "1?next") in new stack****
>>
>>     -- Goto (sub-record-check,s,11)****
>>
>>     -- Executing [s at sub-record-check:11] ExecIf("SIP/5010-00000069",
>> "0?Return()") in new stack****
>>
>>     -- Executing [s at sub-record-check:12] ExecIf("SIP/5010-00000069",
>> "0?Set(__REC_POLICY_MODE=)") in new stack****
>>
>>     -- Executing [s at sub-record-check:13] GotoIf("SIP/5010-00000069",
>> "0?out,1") in new stack****
>>
>>     -- Executing [s at sub-record-check:14] Set("SIP/5010-00000069",
>> "__REC_STATUS=INITIALIZED") in new stack****
>>
>>     -- Executing [s at sub-record-check:15] Set("SIP/5010-00000069",
>> "NOW=1379659858") in new stack****
>>
>>     -- Executing [s at sub-record-check:16] Set("SIP/5010-00000069",
>> "__DAY=20") in new stack****
>>
>>     -- Executing [s at sub-record-check:17] Set("SIP/5010-00000069",
>> "__MONTH=09") in new stack****
>>
>>     -- Executing [s at sub-record-check:18] Set("SIP/5010-00000069",
>> "__YEAR=2013") in new stack****
>>
>>     -- Executing [s at sub-record-check:19] Set("SIP/5010-00000069",
>> "__TIMESTR=20130920-085058") in new stack****
>>
>>     -- Executing [s at sub-record-check:20] Set("SIP/5010-00000069",
>> "__FROMEXTEN=5010") in new stack****
>>
>>     -- Executing [s at sub-record-check:21] Set("SIP/5010-00000069",
>> "__CALLFILENAME=out-0827487314-5010-20130920-085058-1379659858.254") in new
>> stack****
>>
>>     -- Executing [s at sub-record-check:22] Goto("SIP/5010-00000069",
>> "out,1") in new stack****
>>
>>     -- Goto (sub-record-check,out,1)****
>>
>>     -- Executing [out at sub-record-check:1] ExecIf("SIP/5010-00000069",
>> "1?Set(__REC_POLICY_MODE=dontcare)") in new stack****
>>
>>     -- Executing [out at sub-record-check:2] GosubIf("SIP/5010-00000069",
>> "0?record,1(exten,0827487314,5010)") in new stack****
>>
>>     -- Executing [out at sub-record-check:3] Return("SIP/5010-00000069",
>> "") in new stack****
>>
>>     -- Executing [0827487314 at from-internal:5] Macro("SIP/5010-00000069",
>> "dialout-trunk,1,0827487314,,off") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:1] Set("SIP/5010-00000069",
>> "DIAL_TRUNK=1") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:2] GosubIf("SIP/5010-00000069",
>> "0?sub-pincheck,s,1()") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:3] GotoIf("SIP/5010-00000069",
>> "0?disabletrunk,1") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:4] Set("SIP/5010-00000069",
>> "DIAL_NUMBER=0827487314") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:5] Set("SIP/5010-00000069",
>> "DIAL_TRUNK_OPTIONS=tr") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:6] Set("SIP/5010-00000069",
>> "OUTBOUND_GROUP=OUT_1") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:7] GotoIf("SIP/5010-00000069",
>> "0?nomax") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:8] GotoIf("SIP/5010-00000069",
>> "0?chanfull") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:9] GotoIf("SIP/5010-00000069",
>> "0?skipoutcid") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:10] Set("SIP/5010-00000069",
>> "DIAL_TRUNK_OPTIONS=") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:11] Macro("SIP/5010-00000069",
>> "outbound-callerid,1") in new stack****
>>
>>     -- Executing [s at macro-outbound-callerid:1]
>> ExecIf("SIP/5010-00000069", "0?Set(CALLERPRES()=)") in new stack****
>>
>>     -- Executing [s at macro-outbound-callerid:2]
>> ExecIf("SIP/5010-00000069", "0?Set(REALCALLERIDNUM=5010)") in new stack**
>> **
>>
>>     -- Executing [s at macro-outbound-callerid:3]
>> GotoIf("SIP/5010-00000069", "1?normcid") in new stack****
>>
>>     -- Goto (macro-outbound-callerid,s,6)****
>>
>>     -- Executing [s at macro-outbound-callerid:6] Set("SIP/5010-00000069",
>> "USEROUTCID=7350") in new stack****
>>
>>     -- Executing [s at macro-outbound-callerid:7] Set("SIP/5010-00000069",
>> "EMERGENCYCID=") in new stack****
>>
>>     -- Executing [s at macro-outbound-callerid:8] Set("SIP/5010-00000069",
>> "TRUNKOUTCID=0115637300") in new stack****
>>
>>     -- Executing [s at macro-outbound-callerid:9]
>> GotoIf("SIP/5010-00000069", "1?trunkcid") in new stack****
>>
>>     -- Goto (macro-outbound-callerid,s,14)****
>>
>>     -- Executing [s at macro-outbound-callerid:14]
>> ExecIf("SIP/5010-00000069", "1?Set(CALLERID(all)=0115637300)") in new stack
>> ****
>>
>>     -- Executing [s at macro-outbound-callerid:15]
>> ExecIf("SIP/5010-00000069", "1?Set(CALLERID(all)=7350)") in new stack****
>>
>>     -- Executing [s at macro-outbound-callerid:16]
>> ExecIf("SIP/5010-00000069", "0?Set(CALLERID(all)=)") in new stack****
>>
>>     -- Executing [s at macro-outbound-callerid:17]
>> ExecIf("SIP/5010-00000069", "0?Set(CALLERPRES()=prohib_passed_screen)") in
>> new stack****
>>
>>     -- Executing [s at macro-outbound-callerid:18] Set("SIP/5010-00000069",
>> "CDR(outbound_cnum)=7350") in new stack****
>>
>>     -- Executing [s at macro-outbound-callerid:19] Set("SIP/5010-00000069",
>> "CDR(outbound_cnam)=") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:12] GosubIf("SIP/5010-00000069",
>> "0?sub-flp-1,s,1()") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:13] Set("SIP/5010-00000069",
>> "OUTNUM=0827487314") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:14] Set("SIP/5010-00000069",
>> "custom=DAHDI/g0") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:15] ExecIf("SIP/5010-00000069",
>> "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:16] ExecIf("SIP/5010-00000069",
>> "0?Set(DIAL_TRUNK_OPTIONS=M(confirm))") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:17] Macro("SIP/5010-00000069",
>> "dialout-trunk-predial-hook,") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk-predial-hook:1]
>> MacroExit("SIP/5010-00000069", "") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:18] GotoIf("SIP/5010-00000069",
>> "0?bypass,1") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:19] ExecIf("SIP/5010-00000069",
>> "1?Set(CONNECTEDLINE(num,i)=0827487314)") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:20] ExecIf("SIP/5010-00000069",
>> "1?Set(CONNECTEDLINE(name,i)=CID:7350)") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:21] GotoIf("SIP/5010-00000069",
>> "0?customtrunk") in new stack****
>>
>>     -- Executing [s at macro-dialout-trunk:22] Dial("SIP/5010-00000069",
>> "DAHDI/g0/0827487314,300,") in new stack****
>>
>>     -- Requested transfer capability: 0x00 - SPEECH****
>>
>>     -- Called DAHDI/g0/0827487314****
>>
>>     -- DAHDI/i1/0827487314-64 is proceeding passing it to
>> SIP/5010-00000069****
>>
>>     -- DAHDI/i1/0827487314-64 is ringing****
>>
>>     -- Hungup 'DAHDI/i1/0827487314-64'****
>>
>>   == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on
>> 'SIP/5010-00000069' in macro 'dialout-trunk'****
>>
>>   == Spawn extension (from-internal, 0827487314, 5) exited non-zero on
>> 'SIP/5010-00000069'****
>>
>>     -- Executing [h at from-internal:1] Hangup("SIP/5010-00000069", "") in
>> new stack****
>>
>>   == Spawn extension (from-internal, h, 1) exited non-zero on
>> 'SIP/5010-00000069'****
>>
>> ** **
>>
>> This is from a test extension set with CID 7350.****
>>
>> ** **
>>
>> I have set the trunk not to override the extension.****
>>
>> ** **
>>
>> Stephan****
>>
>> ** **
>>
>> *From:* tech-bounces at asterisk.org.za [mailto:tech-bounces at asterisk.org.za]
>> *On Behalf Of *Michael Walton
>> *Sent:* 20 September 2013 08:13
>> *To:* tech at asterisk.org.za
>> *Subject:* Re: [asterisk-tech] Telkom PRI CLI/CID****
>>
>> ** **
>>
>> Hi Stephan
>>
>> On 09/20/2013 07:42 AM, Stephan Hartzenberg wrote:****
>>
>>  ****
>>
>> Hi Guys,****
>>
>>  ****
>>
>> Quick question, I am trying to override the CID on our PRI trunk with
>> that of one our extensions( CID still part of the PRI number range). Reason
>> I am trying to this is because the extension belongs to someone from
>> another company renting space from us and  making use of our
>> infrastructure. They have their own number and I would like to advertise
>> this number when they make a call, instead of advertising our default CID
>> and having people phoning our helpdesk when returning their calls.****
>>
>>  ****
>>
>> Hope this makes sense? I have never had to do this, so my question is, is
>> this possible?****
>>
>> Certainly is. If you are using FreePBX, it should "just work". If not,
>> make sure you have somewhere in your dialplan before the dial command:
>>
>> Set(CALLERID(number)=XXXX)
>>
>> where XXXX is the 4 digit DID in the PRI number range. It probably also
>> works if you have the full 10 digit number in here.
>>
>> Regards
>>
>> Mike Walton
>> Technical Director
>> Far South Networks****
>>
>> Stephan Hartzenberg
>> *PwC | Exordia | Network Administrator*
>> Direct: | Mobile:+27 82 748 7314 | Fax:
>> Email: stephan.hartzenberg at exordia.co.za | www.exordia.co.za
>> PricewaterhouseCoopers Exordia (Pty) Ltd
>> 7 Kikuyu Road, Sunninghill, 2157
>>
>> NOTICES: The information transmitted is intended only for the person or
>> entity to which it is addressed and may contain confidential and/or
>> privileged material. Any review, re-transmission, dissemination or other
>> use of, or taking of any action in reliance upon, this information by
>> persons or entities other than the intended recipient is prohibited. If you
>> received this in error, please contact the sender and delete the material
>> from any computer.
>>
>>
>> _______________________________________________
>> asterisk tech mailing listtech at asterisk.org.zahttp://www.asterisk.org.za/mailman/listinfo/tech
>>
>>
>>
>> _______________________________________________
>> asterisk tech mailing list
>> tech at asterisk.org.za
>> http://www.asterisk.org.za/mailman/listinfo/tech
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://asterisk.org.za/pipermail/tech/attachments/20130920/0b994d5d/attachment-0001.html>


More information about the tech mailing list