Sebastian Reitenbach
2006-May-01 22:37 UTC
[Asterisk-Users] unable to set outgoing callerid
Hi *, now for a long time i am trying to set the outgoing callerid, without luck. I am here in Germany, my asterisk has a pri interface connected to a PMX installed by Telekom. All telephone calls are preselected to EcoVoice. I am using asterisk 1.2.7.1, zaptel 1.2.5 and libpri 1.2.2. A week ago we tried with a device able to simulate a telephone system so send out a callerid, and that worked as expected. When calling a mobile phone or making a far distance call, then normally the number starts with a 0. For some reason I do not know I have to remove the entered 0 from the number before the call will make it to the intended number. I tried a lot of different formats for the callid, but no luck: 004933811234451 0049033811234451 +4933811234451 +49033811234451 033811234451 1234451 451 I tried to configure it with the set and the setcallerid functions, both with the same result. anybody might have a clue what my problem might be? any small hint is appreciated as this is going to drive me crazy. On another machine at home I have no problem setting the callerid, but there I only have a SIP trunk. kind regards Sebastian ==================================================================; Zapata telephony interface ; ; Configuration file [trunkgroups] [channels] language=en context=from-pstn ;signalling=fxs_ks signalling=pri_cpe ; pri_cpe = PRI slave ; pri_net = PRI master switchtype=euroisdn ;softdtmf=on ;relaxdtmf=on rxwink=300 ; Atlas seems to use long (250ms) winks ; ; Whether or not to do distinctive ring detection on FXO lines ; ;usedistinctiveringdetection=yes callerid=asreceived ;pridialplan=unknown usecallerid=yes nationalprefix=0 internationalprefix=00 localprefix=03381 callerid=asreceived ;callerid=033811234100 hidecallerid=no callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes cancallforward=yes callreturn=yes echocancel=yes echocancelwhenbridged=yes echotraining=400 rxgain=0.0 txgain=0.0 overlapdial=yes group=1 callgroup=1 pickupgroup=1 immediate=no ;faxdetect=both faxdetect=incoming ;faxdetect=outgoing ;faxdetect=no ;Include genzaptelconf configs #include zapata-auto.conf ;Include AMP configs #include zapata_additional.conf channel => 1-15,17-31 ==================================================================; testing extensions.conf [general] static=yes writeprotect=no [globals] [default] include => from-pstn ;exten => _0.,1,SetCallerID,"451" exten => _0.,1,Set(CALLERID(number)=004933811234451) exten => _0.,2,Dial(ZAP/g1/${EXTEN:2},60,tr) exten => _0.,3,Hangup ==============================; ; test phone.conf file ; Linux Telephony Interface ; ; Configuration file ; [interfaces] ; ; Select a mode, either the phone jack provides dialtone, reads digits, ; then starts PBX with the given extension (dialtone mode), or ; immediately provides the PBX without reading any digits or providing ; any dialtone (this is the immediate mode, the default). Also, you ; can set the mode to "fxo" if you have a linejack to make it operate ; properly. ; mode=immediate ;mode=dialtone ;mode=fxo ; ; You can decide which format to use by default, "g723.1" or "slinear". ; XXX Be careful, sometimes the card causes kernel panics when running ; in signed linear mode for some reason... XXX ; ;format=slinear format=g723.1 ; ; And set the echo cancellation to "off", "low", "medium", and "high". ; This is not supported on all phones. ; echocancel=medium ; ; You can optionally use VAD/CNG silence supression ; ;silencesupression=yes ; ; List all devices we can use. Contexts may also be specified ; ;context=local ; ; You can set txgain and rxgain for each device in the same way as context. ; If you want to change default gain value (1.0 =~ 100%) for device, simple ; add txgain or rxgain line before device line. But rememeber, if you change ; volume all cards listed below will be affected by these values. You can ; use float values (1.0, 0.5, 2.0) or percentage values (100%, 150%, 50%). ; ;txgain=100% ;rxgain=1.0 ;device => /dev/phone0 ==================================== ================================================================== here the log while calling -- Executing Set("SIP/451-f54b", "CALLERID(number)=004933811234451") in new stack -- Executing Dial("SIP/451-f54b", "ZAP/g1/3381678934|60|tr") in new stack -- Requested transfer capability: 0x00 - SPEECH -- Called g1/3381678934 -- B-channel 0/2 successfully restarted on span 1 -- B-channel 0/3 successfully restarted on span 1 -- B-channel 0/4 successfully restarted on span 1 -- Zap/1-1 is proceeding passing it to SIP/451-f54b -- Zap/1-1 answered SIP/451-f54b -- B-channel 0/5 successfully restarted on span 1 -- B-channel 0/6 successfully restarted on span 1 -- B-channel 0/7 successfully restarted on span 1 -- B-channel 0/8 successfully restarted on span 1 -- B-channel 0/9 successfully restarted on span 1 -- B-channel 0/10 successfully restarted on span 1 -- B-channel 0/11 successfully restarted on span 1 -- B-channel 0/12 successfully restarted on span 1 -- B-channel 0/13 successfully restarted on span 1 -- B-channel 0/14 successfully restarted on span 1 -- B-channel 0/15 successfully restarted on span 1 -- B-channel 0/17 successfully restarted on span 1 -- B-channel 0/18 successfully restarted on span 1 -- Channel 0/1, span 1 got hangup request -- Hungup 'Zap/1-1' -- B-channel 0/19 successfully restarted on span 1 -- B-channel 0/20 successfully restarted on span 1 May 2 06:12:15 ERROR[32229]: chan_sip.c:10831 handle_request_subscribe: Got SUBSCRIBE for extensions without hint. Please add hint to *8 in context general -- B-channel 0/21 successfully restarted on span 1 May 2 06:12:16 NOTICE[32229]: pbx.c:1738 pbx_extension_helper: Cannot find extension context 'general' May 2 06:12:16 NOTICE[32229]: pbx.c:1738 pbx_extension_helper: Cannot find extension context 'general' May 2 06:12:16 NOTICE[32229]: pbx.c:1738 pbx_extension_helper: Cannot find extension context 'general' May 2 06:12:16 NOTICE[32229]: pbx.c:1738 pbx_extension_helper: Cannot find extension context 'general' -- Executing Set("SIP/451-d8dc", "CALLERID(number)=004933811234451") in new stack -- Executing Dial("SIP/451-d8dc", "ZAP/g1/1786543503|60|tr") in new stack -- Requested transfer capability: 0x00 - SPEECH -- Called g1/1782920503 -- B-channel 0/22 successfully restarted on span 1 -- Zap/1-1 is proceeding passing it to SIP/451-d8dc -- Zap/1-1 is making progress passing it to SIP/451-d8dc -- Zap/1-1 is ringing -- B-channel 0/23 successfully restarted on span 1 -- B-channel 0/24 successfully restarted on span 1 -- Hungup 'Zap/1-1' == Everyone is busy/congested at this time (1:0/0/1) Beginning asterisk shutdown.... Executing last minute cleanups == Destroying musiconhold processes Asterisk cleanly ending (2).
Sebastian Reitenbach
2006-May-02 05:18 UTC
[Asterisk-Users] unable to set outgoing callerid
Hi, just answering myself: I am not allowed to send the leading 0 for my prefix with the callid, then it works well. Sebastian Sebastian Reitenbach <itlistuser@rapideye.de>,Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com> wrote:> Hi *, > > now for a long time i am trying to set the outgoing callerid, without luck. > > I am here in Germany, my asterisk has a pri interface connected to a PMX > installed by Telekom. All telephone calls are preselected to EcoVoice. > I am using asterisk 1.2.7.1, zaptel 1.2.5 and libpri 1.2.2. >