Thanks for the help Jerry - I'm getting closer, but still no luck...

Now, I hear the lady say "S". I think what is happening is that the GoTo command is setting the extension to 's' when it transfers control to the context defined in the IAX.conf -where I have the trunk line defined...

exten => h,1,Hangup
exten => s,n,Answer
exten => s,n,Wait(1)
exten => s,n,SayAlpha(${EXTEN})

It is my impression that the EXTEN variable is used as the internal extension - not the incoming DID number, but you seem pretty confident so I must be wrong. What I"m looking to do is a FOP pop-up with the DID number and caller ID number in it... I'll tie that into a web-based database...


Here's my full log file..

Oct 20 14:23:42 VERBOSE[5387] logger.c: -- Accepting AUTHENTICATED call from 204.11.194.34:
       > requested format = ulaw,
       > requested prefs = (),
       > actual format = ulaw,
       > host prefs = (ulaw|alaw|gsm),
       > priority = mine
Oct 20 14:23:42 VERBOSE[5862] logger.c: -- Executing Set ("IAX2/204.11.194.34:4569-4", "LOOPCOUNT=0") in new stack Oct 20 14:23:42 VERBOSE[5862] logger.c: -- Executing Set ("IAX2/204.11.194.34:4569-4", "__DIR-CONTEXT=default") in new stack Oct 20 14:23:42 VERBOSE[5862] logger.c: -- Executing Answer ("IAX2/204.11.194.34:4569-4", "") in new stack Oct 20 14:23:42 VERBOSE[5862] logger.c: -- Executing Wait ("IAX2/204.11.194.34:4569-4", "1") in new stack
Oct 20 14:23:43 DEBUG[5387] chan_iax2.c: Ooh, voice format changed to 4
Oct 20 14:23:43 VERBOSE[5862] logger.c: -- Executing SayAlpha ("IAX2/204.11.194.34:4569-4", "s") in new stack Oct 20 14:23:43 DEBUG[5862] channel.c: Scheduling timer at 160 sample intervals Oct 20 14:23:43 VERBOSE[5862] logger.c: -- Playing 'letters/ s' (language 'en')



DID is the inbound call number.
The <> is notation for CallerID name, that won't help.

s is the "start" extension. setting it to "FROM_DID" makes no sense.
(This is the extention that "starts" in this context; it is a default, if the context is started without an extension. (eg batphone or called from another
context))

FROM_DID=${EXTEN} gets you the right number.
However, "SayNumber" is looking for a SINGLE digit. Your "000-000-0000" style number is overflow, and hence "zero".
You have to parse the number to do this right.

If you aren't sure how, let me know, I might have a macro to do it.

Thanks,
J.



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

Reply via email to