[asterisk-users] Caller ID matching

Mike Hammett asterisk-users at ics-il.net
Tue May 22 06:36:31 MST 2007


Yeah, I was trying to have it match the caller ID with what they're dialing
so that I don't have a separate entry for every customer.

 

 

-----
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com

 

 

 

 

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Rizwan Hisham
Sent: Tuesday, May 22, 2007 5:14 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Caller ID matching

 

I did it anyway. i used another way around to do it:

suppose 887776666 is your number

exten=> 887776666,1,Dial(SIP/you)
exten=> 887776666/887776666,1,VoiceMailMain()

but in this case you will have to make a separate vm extension for every
user. 

On 5/22/07, Rizwan Hisham <rizwanhasham at gmail.com> wrote:

well i have tried to solve your problem, making your extensions in my
dialplan and reloading dialplan gives me segmentation fault. im afraid i
cant help u :)

 

exten => 555*,1,NoOp(${CALLERID(num)})

exten => 555*,2,Hangup

 

On 5/20/07, Mike Hammett < <mailto:asterisk-users at ics-il.net>
asterisk-users at ics-il.net> wrote:

What's going on here?  555* seems to indicate that the number is being
passed as the callerID because NoOp says the phone number.

 

I'm trying to emulate cell phone voicemail where you call your own number to
check your voicemail.

 

    -- Accepting AUTHENTICATED call from 65.182.165.XXX:

       > requested format = gsm,

       > requested prefs = (),

       > actual format = ulaw,

       > host prefs = (ulaw),

       > priority = mine

    -- Executing NoOp("IAX2/815748XXXX-16", "815748XXXX") in new stack

    -- Executing Hangup("IAX2/815748XXXX-16", "") in new stack

  == Spawn extension (outbound-scripted, 555*, 2) exited non-zero on
'IAX2/815748XXXX-16'

May 20 11:10:34 ERROR[3286]: cdr_addon_mysql.c:144 mysql_log: cdr_mysql:
cannot connect to database server localhost.

    -- Hungup 'IAX2/815748XXXX-16'

May 20 11:11:00 NOTICE[3275]: chan_iax2.c:7323 socket_read: Rejected connect
attempt from 65.182.165.XXX, request '815748XXXX at outbound-scripted' does not
exist

 

exten => ${CALLERID(NUM)}/${CALLERID(NUM)},1,Answer

exten => ${CALLERID(NUM)}/${CALLERID(NUM)},2,NoOp(It's here)

exten => ${CALLERID(NUM)}/${CALLERID(NUM)},3,VoicemailMain(${CALLERID(NUM)})

exten => ${CALLERID(NUM)}/${CALLERID(NUM)},4,Hangup()

 

exten => 555*,1,NoOp(${CALLERID(num)})

exten => 555*,2,Hangup

 

 

 

-----
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com

 

 

 

 

 


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
<http://lists.digium.com/mailman/listinfo/asterisk-users> 




-- 
Rizwan Hisham
Software Engineer
AXVOICE Inc. 




-- 
Rizwan Hisham
Software Engineer
AXVOICE Inc. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070522/70af8804/attachment.htm


More information about the asterisk-users mailing list