[asterisk-users] Caller ID matching

Matthew Yingling matt at xenotran.com
Wed May 23 15:19:54 MST 2007


We use this macro, which works quite well:

[macro-checkuservoicemail]
; ${ARG1} - Device extension(s) to check for mail
; Usage
; in main context do exten => 1000,1,Macro(checkuservoicemail,101)

exten => s,1,NoOp(Entering CheckUserVoiceMail for ${MACRO_EXTEN})
exten => s,n,GotoIf($["${MACRO_EXTEN}" = "${ARG1}"]?:NoMatchVM)
exten => s,n,Playback(beep)              ; Hack for UIP200 clipping bug
exten => s,n,VoicemailMain(${ARG1}@outgoing)     ; Check vmail
exten => s,n,Hangup                      ; Hangup after checking vmail
exten => s,n(NoMatchVM),NoOp(End checkuservoicemail)


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Mike Hammett
Sent: Tuesday, May 22, 2007 9:37 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [asterisk-users] Caller ID matching


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 < 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




--
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/20070523/36d71ab8/attachment.htm


More information about the asterisk-users mailing list