When you set:
^\([1-9][0-9]\{6\}\)$=jingle/1MYAREACODE\1@voice.google.com;line=GoogleVoice1;
^\([1-9][0-9]\{6\}\)$=jingle/MYAREACODE\1@voice.google.com;line=GoogleVoice2;\
the rule in the left hand will match the called party number party.
If you set the same rule the first one will always match before the second one.
If you want to route an incoming call from a sip user registered to yate you may use the following rules:
[default]
${module}^sip$={
${username}^USERNAME1$=goto GV_CALL;line=GoogleVoice1
${username}^USERNAME2$=goto GV_CALL;line=GoogleVoice2
}
[GV_CALL]
; Set extra parameters for all calls to GV
.*=;ojingle_version=0;ojingle_flags=noping;redirectcount=5;checkcalled=false;dtmfmethod=rfc2833
; Call
^\([1-9][0-9]\{6\}\)$=jingle/1MYAREACODE\
1@voice.google.comIf you want to do something else (e.g. other matching rules for calls) you should tell us what exactly do you want to do.