Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


richms

29099 posts

Uber Geek
+1 received by user: 10214

Trusted
Lifetime subscriber

#11467 24-Jan-2007 22:36
Send private message

using 1.4.0-beta3 at the moment on there.

Its commented out at the moment because its not working, sending all calls into the 1000 and getting the message and hangup.

nnn is the last digits of my number


exten => 6499744nnn,1,NoOp(${CALLERID}) ; log callerID string
exten => 6499744nnn,2,GotoIf($["foo${CALLERIDNUM}" = "foo"]?1000)
exten => 6499744nnn,3,Dial(SIP/richard,25,tr)

exten => 6499744nnn,4,Hangup

exten => 6499744nnn,1000,Answer
exten => 6499744nnn,1001,Wait(1)
exten => 6499744nnn,1002,Playback(privacy-screening-unidentified-calls)
exten => 6499744nnn,1003,Playback(goodbye)
exten => 6499744nnn,1004,Hangup


on incoming calls I get in the console



-- Executing [6499744nnn@mainmenu:1] NoOp("SIP/6499743yyy-081c4320", "") in new stack
-- Executing [6499744nnn@mainmenu:2] GotoIf("SIP/6499743yyy-081c4320", "1?1000") in new stack
-- Goto (mainmenu,6499744nnn,1000)
-- Executing [6499744nnn@mainmenu:1000] Answer("SIP/6499743yyy-081c4320", "") in new stack
-- Executing [6499744nnn@mainmenu:1001] Wait("SIP/6499743yyy-081c4320", "1") in new stack
-- Executing [6499744nnn@mainmenu:1002] Playback("SIP/6499743yyy-081c4320", "privacy-screening-unidentified-calls") in new stack
-- Playing 'privacy-screening-unidentified-calls' (language 'en')
== Spawn extension (mainmenu, 6499744nnn, 1002) exited non-zero on 'SIP/6499743yyy-081c4320'

The bold bit is my flatmates italk number which makes no sense since I am calling in on the old 025 mobile. Same thing goes on in there with or without 0197

if I change to having

exten => 6499744123,1,Dial(SIP/richard,30,Tr)

then calls come thru to my ata just fine, with caller ID if allowed, and nothing if withheld.




Richard rich.ms

Create new topic
richms

29099 posts

Uber Geek
+1 received by user: 10214

Trusted
Lifetime subscriber

  #58873 26-Jan-2007 00:00
Send private message

Found it

changed that line to

exten => 6499744nnn,2,GotoIf($["foo${CALLERID(num)}" = "foo"]?1000) and it worked.




Richard rich.ms

Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.