Mark Elkins
2005-Jan-04 06:20 UTC
[Asterisk-Users] Displaying incoming e.164 callers number - how?
I've got asterisk able to make and receive calls via the Internet via E164 lookups. If I get such a call - I'd like to display the original phone number on my phone. In the log is the following - which displayed '601' on my phone. The caller was +886288097680 - am I getting the wrong ClID because of my end or the caller end? "","601","3","default","601","IAX2/guest@61.220.121.18:4569/1","SIP/phone3-99fb","Dial","SIP/phone3|30|tr","2005-01-03 16:53:33","2005-01-03 16:53:33","2005-01-03 17:02:00",507,507,"ANSWERED","DOCUMENTATION" Anyone care to call me? -- . . ___. .__ Posix Systems - Sth Africa. e.164 VOIP ready /| /| / /__ mje@posix.co.za - Mark J Elkins, Cisco CCIE / |/ |ARK \_/ /__ LKINS Tel: +27 12 807 0590 Cell: +27 82 601 0496
Mark Elkins
2005-Jan-04 06:45 UTC
[Asterisk-Users] Displaying incoming e.164 callers number - how?
On Tue, 2005-01-04 at 15:20 +0200, Mark Elkins wrote:> I've got asterisk able to make and receive calls via the Internet via > E164 lookups. If I get such a call - I'd like to display the original > phone number on my phone. In the log is the following - which displayed > '601' on my phone. The caller was +886288097680 - am I getting the wrong > ClID because of my end or the caller end? > > "","601","3","default","601","IAX2/guest@61.220.121.18:4569/1","SIP/phone3-99fb","Dial","SIP/phone3|30|tr","2005-01-03 16:53:33","2005-01-03 16:53:33","2005-01-03 17:02:00",507,507,"ANSWERED","DOCUMENTATION" > > Anyone care to call me?Replying to myself - I see that the gent at +886288097680 should be doing something like.... [macro-enum-call] exten => s,1,SetCallerID(27128070590) exten => s,2,EnumLookup(${ARG2}) ... ie setting his own caller-ID before calling... ---------------------------------- Playing with myself again.... - that is - I called myself - and got the caller ID of '27128070590'... not quite what I wanted... In my extensions - I have... [fromaix] exten => 27128070590,1,Goto(default,s,1) ..and.. [default] ; what people will get when they call me. exten => s,1,NoOp(CALLER=${CALLERIDNUM}) exten => s,2,Answer() ...etc... This gives me (in the console) -- Executing Goto("IAX2/guest@160.124.48.1:4569/2", "default|s|1") in new stack -- Goto (default,s,1) -- Executing NoOp("IAX2/guest@160.124.48.1:4569/2", "CALLER=27128070590") in new stack -- Executing Answer("IAX2/guest@160.124.48.1:4569/2", "") in new stack - so how do I rewrite the caller id - such that if it starts with '27' - I change the '27' to a '0' - otherwise prepend it with (South Africa's international access code) '09' ??? My main phones are all Grandstream's - and I'd like to be able to uniformally return a call regardless of how it arrived.... OK - so people calling via VoIP can fake (or simply never setup) their caller ID - but I'm looking for utopia. -- . . ___. .__ Posix Systems - Sth Africa. e.164 VOIP ready /| /| / /__ mje@posix.co.za - Mark J Elkins, Cisco CCIE / |/ |ARK \_/ /__ LKINS Tel: +27 12 807 0590 Cell: +27 82 601 0496