hi,
i have the same issue with our sip and iax connections. if i reset states on pfsense than the connections come up again (does asterisk do a complete re-registration? How does asterisk become to know to do so?). re-registering could be done manually by script, but seems not necessary for asterix greater 1.2xx (sip.conf has entries for extern-ip with dyndns). is it still a firewall-configuration issue?
regards,
ozett
additional: i restarted asterisk-box (without resetting states) does not solve this issue. sip and iax providers still unreachable. i reloaded sip on asterisk box. still the same unreachable ports-issue. only resetting states solves this loosing of sip and iax connections after 12 hours (when ip changed, i guess). seems more a firewall-problem. or a problem of the update-interval of the dyndns-client or the dns-server on pfsense? or a problem of pfsene, recognising IP-change on PPPOE Interface (
here)?why is is working again simply after resetting states? any hints?
additional: sip and iax connection on asterisk lost after change of IP (i logged this). the dyndns entry is valid with the new ip, the asterisk box has the new dns-resolved-ip for the dyndns-entry. maybe a problem that the sip and iax provider do not recognise the changed ip? some hints from sip-experts maybe? turned on sip-debug on asterisk-box. shows somehow that asterisk (or sip-provider?) will still connect to old ip. im am not expert enough to read the sip-debug right. and i have no clue how to intervene the sip-registering process. reload of sip an asterisk brings new ip into sip-debug and ongoing sip-registration, but does not resolve problem of lost sip and iax connection, also restart of asterisk does not resolve this problem. asterisk is ver 1.2.13. maybe asterisk-experts have a clue?
but still seems firewall-problem to me, because resetting states on pfsense alwas solve this problem.
i looked in the states-table and long after the change of the dynamic-ip i found an entry with the old one. looks like:
udp 192.168.15.90:5060 -> 83.135.18.177:5060 -> 217.10.79.9:5060 MULTIPLE:MULTIPLE
^^^^^^^^^
still old-IP, why this?
i removed this entry by hand by pressing the x-tab on the states-table and, whow!,
problem solved manually. the connection has re-established again. remember, i reloaded sip on the asterisk command line bevorhand. sip client is now correctly registerd again.
question arises: must the
state-type in the firewall-rule for this sip port-entry be set to a certain value? or should there be a
state-timeout set under advanced options for
this sip-port udp-rule. no obvious clue for this to me.
pfsense is 1.2-RC3 (built on Wed Nov 14 10:46:07 EST 2007), the state-type of the firewall-rule for the sip-port 5060 was and is still set to "none" (is this the right value?), and the firewall-optimisation-option under /system/advanced is set to conservative (right?).
anybody with some hints for troubleshooting? slowly geting desperate for direction to go into pfsense now ...