Administrator TOOTAI
2012-Nov-26 14:08 UTC
[asterisk-users] No matching peer for 'callerID' from '85.xx.xx.2:5060'
Hi list, I face the following problem on incoming calls from my provider which uses Asterisk 1.6.1.25, our asterisk being 1.8.17.0. Incoming calls are not sended to the context set in provider sip.conf definition, but are going to the default context setted in [general]. Provider uses few IP's for incoming calls which are not the one used for register. Here are the logs: [2012-11-26 14:18:45] VERBOSE[1785] chan_sip.c: --- (15 headers 22 lines) --- [2012-11-26 14:18:45] VERBOSE[1785] chan_sip.c: Sending to 85.xx.xx.2:5060 (no NAT) [2012-11-26 14:18:45] VERBOSE[1785] chan_sip.c: Using INVITE request as basis request - 07403bb3412fc5206dec905b4eb26bbe at 85.xx.xx.2 [2012-11-26 14:18:45] VERBOSE[1785] chan_sip.c: No matching peer for '0033xxxxxxxxx' from '85.xx.xx.2:5060' ... [2012-11-26 14:38:48] VERBOSE[1785] chan_sip.c: Peer audio RTP is at port 85.x.xx.2:16566 [2012-11-26 14:38:48] VERBOSE[1785] chan_sip.c: Looking for 027xxxxxxin default-guest (domain 217.yy.yy.yy) [2012-11-26 14:38:48] VERBOSE[1785] chan_sip.c: list_route: hop: <sip:0033xxxxxxxxx at 85.xx.xx.2> [2012-11-26 14:38:48] VERBOSE[1785] chan_sip.c: RDNIS for this call is 027xxxxxx (reason ) Our asterisk is registered with the provider, registerer IP from the provider being 85.xx.xx.3: Sip.conf [general] context=default-guest ;where incoming calls ended ... register => 01234567:mysecret at sip.provider.net/01234567 [01234567] type=peer defaultuser=01234567 secret=mysecret host=sip.provider.net deny=0.0.0.0/0.0.0.0 permit=85.xx.xx.0/255.255.255.0 directmedia=no qualify=yes dtmfmode=rfc2833 disallow=all allow=ulaw,alaw context=from-Provider insecure=port,invite fromdomain = sip.provider.net fromuser=01234567 sendrpid = yes nat=yes What is wrong? Thanks for any hint -- Daniel
Joshua Colp
2012-Nov-26 14:28 UTC
[asterisk-users] No matching peer for 'callerID' from '85.xx.xx.2:5060'
Administrator TOOTAI wrote:> Hi list,Hola,> I face the following problem on incoming calls from my provider which > uses Asterisk 1.6.1.25, our asterisk being 1.8.17.0. Incoming calls are > not sended to the context set in provider sip.conf definition, but are > going to the default context setted in [general]. > > Provider uses few IP's for incoming calls which are not the one used for > register.You will need to create separate SIP peers that match on each IP address and direct them accordingly to the correct context. A secondary option is to enable anonymous guest support, but I would not recommend that as it can pose a security risk. Cheers, -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: www.digium.com & www.asterisk.org
isrlgb at gmail.com
2012-Nov-26 14:51 UTC
[asterisk-users] No matching peer for 'callerID' from '85.xx.xx.2:5060'
Thought so but hoped other wise Thanks ------Original Message------ From: Joshua Colp To: ????? ?????? To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] No matching peer for 'callerID' from '85.xx.xx.2:5060' Sent: Nov 26, 2012 4:40 PM isrlgb at gmail.com wrote:> Hi, > If were on this subject I'll throw in my question > > Does named acl lists in asterisk 11 help for this or only for registrations?ACLs don't control SIP peer matching, so no. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: www.digium.com & www.asterisk.org