Ex-girlfriend logic does not work


#1

hi there,

i would like some people calling me to get their personalised “not in” messages
and i thought i could use the “ex-girlfriend logic” as described on
voip-info.org/tiki-index.php … sions.conf

unfortunately, it does not seem to recognise that the person is calling and
uses the standard message. i do not know what i am doing wrong here.

asterisk does recognize the number [quote]Accepting voice call from ‘987654’ to ‘1234567’ on channel 0/1, span 1[/quote]
but then the standard “vm-DefaultVoicemail” is being played.

in /etc/asterisk/extensions.conf i got:

[quote][pbx-trunk]
; private message
exten => 1234567/987654,1,WaitExten(15)
exten => 1234567/987654,2,Playback(vm-SpecialVoicemail)
exten => 1234567/987654,3,VoiceMail(s1234567)
exten => 1234567/987654,4,Hangup()
; the rest
exten => 1234567,1,WaitExten(15)
exten => 1234567,2,Playback(vm-DefaultVoicemail)
exten => 1234567,3,VoiceMail(s1234567)
exten => 1234567,4,Hangup()[/quote]

where 1234567 is my callerID and 987654 is the callerID i want the special message for.
i have tried changing the prio, so that they are all unique, but it did not work either.

anyone got an idea on what i am doing wrong ?

ciao
Martin[/quote]


#2

Are you sure the callerID on the incoming call is exactly what you think it should be?


#3

Are you sure the callerID on the incoming call is exactly what you think it should be?
what do you mean ?
is the callerID not his phone number ? if not, do i need to define something, somewhere else ?

the numbers have been changed by me.
my real phoneNumer is not really “1234567” and the callers number is not really “987654”.
they are just dummies. the logic behind it is:

asterisk gives out a debug line -

which shows the correct numbers, mine and the calle.

now, if i would have something like this,

[quote][pbx-trunk]
; private message
exten => myID/incommingID,1,WaitExten(15)
exten => myID/incommingID,2,Playback(vm-SpecialVoicemail)
exten => myID/incommingID,3,VoiceMail(s1234567)
exten => myID/incommingID,4,Hangup()
; the rest
exten => myID,1,WaitExten(15)
exten => myID,2,Playback(vm-DefaultVoicemail)
exten => myID,3,VoiceMail(s1234567)
exten => myID,4,Hangup()[/quote]

then i would assume, that the caller with the incommingID would
be forwarded to the voicebox using vm-SpecialVoicemail, but it is not.
it also goes to vm-DefaultVoicemail.

usually here in germany the phone numbers have a “0” in front.
eg. 02345739567, but when asterisk show the “accepting” message,
it is not shown. that is why i did not include the “0” in the incommingID.

is that any better ?

ciao
Martin


#4

You may try answering the line (show application answer) before palying the message :wink:


#5

[quote=“aussie_1968”]>Are you sure the callerID on the incoming call is exactly what you think it should be?
what do you mean ?
is the callerID not his phone number ? if not, do i need to define something, somewhere else ?[/quote]
What i meant was that sometimes - depending on where the callerID is coming from - it may not be exactly the same as the calling party’s phone number. However, i didn’t pay attention to the bit in your message that suggests you are seeing what that callerID actually is. So ignore my comment.


#6

ok, that makes it nicer, but does not solve my problem :smile:

ciao
Martin


#7

There exists a bug in 1.0.8 where the “ex-girlfriend” logic does not work. If you are running 1.0.8 please update to the newest version. This might solve your problem.


#8

@shep

If you are running 1.0.8 please update to the newest version
i am using bristuff-0.2.0-RC8j which uses asterisk 1.0.9.
1.0.9 seems to be the latest version on asterisk.org/

ciao
Martin