[Asterisk-Users] Incoming IAX going to wrong context

Thomas Kenyon digium at sanguinarius.co.uk
Wed May 31 06:39:02 MST 2006


I have (more than 1) provider that I receive calls from using IAX, and I
have 2 IAX deskphones, all work fine except for some reason with 1
provider, when the call comes in, it doesn't match up with the
incomingcall context. (A bit worrying, since I don't want people to be
able to relay calls off me.)

in iax.conf I have:

[ipcomms]
type=user
nat=yes
dtmfmode=rfc2833
host=71.16.179.149
context=incomingcall
disallow=all
allow=gsm
allow=alaw
allow=ulaw

in extensions.conf I have at the bottom of [incomingcall] :

exten => 9546782688,1,AGI,calleridlookup.agi                     
(script I wrote to rewrite callerid based on phone number, works on all
other incoming extensions).
exten => 9546782688,2,Answer
exten =>
9546782688,3,Dial(SIP/Adam&SIP/Gary&SIP/Tomsone&SIP/Garage&SIP/Bedroom&IAX2/Office&IAX2/Conservatory,90,t)  
   (household extensions)


>From a debug output I get:

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00015ms  SCall: 00001  DCall: 00000 [71.16.179.149:4569]
   VERSION         : 2
   CALLED NUMBER   : 9546782688
   CALLING NUMBER  : 441489858029
   LANGUAGE        : en
   FORMAT          : 4
   CAPABILITY      : 63502
   ADSICPE         : 2
   DATE TIME       : 2006-05-31  08:24:58

    -- Accepting UNAUTHENTICATED call from 71.16.179.149:
       > requested format = ulaw,
       > requested prefs = (),
       > actual format = alaw,
       > host prefs = (alaw|ulaw),
       > priority = mine

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass:
ACCEPT
   Timestamp: 00018ms  SCall: 00006  DCall: 00001 [71.16.179.149:4569]
   FORMAT          : 8

As soon as it passes this, the call gets passed to one of my outgoing
contexts.
I know I must be doing something very silly, but I'm damned if I can see it.

TIA for any help with this.



More information about the asterisk-users mailing list