# Ex-girlfriend logic does not work

**URL:** <https://community.asterisk.org/t/ex-girlfriend-logic-does-not-work/815>\
**Category:** Asterisk Support\
**Created:** [July 30, 2005, 6:07pm UTC](https://community.asterisk.org/t/ex-girlfriend-logic-does-not-work/815 "2005-07-30T18:07:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aussie\_1968](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@aussie\_1968](https://community.asterisk.org/u/aussie_1968)\
**Post date:** [July 30, 2005, 6:07pm UTC](https://community.asterisk.org/t/ex-girlfriend-logic-does-not-work/815/1 "2005-07-30T18:07:05Z")

</div>

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](http://www.voip-info.org/tiki-index.php?page=Asterisk+config+extensions.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]

---

<div class="post-metadata">

**Author:** ![WillKemp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/willkemp/32/1318_2.png) [@WillKemp](https://community.asterisk.org/u/WillKemp)\
**Post date:** [July 31, 2005, 2:01am UTC](https://community.asterisk.org/t/ex-girlfriend-logic-does-not-work/815/2 "2005-07-31T02:01:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aussie\_1968](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@aussie\_1968](https://community.asterisk.org/u/aussie_1968)\
**Post date:** [July 31, 2005, 7:15am UTC](https://community.asterisk.org/t/ex-girlfriend-logic-does-not-work/815/3 "2005-07-31T07:15:34Z")

</div>

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

> [@](#):
>
> Accepting voice call from ‘incommingID’ to ‘myID’ on channel 0/1, span 1

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

---

<div class="post-metadata">

**Author:** ![SGM](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@SGM](https://community.asterisk.org/u/SGM)\
**Post date:** [July 31, 2005, 10:26am UTC](https://community.asterisk.org/t/ex-girlfriend-logic-does-not-work/815/4 "2005-07-31T10:26:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![WillKemp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/willkemp/32/1318_2.png) [@WillKemp](https://community.asterisk.org/u/WillKemp)\
**Post date:** [July 31, 2005, 11:11am UTC](https://community.asterisk.org/t/ex-girlfriend-logic-does-not-work/815/5 "2005-07-31T11:11:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aussie\_1968](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@aussie\_1968](https://community.asterisk.org/u/aussie_1968)\
**Post date:** [August 1, 2005, 7:20am UTC](https://community.asterisk.org/t/ex-girlfriend-logic-does-not-work/815/6 "2005-08-01T07:20:28Z")

</div>

> [@](#):
>
> You may try answering the line (show application answer) before palying the message

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

ciao  
Martin

---

<div class="post-metadata">

**Author:** ![mbrooks](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/mbrooks/32/1155_2.png) [@mbrooks](https://community.asterisk.org/u/mbrooks)\
**Post date:** [August 1, 2005, 10:22am UTC](https://community.asterisk.org/t/ex-girlfriend-logic-does-not-work/815/7 "2005-08-01T10:22:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![aussie\_1968](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@aussie\_1968](https://community.asterisk.org/u/aussie_1968)\
**Post date:** [August 1, 2005, 4:45pm UTC](https://community.asterisk.org/t/ex-girlfriend-logic-does-not-work/815/8 "2005-08-01T16:45:56Z")

</div>

@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/](http://www.asterisk.org/)

ciao  
Martin
