Hi guys
I have found the solution for this:
ERROR[426415]: res_pjsip_registrar.c:764 in register_aor_core: Unable to bind contact ‘sip:FLapa@192.168.50.84:5060’ to AOR ‘FLapa’
I decided to follow the C code on this line and the C code for the function involved.
This was an error return that returns printf(…
After following a couple of C files the conclusion was that the problem was in sorcery.conf
So I read the very scarce things about sorcery and sorcery.conf.
Ended up on the tail of this page
=======
[res_pjsip]
auth=config,pjsip.conf,criteria=type=auth
domain_alias=config,pjsip.conf,criteria=type=domain_alias
global=config,pjsip.conf,criteria=type=global
system=config,pjsip.conf,criteria=type=system
transport=config,pjsip.conf,criteria=type=transport
aor=config,pjsip.conf,criteria=type=aor
endpoint=config,pjsip.conf,criteria=type=endpoint
contact=astdb,registrator
[res_pjsip_endpoint_identifier_ip]
identify=config,pjsip.conf,criteria=type=identify
[res_pjsip_outbound_publish]
outbound-publish=config,pjsip.conf,criteria=type=outbound-publish
[res_pjsip_outbound_registration]
registration=config,pjsip.conf,criteria=type=registration
What puzzled me was why was contact based on astdb and
not on config, in fact I was trying
contact=config,pjsip.conf,criteria=type=contact
hoping [contact] in pjsip.conf did someting, but no it did not.
With:
contact=astdb,registrator
IT DID WORK!!
Moral of story:
- Higher complexity on pjsip overall
- Confusing and scarce documentation
- Books have little written or not at all material on pjsip and sorcery
- Spider Net complexity interrelationship between modules
- Hours and days of trial and error before putting this on track, even with
all the remaining components like extensions.conf ready to roll for years on sip.conf.
- Asterisk is becoming even more difficult that it was to put up, definitely
not a thing for linux juniors.
- As Tannebaum says, complexity bloat drives more problems and … more bugs
Lets see how it goes with thinks like parking, queues, transfer, etc.
In theory that is how stack and module programming should work, other components
of this BIG project should not be afected. Lets wait and see.
Sendmail used o be the most difficult of all, I think now Asterisk is riding the league.
Anyway I will keep going as it means a huge money saving from proprietary Voip
PBX. No doubt about it.
Pedro Guedes