[asterisk-users] question on register

Olle E. Johansson
2009-12-14T09:36:39Z

11 dec 2009 kl. 17.18 skrev Jerry Geis:

> Where in the code does something like:
>      register => user[:secret[:authuser]]@host[:port][/extension]
> from sip.conf               1) get parsed 2) actually register.
>
> I tried looking in channels/chan_sip.c and don't see where that
happens.
> Can someone point me the right file and or function.

Search for the function sip_register() in chan_sip.c to find the function that
parses and builds a list of services we're about to register for.

To find where it all happens, there's a function called
sip_send_all_registers() that is a good starting point for exploration.

Cheers,
/O



---
* Olle E. Johansson - oej at edvina.net
* Asterisk Training http://edvina.net/training/